MCP
Remote HTTP MCP
JSON-RPC MCP endpoint for OAuth clients and API keys.
POST
Canonical agent URL:
OAuth clients discover the authorization server from protected resource metadata. For API-key clients (e.g.
https://mcp.costmcp.com
Stateless Streamable HTTP MCP. Auth: Bearer cmcp_at_... (OAuth) or Bearer cmcp_live_... (API key).
The legacy path https://api.costmcp.com/api/mcp still works; prefer the dedicated MCP host.
Unauthenticated requests return 401 with:
Client config
Paste the URL into ChatGPT, Claude, Cursor, or any remote MCP client:mcp-remote):
JSON-RPC methods
| Method | Result |
|---|---|
initialize | Protocol + serverInfo: { name: "costmcp", version: "0.1.0" } |
notifications/initialized | 202 empty |
notifications/cancelled | 202 empty |
ping | {} |
tools/list | Five tools |
tools/call | { name, arguments } → text content JSON |
Other verbs
| Method | Behavior |
|---|---|
GET | 405 (no SSE) when authenticated |
DELETE | 204 |
Discovery
Clients should fetch protected resource metadata then complete the OAuth flow.- Resource:
https://mcp.costmcp.com - Authorization server:
https://api.costmcp.com
