Skip to main content

MCP server for econewsapi — surface Brazilian financial news to Claude/AI agents

Project description

econewsapi-mcp

MCP server that exposes Brazilian financial news from econewsapi to Claude Desktop, Claude Code, and other Model Context Protocol compatible AI agents.

What it does

Lets you (or your AI agent) talk to econewsapi in natural language:

"Como tá o setor de petróleo hoje?" "Tem fato relevante novo da Vale?" "Quem foram os tickers mais comentados ontem?" "Sumarize os resultados anuais dos bancos"

Behind the scenes the agent picks the right tool, calls the API with HMAC-signed requests, and synthesizes a response.

Tools (v0.4.0)

Tool What it does
search_news Filter news by ticker / source / channel / scores / time window
get_news Full content + summary + entities for one news item
trending_tickers B3 tickers with highest news velocity
list_sectors All B3 sectors (energy, financials, ...) with PT labels
list_tickers_by_sector Resolve a sector to its B3 tickers (use before search_news)
list_topics Curated news topics (commodities, dividends, M&A, ...)
sentiment_overview Aggregate positive/negative/neutral counts for any filter slice
sentiment_trend Sentiment evolution over time (bucketed) — improving/worsening detection

More tools coming: get_related_news, news_price_impact, calendar.

Install

pip install econewsapi-mcp

Or run directly without installing:

uvx econewsapi-mcp

Configure (Claude Desktop)

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "econewsapi": {
      "command": "uvx",
      "args": ["econewsapi-mcp"],
      "env": {
        "ECONEWSAPI_API_KEY": "your-api-key",
        "ECONEWSAPI_API_SECRET": "your-api-secret"
      }
    }
  }
}

Restart Claude Desktop. Open a chat — the 🔧 icon should show econewsapi as a connected server.

Configure (Claude Code)

Add the same mcpServers block to ~/.claude/settings.json (or .claude/settings.json in a project) and restart Claude Code.

Configure (dev / local source)

{
  "mcpServers": {
    "econewsapi": {
      "command": "uvx",
      "args": ["--from", "/abs/path/to/EcoNewsApi-MCP", "econewsapi-mcp"],
      "env": { "ECONEWSAPI_API_KEY": "...", "ECONEWSAPI_API_SECRET": "..." }
    }
  }
}

Environment variables

name required default
ECONEWSAPI_API_KEY yes
ECONEWSAPI_API_SECRET yes
ECONEWSAPI_BASE_URL no https://news-api.economatica.com
ECONEWSAPI_LOG_LEVEL no INFO

Development

git clone <this-repo>
cd EcoNewsApi-MCP
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

# run smoke test against prod (requires test API key)
export ECONEWSAPI_API_KEY=...
export ECONEWSAPI_API_SECRET=...
pytest tests/ -v

# run the MCP server manually to inspect stdio output
econewsapi-mcp

License

MIT

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

econewsapi_mcp-0.4.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

econewsapi_mcp-0.4.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file econewsapi_mcp-0.4.0.tar.gz.

File metadata

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

File hashes

Hashes for econewsapi_mcp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 25591163238e1eb8fd2630a0a75b630211d7da87bf68df9c69754db9c869facf
MD5 2da9bbf9c1d7f17ad2cd0355f46486ff
BLAKE2b-256 811d2fa0516f2c7f37346b32a82c64caf61ec662fcf3837566de819f97fc137d

See more details on using hashes here.

Provenance

The following attestation bundles were made for econewsapi_mcp-0.4.0.tar.gz:

Publisher: release.yml on economatica/EcoNewsApi-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 econewsapi_mcp-0.4.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for econewsapi_mcp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7b2c221f0594f72b962d2609e3322b06fd2d1e1d10e56920384e32b83e27ba2
MD5 ab723e912176b555d8b819e1db9eb66a
BLAKE2b-256 307af0a751ff4c4cb2175abe437c9afe2aef7d54bd1d8b47a3b4e9b8892566b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for econewsapi_mcp-0.4.0-py3-none-any.whl:

Publisher: release.yml on economatica/EcoNewsApi-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