brvm-mcp

brvm-mcp

MCP server providing access to BRVM (West African regional stock exchange) public data, including real-time quotes, market summaries, dividends, fundamentals, volumes, and sector indices through 18 tools.

Category
访问服务器

README

brvm-mcp

MCP server giving AI assistants access to BRVM public data — the West African regional stock exchange serving 8 UEMOA countries (Benin, Burkina Faso, Côte d'Ivoire, Guinea-Bissau, Mali, Niger, Senegal, Togo).

The BRVM publishes no public API. This server aggregates 4 data sources into 18 MCP tools so any AI assistant (Claude Desktop, Claude Code, etc.) can query real-time market data, fundamentals, dividends, volumes, and sector indices.

Disclaimer: For information and analysis only. Does not constitute investment advice (regulated activity under AMF-UMOA). Past performance does not guarantee future results.


18 tools

Official data — brvm.org

Tool Description
brvm_market_summary Market overview: BRVM-C, BRVM-30, BRVM-Prestige indices, market cap, transactions, top/worst movers
brvm_quotes Prices (FCFA) and % change — all 47 tickers or a specific one
brvm_list_companies Listed companies, filterable by country
brvm_company_details Company profile + PDF document links (annual reports, BOC)
brvm_dividends Upcoming dividend payments: issuer, ticker, date, amount per share
brvm_dividend_yield Dividend yield ranked highest first — the BRVM is primarily a yield market
brvm_price_history Historical prices from local SQLite database (requires snapshot.py)
brvm_performance Price performance over the tracked period
brvm_history_status Database depth: first/last session, tickers tracked
brvm_fundamentals P/E ratio, EPS, market cap from BOC PDF or annual report
brvm_diagnose_pdf PDF structure diagnostic for troubleshooting extraction

Supplementary sources

Tool Source Added value vs brvm.org
brvm_volumes AFX Kwayisi Trading volumes (absent from brvm.org)
brvm_fondamentaux_ticker AFX Kwayisi P/E, EPS, dividend yield per ticker — no PDF needed
brvm_historique_avec_volumes AFX Kwayisi Last 10 sessions with volumes
brvm_indices_sectoriels AFX Kwayisi Sector indices: Energy, Financial Services, Public Utilities (day / 1WK / YTD)
brvm_cotations_enrichies Rich Bourse Previous close + market cap per ticker
brvm_ohlc Sika Finance Open / High / Low / Close + volumes
brvm_dividendes_sikafinance Sika Finance Cross-check dividend announcements

Quick start

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "brvm": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/dondirechristian/brvm-mcp", "brvm-mcp"]
    }
  }
}

Restart Claude Desktop. Then ask: "What are the BRVM stocks with the highest dividend yield?"

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Windows (Store): %LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude\claude_desktop_config.json

Claude Code

claude mcp add brvm -- uvx --from git+https://github.com/dondirechristian/brvm-mcp brvm-mcp

Manual install (pip)

git clone https://github.com/dondirechristian/brvm-mcp.git
cd brvm-mcp
python -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python server.py

HTTP / Docker mode

For network deployment or integration with non-stdio MCP clients:

docker compose up -d

Exposes a streamable-http MCP endpoint on port 8000. Set MCP_TRANSPORT=sse for legacy SSE clients.


Historical data

brvm.org only exposes the current session. To build trend analysis, run snapshot.py daily after market close (BRVM fixing ~10:45 GMT):

python snapshot.py          # capture today's session (idempotent)
python snapshot.py --stats  # show database coverage

Automate with cron (weekdays at 12:00 GMT):

0 12 * * 1-5  cd /path/to/brvm-mcp && .venv/bin/python snapshot.py >> snapshot.log 2>&1

Architecture

brvm-mcp/
├── server.py               # FastMCP server — 18 tools, stdio/HTTP/SSE transports
├── snapshot.py             # Daily snapshot for historical database
├── brvm_scraper/
│   ├── client.py           # HTTP session, TTL cache (15 min), retry/backoff
│   ├── quotes.py           # Prices, indices, market activity (brvm.org)
│   ├── companies.py        # Listed companies with country filter
│   ├── dividends.py        # Dividends + yield calculation
│   ├── afx_kwayisi.py      # Volumes, fundamentals, sector indices (AFX)
│   ├── richbourse.py       # Previous close, market cap (Rich Bourse)
│   ├── sikafinance.py      # OHLC, dividends (Sika Finance)
│   ├── storage.py          # SQLite historization (UPSERT, stats, performance)
│   └── fundamentals.py     # P/E / EPS extraction from PDF (pdfplumber)
└── tests/
    ├── fixture_home.html   # Captured brvm.org HTML for offline tests
    ├── test_parsers.py     # Quote / dividend parsing
    ├── test_storage.py     # SQLite storage
    └── test_agent_smoke.py # Agent smoke test

Technical notes:

  • Regex on page text, not CSS selectors — more resilient to theme changes
  • 15-minute TTL cache — BRVM runs a single daily fixing (~10:45 GMT), no need to hammer sources
  • Identifiable User-Agent + exponential backoff — respectful of public infrastructure

License

MIT — © 2025 Christian Dondire

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选