CBN
STDIOMCP server for Central Bank of Nigeria data access and regulatory information
MCP server for Central Bank of Nigeria data access and regulatory information

A Model Context Protocol (MCP) server for accessing Central Bank of Nigeria (CBN) data and circulars. Connect this server to Cursor, Claude Desktop, or any MCP-compatible application to access CBN regulatory information directly in your AI conversations. 🚀
Built with mcp_server_dart - A developer-friendly MCP framework for Dart with annotations and code generation that I created. 💪
cbn_mcp executable ⬇️chmod +x cbn_mcp 🔧/path/to/cbn_mcp 📁git clone https://github.com/chiziaruhoma/cbn_mcp.git 📂cd cbn_mcp 📍dart pub get 📦dart run bin/main.dart ▶️dart compile exe bin/main.dart -o cbn_mcp 🏗️/path/to/cbn_mcp 📁Open Cursor settings (Cmd/Ctrl + ,) ⚙️
Go to "Features" → "Model Context Protocol" 🔧
Add a new MCP server with one of these configurations: 📝
Using pre-built binary: ⚡
{ "name": "cbn-mcp", "command": "/path/to/cbn_mcp" }
Using Dart (if you have Dart installed): 🎯
{ "name": "cbn-mcp", "command": "dart", "args": ["run", "bin/main.dart"], "cwd": "/path/to/cbn_mcp" }
Restart Cursor 🔄
Now you can ask questions like: "What are the latest CBN circulars?" or "Find CBN regulations about forex trading" 💬
Open Claude Desktop settings ⚙️
Navigate to the MCP servers configuration 🔧
Add the CBN MCP server with one of these configurations: 📝
Using pre-built binary: ⚡
{ "mcpServers": { "cbn-mcp": { "command": "/path/to/cbn_mcp" } } }
Using Dart (if you have Dart installed): 🎯
{ "mcpServers": { "cbn-mcp": { "command": "dart", "args": ["run", "bin/main.dart"], "cwd": "/path/to/cbn_mcp" } } }
Restart Claude Desktop 🔄
The CBN tools will be available in your conversations 🎉
For any application that supports MCP: 🔌
cbn_mcp executable 📝Once integrated, you can ask your AI assistant: 🗣️
Clone the repository:
git clone https://github.com/chiziaruhoma/cbn_mcp.git cd cbn_mcp
Install dependencies:
dart pub get
Generate mappable classes (if needed):
dart run build_runner build
# Run directly with Dart dart run bin/main.dart # Or build and run executable dart compile exe bin/main.dart -o cbn_mcp ./cbn_mcp
dart test
# Build executable dart compile exe bin/main.dart -o cbn_mcp # The executable can be distributed and run on any compatible system
lib/
├── cbn.dart              # Main MCP server class
├── cbn.mcp.dart          # Generated MCP annotations
├── core/
│   ├── api/
│   │   └── api_client.dart    # HTTP client for CBN API
│   └── utils/
│       └── logger.dart        # Logging utilities
├── models/               # Data models with mappable annotations
│   ├── circular.dart     # Circular data models
│   ├── financials.dart   # Financial data models
│   ├── rates.dart        # Exchange rates models
│   ├── random.dart       # Random fact models
│   └── models.dart       # Base model classes
└── services/             # Business logic services
    ├── circulars.dart    # Circulars API service
    ├── financials.dart   # Financial data service
    ├── rates.dart        # Exchange rates service
    ├── prompt.dart       # MCP prompt service
    ├── status.dart       # Status and info service
    └── services.dart     # Base service classes
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project integrates with the Central Bank of Nigeria's public API. For more information about the available endpoints, visit the CBN Developer Portal.
This project is licensed under the MIT License - see the LICENSE file for details.