Logo: CBN MCP 服务器

CBN MCP 服务器

Communautéit
Zfinix

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. 🚀

EditeurZfinix
Repositorycbn_mcp
SproochDart
Forks
3
Stären
19
Disponibel Tools
0
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    CBN MCP 服务器 bitt MCP-Funktiounen un, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • Disponibel Tools: 0

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an deem MCP-Client ze konfiguréieren, deen Dir am léifste benotzt.

  • Interessi vun der Communautéit um Open-Source-Projet

    Zuele vum verlinkte Repository – Stären: 19, Forks: 3.

CBN MCP Server 🏦

CBN MCP Server

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. 💪

Features ✨

MCP Tools 🛠️

Circulars Tools 📋

  • getAllCirculars: Fetch all CBN circulars with optional filtering by date range and category 📋
  • getCircularById: Get a specific CBN circular by its ID 🔍
  • searchCirculars: Search CBN circulars by title or description keywords 🔎
  • fetchCircularPdf: Download and read PDF content of CBN circulars 📄
  • fetchCircularPdfById: Download PDF content by circular ID 📥
  • getCircularPdfUrl: Get the direct download URL for a CBN circular PDF by its ID 🔗
  • getCircularsForLLMAnalysis: Get recent CBN circulars with PDF URLs formatted for LLM analysis 🤖

Exchange Rates Tools 💱

  • getAllExchangeRates: Fetch all CBN exchange rates with optional filtering by date range and currency 💱
  • getExchangeRateById: Get a specific CBN exchange rate by its ID 🔍

Financial Data Tools 📊

  • getAllFinancialData: Fetch all CBN financial data with optional filtering by date range and financial metrics 📊
  • getFinancialDataById: Get a specific CBN financial data by its ID 🔍

MCP Resources 📚

  • cbnApiStatus: Current status and health of the CBN API connection 💚
  • serverInfo: Information about this CBN MCP server ℹ️
  • availableCircularPdfs: List of available circular PDFs with their URIs 📄
  • randomFact: A random fact about the CBN 🎲

MCP Prompts 💬

  • circularSummary: Generate a summary prompt for CBN circulars analysis 📊
  • regulatoryAnalysis: Generate prompts for regulatory compliance analysis of CBN circulars ⚖️

Quick Start 🚀

Option 1: Download Pre-built Binary (Easiest) ⚡

  1. Go to Releases 📦
  2. Download the cbn_mcp executable ⬇️
  3. Make it executable: chmod +x cbn_mcp 🔧
  4. Use path: /path/to/cbn_mcp 📁

Option 2: Run with Dart (If you have Dart installed) 🎯

  1. Clone this repository: git clone https://github.com/chiziaruhoma/cbn_mcp.git 📂
  2. Navigate to directory: cd cbn_mcp 📍
  3. Install dependencies: dart pub get 📦
  4. Use command: dart run bin/main.dart ▶️

Option 3: Build from Source 🔨

  1. Follow Option 2 steps 1-3 ⬆️
  2. Build executable: dart compile exe bin/main.dart -o cbn_mcp 🏗️
  3. Use path: /path/to/cbn_mcp 📁

Integration with AI Applications 🤖

Cursor IDE 💻

  1. Open Cursor settings (Cmd/Ctrl + ,) ⚙️

  2. Go to "Features" → "Model Context Protocol" 🔧

  3. Add a new MCP server with one of these configurations: 📝

    Using pre-built binary: ⚡

    json
    {
      "name": "cbn-mcp",
      "command": "/path/to/cbn_mcp"
    }

    Using Dart (if you have Dart installed): 🎯

    json
    {
      "name": "cbn-mcp",
      "command": "dart",
      "args": ["run", "bin/main.dart"],
      "cwd": "/path/to/cbn_mcp"
    }
  4. Restart Cursor 🔄

  5. Now you can ask questions like: "What are the latest CBN circulars?" or "Find CBN regulations about forex trading" 💬

Claude Desktop 🖥️

  1. Open Claude Desktop settings ⚙️

  2. Navigate to the MCP servers configuration 🔧

  3. Add the CBN MCP server with one of these configurations: 📝

    Using pre-built binary: ⚡

    json
    {
      "mcpServers": {
        "cbn-mcp": {
          "command": "/path/to/cbn_mcp"
        }
      }
    }

    Using Dart (if you have Dart installed): 🎯

    json
    {
      "mcpServers": {
        "cbn-mcp": {
          "command": "dart",
          "args": ["run", "bin/main.dart"],
          "cwd": "/path/to/cbn_mcp"
        }
      }
    }
  4. Restart Claude Desktop 🔄

  5. The CBN tools will be available in your conversations 🎉

Other MCP-Compatible Applications 🌐

For any application that supports MCP: 🔌

  1. Add the server configuration pointing to the cbn_mcp executable 📝
  2. The server will expose CBN data access tools to your AI assistant 🤖

Usage Examples 💡

Once integrated, you can ask your AI assistant: 🗣️

Circulars Examples 📋

  • "What are the latest CBN circulars from this month?" 📅
  • "Find all CBN regulations related to cryptocurrency" 💰
  • "Get me the details of CBN circular BSD/DIR/GEN/LAB/11/020" 🔍
  • "Summarize the key points from recent CBN monetary policy circulars" 📊
  • "What are the compliance requirements for banks based on recent CBN circulars?" ⚖️

Exchange Rates Examples 💱

  • "What is the current USD/NGN exchange rate?" 💵
  • "Show me the exchange rates for the past week" 📈
  • "Get the official CBN rate for EUR to NGN" 💶

Financial Data Examples 📊

  • "What are the current CBN monetary policy parameters?" 🏛️
  • "Show me the repo rates for the last month" 📊
  • "What is the current cash reserve ratio?" 💰
  • "Get the opening balance data for this quarter" 📅

Development 👨‍💻

Prerequisites 📋

  • Dart SDK ^3.9.2
  • Git

Setup 🛠️

  1. Clone the repository:

    bash
    git clone https://github.com/chiziaruhoma/cbn_mcp.git
    cd cbn_mcp
  2. Install dependencies:

    bash
    dart pub get
  3. Generate mappable classes (if needed):

    bash
    dart run build_runner build

Running the Server ▶️

bash
# 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

Testing 🧪

bash
dart test

Building for Distribution 📦

bash
# Build executable
dart compile exe bin/main.dart -o cbn_mcp

# The executable can be distributed and run on any compatible system

Project Structure 📁

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

Contributing 🤝

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

API Documentation 📖

This project integrates with the Central Bank of Nigeria's public API. For more information about the available endpoints, visit the CBN Developer Portal.

License 📄

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments 🙏

  • Central Bank of Nigeria for providing the public API
  • The MCP community for the protocol specification
  • mcp_server_dart for the Dart MCP framework

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "chiziaruhoma-cbn_mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cbn_mcp"
      ]
    }
  }
}

CBN MCP 服务器 MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal CBN MCP 服务器 verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung, fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector: D'Optioun „Dësen Apparat“ ass ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Setzt de kopéierte Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

CBN MCP 服务器 als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a setzt d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Setzt d'MCP-Serverkonfiguratioun fir CBN MCP 服务器 an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert d'Säit, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "chiziaruhoma-cbn_mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cbn_mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vun der Integratioun CBN MCP 服务器. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vun der Integratioun CBN MCP 服务器.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierten MCP-Tools an engem ausgewielte KI-Modell
Kënnt Dir mir mat CBN MCP 服务器 bei dëser Aufgab hëllefen?
CBN MCP 服务器
Jo. Ech hunn et gelies.
Dat hunn ech mat CBN MCP 服务器 fonnt.

Heefeg gestallte Froen

Fir wat gëtt den MCP-Server CBN MCP 服务器 benotzt?

CBN MCP 服务器 ass en MCP-Server, deen et kompatibele KI-Clienten erlaabt, op extern Tools a Kontextinformatioune zouzegräifen. An TypingMind kënnt Dir dësen MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech CBN MCP 服务器 MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir CBN MCP 服务器 mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni den MCP-Server fir all Modell separat anzeriichten.

Firwat CBN MCP 服务器 MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann CBN MCP 服务器 verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Ären Aarbechtsoflaf beim Chatten an TypingMind organiséieren.

Wéi verbannen ech CBN MCP 服务器 MCP mat TypingMind?

CBN MCP 服务器 leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann den MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt CBN MCP 服务器 MCP an TypingMind zur Verfügung?

CBN MCP 服务器 stellt MCP-Funktioune zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agente zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir CBN MCP 服务器 MCP ze benotzen?

Nee. TypingMind ass nom Local-first-Prinzip opgebaut a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann CBN MCP 服务器 eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir deen MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇