Sugra MCP brings Sugra Data into an AI assistant or agent over the Model Context Protocol (MCP), so it can discover and call all 1,600+ endpoints as tools. Sugra Data is the data service behind both products: Sugra API serves the same data to code by key. Two ways to connect: the hosted server (no install; OAuth or an API key) or the local PyPI package (stdio, API key). | Hosted | Local package |
|---|
| Endpoint | https://mcp.sugra.ai/mcp (Streamable HTTP) | pip install sugra-api-mcp (stdio) |
| Auth | OAuth sign-in, or Authorization: Bearer YOUR_API_KEY | SUGRA_API_KEY environment variable |
| Tools | Gateway tools plus the composed agent tools | Gateway tools |
| Best for | Claude, ChatGPT, Codex and VS Code (one-click install), remote agents, zero setup | Desktop clients, IDEs, self-hosting, version pinning |
Both surfaces authenticate against the same account and draw from the same daily request quota as direct API calls. The package requires Python 3.13+ and is MIT licensed.Discovery tools (search, describe, list) run against a bundled catalog of the full endpoint surface, locally and without network calls. Only data requests hit the API.| Tool | Purpose |
|---|
fetch_data | One step: find the best endpoint for a natural-language query and call it |
search_endpoints | Search the bundled endpoint catalog |
describe_endpoint | Inspect an endpoint by operation_id: parameters, required inputs, agent_hints (duration class, concurrency ceiling, bulk cost), request_body_schema for JSON-body POSTs |
call_endpoint | Call an operation by operation_id; supports response shaping with limit, fields (dotted paths), include_raw |
list_toolsets | List catalog groups with endpoint counts and descriptions |
list_sources | Bundled catalog source metadata |
sugra_entity_screen | Screen a name against sanctions and watchlists (Sugra Entity) |
sugra_entity_lookup | Entity lookup by LEI or VAT: registry identity plus screening (Sugra Entity) |
The hosted endpoint adds composed tools that resolve, snapshot, and chart entities in single calls. They require an infrastructure credential present only on the hosted deployment; stdio and self-hosted installs always expose only the gateway tools.| Tool | Purpose |
|---|
resolve_entity | Free text (ticker, company, indicator, coin, currency pair) to a canonical entity; ambiguous matches return ranked candidates |
get_snapshot | Entity plus a named recipe to one composed current view with freshness, provenance, and billing blocks; fixed recipe cost of 1-2 requests |
get_timeseries | Entity plus metric (price, macro_series, etf_flows) to a bounded series with an explicit downsampling flag |
Connect a client#
Claude (Connectors Directory)#
The Sugra MCP server is published in Anthropic's Connectors Directory, which serves claude.ai, Claude Desktop, Claude Mobile, Claude Code and Cowork:1.
Add to Claude opens Sugra MCP in the Connectors Directory; in claude.ai it is also under Customize -> Connectors. 2.
Connect it and sign in with your Sugra account.
Claude Code signed in with a claude.ai account picks up connectors added in claude.ai automatically; /mcp lists Sugra.Already added Sugra to Claude as a custom connector? That connection keeps working and shows under "Custom". Connecting the Sugra MCP server from the directory as well gives you two connections, so remove the custom one first, then connect from the directory.ChatGPT and Codex (OpenAI Plugins Directory)#
Add to ChatGPT installs the Sugra MCP server from the OpenAI Plugins Directory. In the Codex app, open Plugins and install it from the same directory.The Codex CLI connects with your API key, read from the SUGRA_API_KEY environment variable, so the same command works in any shell:GitHub Copilot and VS Code (GitHub MCP Registry)#
View on GitHub opens the Sugra MCP server in the GitHub MCP Registry. Its Install MCP server button adds the server to VS Code, VS Code Insiders or the GitHub Copilot app; sign in with your Sugra account when the client asks. The Copilot CLI command is in the GitHub Copilot (CLI) section further down this page.Any other client (hosted, manual setup)#
Add this URL as a remote MCP server and sign in with OAuth, or send Authorization: Bearer YOUR_API_KEY:claude.ai, as a custom connector: Customize -> Connectors -> Add custom connector
ChatGPT: Settings -> Connectors -> Add MCP server
Claude Desktop (local, stdio)#
Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):{
"mcpServers": {
"sugra": {
"command": "sugra-api-mcp",
"env": {
"SUGRA_API_KEY": "YOUR_API_KEY"
}
}
}
}
Restart Claude Desktop; the Sugra tools appear in the tools menu.Claude Code (CLI)#
Signed in with a claude.ai account, the Sugra MCP server connected from the Connectors Directory already appears in /mcp. Otherwise (an API key, Bedrock or Vertex), add the hosted server with your API key from the SUGRA_API_KEY environment variable, in bash or zsh:In PowerShell, write the variable as $env:SUGRA_API_KEY.Cursor#
Add to ~/.cursor/mcp.json (or the project's .cursor/mcp.json):{
"mcpServers": {
"sugra": {
"command": "sugra-api-mcp",
"env": {
"SUGRA_API_KEY": "YOUR_API_KEY"
}
}
}
}
VS Code, Zed, Cline and Continue take the same command, sugra-api-mcp, and the same SUGRA_API_KEY variable, each in its own MCP settings format.GitHub Copilot (CLI)#
Add the hosted server. Copilot CLI opens the Sugra sign-in page in your browser the first time it connects to the server:The sugra-api-skills plugin adds the same server, so with the plugin installed (see Sugra API Skills below) you can skip this command.DeepSeek models#
DeepSeek has no MCP connector of its own: its models run inside agent tools such as Claude Code, Codex, GitHub Copilot and OpenCode (DeepSeek's integration guides). The MCP server connects to the tool, not to the model, so set DeepSeek as the tool's model and connect Sugra MCP to the tool as described above, either in that tool's own section or under Any other client.Sugra API Skills#
The MCP server gives an agent the tools. The Sugra API Skills give it the procedure: how to find an operation, how to read the response, how to cite the source. The sugra-api-skills plugin carries them, and in Claude Code, GitHub Copilot, Grok, Cursor and Antigravity it also connects the hosted MCP server: sign in with your Sugra account when the client asks.Codex CLI (the skills only; connect the server as in the ChatGPT and Codex section above):Claude Code (then run /mcp to sign in):Then reload the window (Developer: Reload Window), and in Cursor Settings, Tools & MCPs, select Connect next to sugra-api.Antigravity (the CLI, the app and the IDE share the plugin):The Antigravity CLI 1.4.9 does not start an MCP server that a plugin declares yet; there the skills show the direct HTTPS request to https://sugra.ai, sent with your key in the x-api-key header.Hosted or local#
Prefer hosted when the client cannot launch local processes (claude.ai, ChatGPT, remote agents), when you want the composed agent tools, or when you want the catalog to track the API without reinstalling. Prefer local when the client runs on your machine over stdio, when you want to pin a package version, or when self-hosting the HTTP transport with your own base URL and timeout (SUGRA_API_BASE, SUGRA_TIMEOUT).Verify the hosted server#
Discovery is public; tool calls require auth. A bare request returns 401:The MCP initialize handshake answers 200 and issues a session id:Plans#
Sugra MCP has two plans. Every plan gets every endpoint, and plans differ in daily request volume.| Plan | Price | Requests per day |
|---|
| Free | $0 | 50 |
| Personal | $9/mo | 1,000 |
Dev and Pro are plans of Sugra API, and an account on either also connects through Sugra MCP with its plan's daily volume. Plans and billing covers prices and billing, and the Personal quickstart covers Personal.Errors and quota#
Tool failures return structured JSON, never bare exceptions: upstream_timeout, upstream_connect_error, upstream_transport_error, or an HTTP error with status_code and retry_after. Every error payload carries elapsed_ms. A failure with no structured JSON means your agent harness cut the call; raise the client-side tool timeout.MCP calls count against your account's daily quota exactly like direct API requests, and the Plans section above gives the daily volumes. A gateway tool that calls a data endpoint (call_endpoint, fetch_data) costs what that call costs: one request. The composed tools have a fixed cost:| Tool | Cost per call |
|---|
resolve_entity | 1 |
get_timeseries | 1 |
get_snapshot with company_snapshot, etf_snapshot or earnings_snapshot | 2 |
get_snapshot with quote_snapshot, macro_indicator_snapshot, macro_calendar or debt_snapshot | 1 |
A composed call is charged before it runs:A snapshot that comes back partial costs the same as a complete one.
A snapshot that fails because a required component is unavailable is not refunded.
When fewer requests are left than the call costs, the call is refused and nothing is charged.
Modified at 2026-11-05 20:04:28