# DataRoute Single-Endpoint MCP & AI Agent Hub

Canonical URL: https://dataroute.dev/mcp/
Planned MCP Endpoint: https://dataroute.dev/mcp
Environment Variable: DATAROUTE_API_KEY
Status: Stage 0 Pre-Launch Specification (2026-11-22)

## Client Setup Templates (Planned Stage 1)
### Claude Code (CLI & Coding Agent)
Register the single HTTP MCP server once so Claude Code can call Social, Sites, Web, and Search tools using DATAROUTE_API_KEY.

```bash
# Planned Stage 1 remote MCP setup
export DATAROUTE_API_KEY="dr_live_your_key"

claude mcp add --transport http dataroute https://dataroute.dev/mcp \
  --header "Authorization: Bearer ${DATAROUTE_API_KEY}"
```

### Cursor (AI Code Editor)
Add DataRoute to workspace or user MCP settings so Composer and Agent modes query live web pages, X posts, and domain profiles.

```json
{
  "mcpServers": {
    "dataroute": {
      "url": "https://dataroute.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:DATAROUTE_API_KEY}"
      }
    }
  }
}
```

### Codex (Terminal Coding Agent)
Configure the bearer environment variable directly in Codex TOML configuration so secrets stay out of project files.

```toml
[mcp_servers.dataroute]
url = "https://dataroute.dev/mcp"
bearer_token_env_var = "DATAROUTE_API_KEY"
```

### OpenClaw (Autonomous Agent Runtime)
Connect OpenClaw workflows to one unified data toolset backed by prepaid USD credits and HTTP 200-only metering.

```json
{
  "servers": {
    "dataroute": {
      "transport": "streamable-http",
      "endpoint": "https://dataroute.dev/mcp",
      "auth": {
        "type": "bearer",
        "env": "DATAROUTE_API_KEY"
      }
    }
  }
}
```

### n8n (Workflow Automation)
Point the n8n MCP Client Tool node (or HTTP Request node targeting https://api.dataroute.dev/v1/*) at one credential entry.

```json
{
  "node": "MCP Client Tool",
  "endpointUrl": "https://dataroute.dev/mcp",
  "authentication": "headerAuth",
  "headerName": "Authorization",
  "headerValue": "Bearer {{ $env.DATAROUTE_API_KEY }}",
  "allowedTools": [
    "social_x_search",
    "site_profile",
    "web_to_markdown",
    "search_serp"
  ]
}
```

## Core Planned MCP Tools
- `social_x_search` -> `GET /v1/social/x/search` (V1 Flagship): Search recent or top public X posts using structured query operators, language filters, and bounded cursor pagination.
- `social_x_timeline` -> `GET /v1/social/x/users/{handle}/timeline` (V1 Flagship): Read recent public posts from a creator timeline with optional reply/repost filters and deterministic cursor pagination.
- `social_reddit_posts` -> `GET /v1/social/reddit/posts` (V1 Multi-Upstream): Retrieve public subreddit listings (hot, new, top) or keyword search results with normalized post scores and permalinks.
- `site_profile` -> `GET /v1/sites/{domain}/profile` (V1 Flagship): Inspect live DNS records, TLS certificate validity, RDAP/WHOIS registrar metadata, and nameserver hosting footprint.
- `site_traffic` -> `GET /v1/sites/{domain}/traffic` (V1 Flagship): Retrieve estimated monthly traffic scale, geographic distribution, and acquisition channel mix for a public domain.
- `site_ranks` -> `GET /v1/sites/{domain}/ranks` (V1 Flagship): Query cross-checked domain authority rankings from Tranco, Majestic Million, and Chrome UX Report popularity tiers.
- `web_to_markdown` -> `POST /v1/web/markdown` (V1 Flagship): Extract clean, boilerplate-free Markdown, canonical URL resolution, and HTTP metadata from any public web page.
- `web_screenshot` -> `POST /v1/web/screenshot` (V1 Flagship): Capture deterministic desktop or mobile viewport PNG screenshots alongside HTTP status and SHA-256 content hashes.
- `web_site_dossier` -> `POST /v1/web/dossier` (V1 Flagship): Assemble a structured multi-page snapshot of a target site (homepage, pricing, docs, changelog) in one bounded API call.
- `search_suggest` -> `GET /v1/search/suggest` (V1 Flagship): Expand seed queries into live search autocomplete suggestions scoped by country (gl) and language (hl).
- `search_serp` -> `GET /v1/search/serp` (V1 Multi-Upstream): Capture ranked Google organic search results, snippets, and SERP feature flags for any locale and device profile.

## Live Discovery Endpoints
- https://dataroute.dev/llms.txt
- https://dataroute.dev/llms-full.txt
- https://dataroute.dev/sitemap.xml

## Questions & Answers
### Why expose one MCP endpoint at https://dataroute.dev/mcp for all four data pillars?
Managing separate MCP servers, vendor accounts, and billing balances for social feeds, website intel, web extraction, and SERP capture creates fragile agent configs. A single MCP endpoint authenticated with DATAROUTE_API_KEY gives every supported client deterministic access to all four public data pillars under one prepaid credit pool.

### Is https://dataroute.dev/mcp live for production tool calls today?
DataRoute is currently in Stage 0 pre-launch. The MCP endpoint specification, client configuration templates, tool catalog, and /llms.txt discovery manifests are published now so teams can design integrations ahead of the Stage 1 commercial gateway launch.

### How do LLM agents read DataRoute documentation natively?
Every canonical route on https://dataroute.dev serves clean companion Markdown when requested with Accept: text/markdown (with Vary: Accept) or via its explicit /index.md alternate link, alongside root /llms.txt and /llms-full.txt manifests.

### Are failed MCP tool invocations charged against prepaid credits?
No. MCP tool invocations pass through the exact same HTTP 200-only schema-validated metering engine as REST calls. Upstream timeouts, 429 rate limits, and malformed responses incur zero charge.
