Connector between LLM agents and world data. 518+ endpoints aggregating 55+ primary sources across financial markets, macroeconomics, company fundamentals, government, physical world, and news. Works with Anthropic Claude, OpenAI GPT, Google Gemini, xAI, and any MCP-enabled IDE.
Project description
sugra-api-mcp
Connector between LLM agents and world data. Official Model Context Protocol server for the Sugra API - 518+ endpoints aggregating 55+ primary sources across financial markets, macroeconomics, company fundamentals, government, physical world, and news.
Works with Anthropic Claude, OpenAI GPT, Google Gemini, xAI, and any MCP-enabled IDE.
Client details:
- Anthropic Claude: Claude Desktop, Claude Code (CLI), claude.ai (web)
- OpenAI GPT: ChatGPT (via MCP connector)
- Google Gemini: Gemini CLI, Gemini Code Assist (VS Code + JetBrains)
- xAI: Remote MCP Tools in xAI SDK and Responses API
- IDEs: VS Code (native), Cursor, Zed, Cline, Continue.dev, Windsurf
- Custom agents: anything built on the Python or TypeScript MCP SDK
What you get
17 tools covering the full Sugra API:
| Category | Tools |
|---|---|
| Markets | get_market_price, get_historical_prices, get_market_overview, search_symbol, get_prediction_market |
| Fundamentals | get_company_overview, get_company_filings |
| Macro | get_macro_indicator, get_central_bank_rate, search_economic_series |
| Government | get_government_spending, get_treasury_data |
| Physical world | get_weather, get_environmental_data |
| News | get_news |
| Discovery | search_endpoint, call_endpoint (covers all 518 endpoints) |
Installation
pip install sugra-api-mcp
Get a free API key at app.sugra.ai/settings/billing (Free tier: 50 req/day).
Usage with Claude Desktop (stdio)
Add to claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"sugra": {
"command": "sugra-api-mcp",
"env": {
"SUGRA_API_KEY": "sugra_xxx_yourkey..."
}
}
}
}
Restart Claude Desktop. Sugra tools appear in the tools menu.
Usage with Claude Code (Anthropic CLI)
claude mcp add sugra -- sugra-api-mcp
# then set the env var that sugra-api-mcp reads
export SUGRA_API_KEY=sugra_xxx_...
Or edit ~/.claude/config.json manually with the same shape as Claude Desktop above.
Usage with Cursor, Zed, Cline, Continue.dev, Windsurf
Each of these has an MCP settings file (typically mcp.json or equivalent) with the same stdio config shape as Claude Desktop.
Usage with ChatGPT
ChatGPT supports MCP through its connector UI. Use the hosted HTTP endpoint (below) since ChatGPT does not launch local stdio processes.
Usage over HTTP (claude.ai, ChatGPT, remote agents)
Hosted Streamable HTTP endpoint:
https://app.sugra.ai/mcp
Add to claude.ai, ChatGPT, or any Streamable HTTP MCP client. Authenticate with Authorization: Bearer sugra_xxx_....
In claude.ai: Settings -> Connectors -> Add custom connector. In ChatGPT: Settings -> Connectors -> Add MCP server.
Environment variables
| Variable | Required | Default | Description |
|---|---|---|---|
SUGRA_API_KEY |
Yes | - | Your Sugra API key |
SUGRA_API_BASE |
No | https://sugra.ai |
Override for self-hosted or beta environments |
SUGRA_TIMEOUT |
No | 30 |
Request timeout in seconds |
Examples
Ask Claude:
- "What's Bitcoin's current price and how did it move this week?"
- "Show me Apple's income statement and debt profile."
- "Compare US vs Germany CPI over the last 5 years."
- "What's the Fed funds rate today, and what was the last change?"
- "Find all Sugra endpoints related to shipping or vessels."
Development
git clone https://github.com/Sugra-Systems/prod-sugra-ai-MCP
cd prod-sugra-ai-MCP
pip install -e ".[dev,http]"
export SUGRA_API_KEY=sugra_...
python -m sugra_api_mcp # stdio mode
python -m sugra_api_mcp --transport streamable-http --port 8001 # HTTP mode
Run tests:
pytest
License
MIT © Sugra Systems, Inc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sugra_api_mcp-0.1.4.tar.gz.
File metadata
- Download URL: sugra_api_mcp-0.1.4.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42045d2d797042f08ac33db93452616b6272d47509f18602d18a86d9edb10fe7
|
|
| MD5 |
cfa99926d500cdae61837bcb452da07b
|
|
| BLAKE2b-256 |
1ec1b6bbb756353d22c43b5aa9d3307f2a40a8bd0356487d270ff1b8fb1c739a
|
Provenance
The following attestation bundles were made for sugra_api_mcp-0.1.4.tar.gz:
Publisher:
publish-pypi.yml on Sugra-Systems/prod-sugra-ai-MCP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sugra_api_mcp-0.1.4.tar.gz -
Subject digest:
42045d2d797042f08ac33db93452616b6272d47509f18602d18a86d9edb10fe7 - Sigstore transparency entry: 1329283794
- Sigstore integration time:
-
Permalink:
Sugra-Systems/prod-sugra-ai-MCP@7cff65dbcd56f78e4931aa28598c0de532b0fc52 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/Sugra-Systems
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@7cff65dbcd56f78e4931aa28598c0de532b0fc52 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sugra_api_mcp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: sugra_api_mcp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08fc7311a484491c243d4a75e567b5d8b245f97f8de1331e00243f6f9be4ddac
|
|
| MD5 |
2ee7f2c9733923ec27a6ebb573eef786
|
|
| BLAKE2b-256 |
6fe126233ba3f6ad1d5981b019e2d7d37cbf764eb2065c5ad9015cf8ae6cb176
|
Provenance
The following attestation bundles were made for sugra_api_mcp-0.1.4-py3-none-any.whl:
Publisher:
publish-pypi.yml on Sugra-Systems/prod-sugra-ai-MCP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sugra_api_mcp-0.1.4-py3-none-any.whl -
Subject digest:
08fc7311a484491c243d4a75e567b5d8b245f97f8de1331e00243f6f9be4ddac - Sigstore transparency entry: 1329283822
- Sigstore integration time:
-
Permalink:
Sugra-Systems/prod-sugra-ai-MCP@7cff65dbcd56f78e4931aa28598c0de532b0fc52 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/Sugra-Systems
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@7cff65dbcd56f78e4931aa28598c0de532b0fc52 -
Trigger Event:
push
-
Statement type: