Skip to main content
Glama
Dilane-Kamga

BRVM MCP Server

by Dilane-Kamga

🇨🇮 BRVM MCP 服务器

西非区域证券交易所的首个 MCP 服务器。

将任何 AI 智能体(Claude、ChatGPT、Cursor、Copilot、LangGraph)连接到来自 BRVM(西非区域证券交易所)的实时市场数据,该交易所服务于西非 8 个 UEMOA 成员国。

MCP Python License


为什么选择它?

BRVM 在贝宁、布基纳法索、科特迪瓦、几内亚比绍、马里、尼日尔、塞内加尔和多哥上市了约 46 家公司,总市值约为 278 亿美元。然而,它没有公开的 API。此服务器弥补了这一差距,通过 模型上下文协议 (Model Context Protocol) 使 AI 生态系统能够访问 BRVM 数据。

BRVM 的未来发展

  • 2026 年 12 月 18 日:法语西非首个衍生品市场(指数和股票期货)

  • 2026–2027 年:ETF 上市

  • 2026 年:农产品交易所 (BMPA CI) — 腰果、玉米、可乐果

此服务器旨在随着这些发展而不断成长。

Related MCP server: Yahoo Finance MCP Server

功能

工具 (7)

工具

描述

get_market_summary

完整的交易时段概览:成交量、成交额、涨跌幅榜、指数

get_stock_price

特定股票代码的当前报价(价格、涨跌幅、成交量)

get_indices

所有 BRVM 指数:综合指数、BRVM 30、Prestige、Principal、行业指数

get_top_movers

当日涨幅和跌幅前 N 名

get_company_info

公司详情:名称、国家、行业、市值

search_stocks

按名称、国家或行业搜索股票

list_tickers

所有约 46 个 BRVM 股票代码及其元数据

资源

URI

描述

brvm://about

用于上下文注入的 BRVM 交易所概览

提示词

提示词

描述

analyze_stock

对 BRVM 股票的结构化分析

market_report

完整的每日市场报告模板

快速入门

先决条件

  • Python 3.11+

  • uv(推荐)或 pip

安装与运行

# Clone
git clone https://github.com/dilanefk/brvm-mcp-server.git
cd brvm-mcp-server

# Install
uv sync

# Run (stdio — for Claude Desktop / Cursor)
uv run brvm-mcp

# Run (HTTP — for remote agents / web apps)
uv run brvm-mcp --transport streamable-http --port 8000

连接到 Claude Desktop

添加到您的 Claude Desktop 配置中(macOS 上位于 ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "brvm": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/brvm-mcp-server", "brvm-mcp"]
    }
  }
}

重启 Claude Desktop。您将在 🔨 菜单中看到 BRVM 工具。

使用 MCP Inspector 进行测试

npx @modelcontextprotocol/inspector uv run brvm-mcp

Docker(远程部署)

docker build -t brvm-mcp .
docker run -p 8000:8000 brvm-mcp

示例对话

连接后,您可以询问 Claude:

"今天 BRVM 市场表现如何?" → 调用 get_market_summary(),返回完整的会话数据

"显示 Sonatel 的股票价格" → 调用 get_stock_price("SNTS")

"哪些 BRVM 股票来自塞内加尔?" → 调用 search_stocks(country="Sénégal")

"给我一份完整的市场报告" → 使用 market_report 提示词来编排多个工具调用

"今天哪些股票跌幅最大?" → 调用 get_top_movers(),重点关注跌幅榜

架构

┌──────────────────┐     MCP (stdio/HTTP)     ┌──────────────────┐
│   AI Agent       │◄────────────────────────►│  BRVM MCP Server │
│ (Claude, GPT,    │                          │                  │
│  Cursor, etc.)   │                          │  FastMCP + Tools │
└──────────────────┘                          │  + Cache Layer   │
                                              └────────┬─────────┘
                                                       │ httpx
                                              ┌────────▼─────────┐
                                              │  Data Sources    │
                                              │  • afx.kwayisi   │
                                              │  • brvm.org      │
                                              │  • Rich Bourse   │
                                              └──────────────────┘
  • FastMCP:基于装饰器的 MCP 框架(官方 Python SDK)

  • httpx:用于抓取的异步 HTTP 客户端

  • BeautifulSoup4 + lxml:HTML 解析

  • diskcache:基于 TTL 的磁盘缓存(默认 5 分钟,尊重数据源)

  • Pydantic:结构化数据模型

路线图

  • [ ] v0.2 — 历史价格数据 (OHLCV K 线)

  • [ ] v0.3 — BRVM 官方公告 / 公司行动推送

  • [ ] v0.4 — BMPA CI 商品数据(可用时)

  • [ ] v0.5 — 衍生品数据(期货、期权 — 2026 年 12 月推出后)

  • [ ] v1.0 — 用于多用户部署的 OAuth + 速率限制

  • [ ] 在 MCP 注册表 上注册

数据来源与合理使用

此服务器抓取公开可用的数据。它实现了:

  • 缓存(5 分钟 TTL)以最小化请求

  • 礼貌的 User-Agent 标头以标识项目

  • 无身份验证绕过 — 仅限公开数据

如需实时 FIX 数据源,请直接联系 BRVM:brvm.org/real-time-data-feed

贡献

欢迎提交 PR!优先领域:

  1. 额外的数据源 (eodhd.com, Rich Bourse)

  2. 历史数据支持

  3. 测试 (pytest + 用于抓取测试的 VCR cassettes)

  4. 用于 Node.js MCP 主机的 TypeScript 移植

许可证

MIT


Dilane Fogué Kamga 在毛里求斯伴着 ☕ 构建 — 高级软件与 AI 工程师,金融工程硕士 (WorldQuant University)。

架起 AI 与非洲资本市场的桥梁。

A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time financial data from Yahoo Finance to Large Language Models through the Model Context Protocol, enabling AI models to access stock prices, historical data, and company information.
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Provides access to real-time stock prices, financial statements, news, and options data via the Model Context Protocol. It enables AI assistants to retrieve comprehensive market data, including historical prices and analyst recommendations, through a standardized interface.
    6
    9
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides structured access to Nepal Stock Exchange market data through the Model Context Protocol, enabling AI integration for querying real-time stock data and market analysis.
    60
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dilane-Kamga/brvm-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server