MCP

Use the first-party MCP surface with JSON-RPC over POST.

Browsers opening /mcp should see guidance, not a raw RPC error. SmartAPIs.net serves MCP for agent tooling through JSON-RPC requests sent to this same path with POST.

Endpoint

Send JSON-RPC requests to this URL:

POST https://smartapis.net/mcp

Initialize

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {}
}

List tools

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/list",
  "params": {}
}

Call a tool

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "smartagent_places_search",
    "arguments": {
      "region_id": "new-york-city",
      "q": "pizza",
      "limit": 5
    }
  }
}