MCP Endpoints

AnySiteMCP exposes a JSON-RPC 2.0 API following the Model Context Protocol specification. AI assistants and tools use these endpoints to discover and query your site's content.

Base URL

POST https://www.anysitemcp.com/mcp/{site-slug}

Each site has its own MCP endpoint using the site's unique slug.

Available Methods

tools/list

Returns the list of available tools (search, list pages, get page) for the site. Used by AI clients during capability discovery.

tools/call — search

Full-text search across the site's published pages. Returns matching page titles, URLs, and content excerpts.

params: { "query": "your search term", "limit": 10 }

tools/call — list_pages

Returns a paginated list of all published pages for the site.

params: { "page": 1, "per_page": 20 }

tools/call — get_page

Retrieves the full content of a specific page by URL or ID.

params: { "url": "https://example.com/about" }

Caching

Responses include caching headers to help clients and CDNs optimize performance:

X-Cache
HIT, MISS, or BYPASS — indicates cache status
X-Request-Id
Unique request correlation ID for debugging
Cache-Control
Standard HTTP cache directives

Example Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "getting started guide"
    }
  }
}
Need help? Contact support