BRVM MCP Server

BRVM MCP Server

Enables AI agents to access live market data from the BRVM stock exchange, supporting queries on stock prices, indices, market summaries, and company information via the Model Context Protocol.

Category
Visit Server

README

๐Ÿ‡จ๐Ÿ‡ฎ BRVM MCP Server

The first MCP server for West Africa's regional stock exchange.

Connect any AI agent โ€” Claude, ChatGPT, Cursor, Copilot, LangGraph โ€” to live market data from the BRVM (Bourse Rรฉgionale des Valeurs Mobiliรจres), serving 8 UEMOA member states across West Africa.

MCP Python License


Why?

The BRVM lists ~46 companies across Bรฉnin, Burkina Faso, Cรดte d'Ivoire, Guinรฉe-Bissau, Mali, Niger, Sรฉnรฉgal, and Togo โ€” with a combined market cap of ~$27.8B USD. Yet it has no public API. This server bridges that gap, making BRVM data accessible to the AI ecosystem via the Model Context Protocol.

What's coming on the BRVM

  • December 18, 2026: First derivatives market in francophone West Africa (futures on indices and stocks)
  • 2026โ€“2027: ETF listings
  • 2026: Agricultural commodities exchange (BMPA CI) โ€” cashew, maize, cola nut

This server is built to grow alongside these developments.

Features

Tools (7)

Tool Description
get_market_summary Full trading session overview: volume, value, gainers/losers, indices
get_stock_price Current quote for a specific ticker (price, change, volume)
get_indices All BRVM indices: Composite, BRVM 30, Prestige, Principal, sectors
get_top_movers Top N gainers and losers of the day
get_company_info Company details: name, country, sector, market cap
search_stocks Search by name, country, or sector
list_tickers All ~46 BRVM tickers with metadata

Resources

URI Description
brvm://about BRVM exchange overview for context injection

Prompts

Prompt Description
analyze_stock Structured analysis of a BRVM stock
market_report Full daily market report template

Quick Start

Prerequisites

  • Python 3.11+
  • uv (recommended) or pip

Install & Run

# 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

Connect to Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

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

Restart Claude Desktop. You'll see the BRVM tools in the ๐Ÿ”จ menu.

Test with MCP Inspector

npx @modelcontextprotocol/inspector uv run brvm-mcp

Docker (remote deployment)

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

Example Conversations

Once connected, you can ask Claude:

"What's the BRVM market doing today?" โ†’ Calls get_market_summary(), returns full session data

"Show me Sonatel's stock price" โ†’ Calls get_stock_price("SNTS")

"Which BRVM stocks are from Sรฉnรฉgal?" โ†’ Calls search_stocks(country="Sรฉnรฉgal")

"Give me a full market report" โ†’ Uses the market_report prompt to orchestrate multiple tool calls

"Which stocks dropped the most today?" โ†’ Calls get_top_movers(), focuses on losers

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     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: Decorator-based MCP framework (official Python SDK)
  • httpx: Async HTTP client for scraping
  • BeautifulSoup4 + lxml: HTML parsing
  • diskcache: TTL-based disk caching (5min default, respectful of sources)
  • Pydantic: Structured data models

Roadmap

  • [ ] v0.2 โ€” Historical price data (OHLCV bars)
  • [ ] v0.3 โ€” BRVM official announcements / corporate actions feed
  • [ ] v0.4 โ€” BMPA CI commodities data (when available)
  • [ ] v0.5 โ€” Derivatives data (futures, options โ€” post Dec 2026 launch)
  • [ ] v1.0 โ€” OAuth + rate limiting for multi-user deployment
  • [ ] Register on MCP Registry

Data Sources & Fair Use

This server scrapes publicly available data. It implements:

  • Caching (5min TTL) to minimize requests
  • Polite User-Agent header identifying the project
  • No authentication bypass โ€” only public data

For real-time FIX feeds, contact BRVM directly: brvm.org/real-time-data-feed

Contributing

PRs welcome! Priority areas:

  1. Additional data sources (eodhd.com, Rich Bourse)
  2. Historical data support
  3. Tests (pytest + VCR cassettes for scraper tests)
  4. TypeScript port for Node.js MCP hosts

License

MIT


Built with โ˜• in Mauritius by Dilane Foguรฉ Kamga โ€” Senior Software & AI Engineer, Financial Engineering MSc (WorldQuant University).

Bridging AI and African capital markets.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured