Logo di CBN MCP 服务器

CBN MCP 服务器

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

Pubblicato daZfinix
Repositorycbn_mcp
LinguaDart
Fork
3
Stelle
19
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    CBN MCP 服务器 mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 19; fork: 3 (repository collegato).

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

Installazione

TypingMind
Prerequisiti:

Node.js 18+

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

Usa CBN MCP 服务器 MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso CBN MCP 服务器, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi CBN MCP 服务器 come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di CBN MCP 服务器.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "chiziaruhoma-cbn_mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cbn_mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di CBN MCP 服务器, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di CBN MCP 服务器.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare CBN MCP 服务器 per aiutarmi con questa attività?
CBN MCP 服务器
Certo. L’ho letto.
Ecco cosa ho trovato con CBN MCP 服务器.

Domande frequenti

A cosa serve il server MCP CBN MCP 服务器?

CBN MCP 服务器 è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP CBN MCP 服务器 con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare CBN MCP 服务器 con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP CBN MCP 服务器 con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando CBN MCP 服务器, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP CBN MCP 服务器 a TypingMind?

CBN MCP 服务器 funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre il server MCP CBN MCP 服务器 in TypingMind?

CBN MCP 服务器 mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP CBN MCP 服务器?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se CBN MCP 服务器 richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇