Skip to main content

Connector between LLM agents and world data. 518+ endpoints aggregating 55+ primary sources across financial markets, macroeconomics, company fundamentals, government, physical world, and news. MCP-compatible: Claude Desktop, Claude Code, claude.ai, ChatGPT, Cursor, Zed, and custom agents.

Project description

sugra-api-mcp

PyPI Python License

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.

MCP is a vendor-neutral protocol. This server works with any MCP-compatible client:

  • Anthropic: Claude Desktop, Claude Code (CLI), claude.ai (web)
  • OpenAI: ChatGPT (via MCP connector)
  • IDEs: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sugra_api_mcp-0.1.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sugra_api_mcp-0.1.2-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file sugra_api_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: sugra_api_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugra_api_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 31a31396fce44ed61226504c000d8ef3a282a4b0410ec98b165803e74c5b13e8
MD5 58758667602d3df879efae4d4ad7f1b6
BLAKE2b-256 983fbce454e63fbd76267788d0a9b11e51245f8abe57820e45ec7f9c51875f36

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugra_api_mcp-0.1.2.tar.gz:

Publisher: publish-pypi.yml on Sugra-Systems/prod-sugra-ai-MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sugra_api_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sugra_api_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sugra_api_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3678e6f6b3df2d15d8e0c0e510856d66b3eecc41d72abd288e5253475c171c5
MD5 a68fe643c4a21723cbe4ea9e7bd7d407
BLAKE2b-256 75af13db2bf096b78d4387f2a42dd5a62c7f01fc787ddb5c0fbeb73cc442597c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sugra_api_mcp-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on Sugra-Systems/prod-sugra-ai-MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page