Developers & AI

Build with MarsGeo

Use the SEO tools programmatically over REST, expose them to AI agents via MCP, and feed LLMs our machine-readable content.

REST API

Create a Pro API key on your dashboard. Authenticate with x-api-key: mg_live_… or Authorization: Bearer mg_live_….

POST /api/v1/runRun one tool (17 supported)
POST /api/v1/bulkRun up to 100 inputs
POST /api/v1/pseoProgrammatic SEO pages (monthly quota)
POST /api/v1/auditBulk URL audit (SSRF-safe)

cURL

curl -s https://mars.cx/api/v1/run \
  -H "Authorization: Bearer mg_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"tool":"faq-schema-generator","input":{"items":[{"q":"Is it free?","a":"Yes"}]}}'

JavaScript

const res = await fetch("https://mars.cx/api/v1/run", {
  method: "POST",
  headers: { "Content-Type": "application/json", "x-api-key": process.env.MARSGEO_API_KEY },
  body: JSON.stringify({ tool: "sitemap-generator", input: { urls: ["https://a.com/"] } }),
});
const { output } = await res.json();
console.log(output);

Python

import os, requests
r = requests.post(
    "https://mars.cx/api/v1/run",
    headers={"x-api-key": os.environ["MARSGEO_API_KEY"]},
    json={"tool": "meta-description-generator", "input": {"text": "Your paragraph..."}},
    timeout=20,
)
print(r.json()["output"])

Full reference: /docs/api · supported tools: faq-schema-generator, article-schema-generator, product-schema-generator, how-to-schema-generator, breadcrumb-schema-generator, organization-schema-generator, robots-txt-generator, sitemap-generator, hreflang-generator, meta-description-generator, open-graph-generator, serp-snippet-preview, keyword-density-analyzer, schema-validator, meta-tag-extractor, heading-extractor, json-ld-extractor

MCP (for AI agents)

A hosted Model Context Protocol endpoint — point Claude, Cursor or any MCP client at it. No install, no key. Try it in your browser first.

{
  "mcpServers": {
    "marsgeo": { "type": "http", "url": "https://mars.cx/api/mcp" }
  }
}

Live playground MCP docs

Machine-readable content (for LLMs)

  • /llms.txt — index of tools and guides
  • /llms-full.txt — full text of every tool, guide and comparison
  • Markdown twin of every tool: /tools/{slug}.md
  • Markdown twin of every guide: /blog/{slug}.md
  • Markdown twin of every comparison: /compare/{slug}.md
  • /sitemap.xml

We welcome AI crawlers in robots.txt so assistants can read and cite these pages.