Benin OpenData MCP

Benin OpenData MCP

MCP server to navigate and consume public data from Benin's OpenData portal.

Category
Visit Server

README

Benin OpenData MCP

Server MCP (Model Context Protocol) pour naviguer et consommer les données publiques du Bénin.

Installation

pip install -e ".[test]"

Authentification

Ce serveur MCP interagit avec le portail OpenData du Bénin. L'authentification dépend du type d'opération :

Opération Clé API requise Description
Lecture (search, preview, download) ❌ Optionnelle Les données publiques sont accessibles sans authentification
Écriture (bulk upload) ✅ Obligatoire Nécessite une clé API avec permissions d'écriture

Obtenir une clé API

Pour les opérations d'écriture (bulk upload), contactez l'administration du portail OpenData du Bénin pour obtenir une clé API.

Configuration de la clé API

Si vous avez une clé API, configurez-la via la variable d'environnement :

export BENIN_OPEN_DATA_API_KEY="votre_cle_api_ici"

Usage

Lancer le serveur en local :

# Sans clé API (lecture seule)
fastmcp run src/opendata_bj/server.py

# Avec clé API (lecture + écriture)
BENIN_OPEN_DATA_API_KEY="votre_cle" fastmcp run src/opendata_bj/server.py

Usage avec Docker

Vous pouvez également exécuter ce serveur MCP via Docker.

  1. Construire l'image Docker :
docker build -t opendata-bj-mcp .
  1. Lancer le conteneur (lecture seule) :
docker run -i --rm opendata-bj-mcp
  1. Lancer le conteneur (avec clé API pour les opérations d'écriture) :
docker run -i --rm \
  -e BENIN_OPEN_DATA_API_KEY="votre_cle_api_ici" \
  opendata-bj-mcp

(L'option -i est utilisée car le serveur MCP communique via stdio)

Configuration dans un client MCP

Une fois l'application fonctionnelle, vous pouvez l'intégrer à un client compatible MCP (comme Claude Desktop, Cursor, OpenClaw, etc.) en renseignant la configuration suivante :

Exemple pour Claude Desktop (claude_desktop_config.json) ou Cursor :

Option 1 : En utilisant Python localement (lecture seule)

{
  "mcpServers": {
    "opendata-bj": {
      "command": "fastmcp",
      "args": ["run", "/chemin/absolu/vers/opendata-bj-mcp/src/opendata_bj/server.py"]
    }
  }
}

Option 2 : En utilisant Python localement (avec clé API)

{
  "mcpServers": {
    "opendata-bj": {
      "command": "fastmcp",
      "args": ["run", "/chemin/absolu/vers/opendata-bj-mcp/src/opendata_bj/server.py"],
      "env": {
        "BENIN_OPEN_DATA_API_KEY": "votre_cle_api_ici"
      }
    }
  }
}

Option 3 : En utilisant Docker (lecture seule)

{
  "mcpServers": {
    "opendata-bj": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "opendata-bj-mcp"
      ]
    }
  }
}

Option 4 : En utilisant Docker (avec clé API)

{
  "mcpServers": {
    "opendata-bj": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BENIN_OPEN_DATA_API_KEY=votre_cle_api_ici",
        "opendata-bj-mcp"
      ]
    }
  }
}

(Assurez-vous que fastmcp est bien accessible globalement ou précisez le chemin absolu vers votre environnement virtuel)

Architecture

Inspirée du projet Collegue, cette architecture privilégie la modularité et la validation stricte des données via Pydantic v2.

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