返回 MCP 目录
public公开dns本地运行

DataGouv MCP服务器

一个MCP服务器,用于实现与DataGouv API的交互,主要允许用户搜索在法国注册公司的最新信息。

article

README

Data Gouv MCP Server

MCP server for interacting with Datagouv APIs. Specifically:

This MCP server uses HTTP+SSE transport defined in MCP

Features

Tools

  • search-company - Find up to date information (name, address, list of directors, sector, etc.) about a company listed in France by providing a search query (name of the company, of the CEO, address, etc.)

Installation

Follow those instructions to run Data Gouv MCP server on your host.

Requirements

  • Node 22 (lts/jod)
  • pnpm 10

Instructions

  • Install dependencies:
pnpm install
  • Run the server:
pnpm run dev
  • Configure your favorite MCP client to use this new server:
{
  "mcpServers": {
    "data-gouv": {
      "url": "http://localhost:3001/sse"
    }
  }
}

Debugging

Start the MCP Inspector to debug this server, which is available as a package script:

pnpm run inspector

Access the inspector in your browser at http://localhost:5173

Acknowledgment

  • Frederic Barthelet who allowed me to hit the ground running with building an MCP server in ts.
  • Matt Pocock and his always welcome neat TS tricks specifically in the context of writting your own MCP server on AI Hero: https://www.aihero.dev/publish-your-mcp-server-to-npm
help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端