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
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.
tools/call — list_pages
Returns a paginated list of all published pages for the site.
tools/call — get_page
Retrieves the full content of a specific page by URL or ID.
Caching
Responses include caching headers to help clients and CDNs optimize performance:
Example Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search",
"arguments": {
"query": "getting started guide"
}
}
}