mcp-service-public
mcp-service-public
用于法国公共数据的 MCP(模型上下文协议)服务器。可访问 service-public.fr 实用指南、地方税收、DVF 不动产交易、BOFiP 税务法规、ABC 分区、集体协议、企业搜索、学校目录、高中成绩 (IVAL)、国家评估 (六/三年级 CE2)、Parcoursup 培训、就医服务 (data.ameli.fr)、职业融入 (InserJeunes)、安全/犯罪统计 (SSMSI)、自然灾害 (Georisques)、Legifrance 法律文本(法律、法令、法典、判例)、官方公报 (JORF)、CAF 社会救助统计(RSA/APL/AAH)以及模拟器(房产税、公证费、所得税)。
安装
托管服务器 — 无需安装。将以下 URL 连接到您的 MCP 客户端:
https://mcp-service-public.nhaultcoeur.workers.dev/mcpClaude.ai(网页版 / 移动端)
打开 设置(齿轮图标)
集成 部分 > MCP
点击 添加集成
粘贴上述 URL
23 个工具自动出现
Claude Desktop
在 claude_desktop_config.json 中添加:
{
"mcpServers": {
"service-public": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp-service-public.nhaultcoeur.workers.dev/mcp"]
}
}
}文件位置:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
修改后重启 Claude Desktop。
VS Code / Cursor
在项目根目录创建 .vscode/mcp.json:
{
"servers": {
"service-public": {
"type": "sse",
"url": "https://mcp-service-public.nhaultcoeur.workers.dev/mcp"
}
}
}其他 MCP 客户端
任何兼容 MCP Streamable HTTP 的客户端均可使用上述 URL 连接。请查阅客户端文档进行配置。
验证
连接后,用一个简单请求测试:
Recherche : renouveler passeport如果加载了 38 个工具,则服务器已就绪。
Related MCP server: datagouv-mcp
38 个 MCP 工具(v1.14.8)
# | 工具 | 来源 | 描述 |
1 |
| 统一调度 | 根据请求自动路由至正确来源(32 个分类) |
2 |
| DILA / service-public.fr | 在约 5 500 份实用说明页中进行全文搜索 |
3 |
| DILA / service-public.fr | 通过标识符(F14929, N360...)完整读取一份说明页 |
4 |
| API Annuaire | 查找地方公共服务(市政府、省政府、CAF...) |
5 |
| DILA / service-public.fr | 浏览主题目录结构 |
6 |
| DGFiP REI | 按市镇查询地方税率(TFB、TEOM、CFE...) |
7 |
| BOFiP | 8 983 篇现行税务理论文章 |
8 |
| DVF / data.gouv.fr | 中位价、价格/平方米、按房产类型分布、多年趋势变化 |
9 |
| REI + DVF | 地籍税估算 = 预估应税地租值 x 50 % x 实际 REI 税率 |
10 |
| 法定费率表 | DMTO + 递减酬金 + CSI + 垫付费用 |
11 |
| data.gouv.fr | ABC 分区(Pinel、PTZ、租金/收入上限) |
12 |
| REI + DVF + 分区 + 教育 + SSMSI + Georisques | 2 至 5 个市镇的交叉对比表(人口、财政、房地产、教育、医疗、治安、自然灾害) |
13 |
| 2025 年所得税率表 | 累进个人所得税、家庭系数、减免额、CEHR、房产/资本/工商/非商业收入 |
14 |
| KALI / data.gouv.fr | 按 IDCC 或关键词查找集体协议 |
15 |
| DINUM + KALI | 通过 SIRET/SIREN/名称查询企业信息 + 适用协议 |
16 |
| data.education.gouv.fr | 按市镇查询学校、初中、高中(68 000+ 所机构) |
17 |
| DEPP / IVAL | 高中毕业会考成功率、增值贡献、从初二到高中毕业的升学路径、获得评语的比例 |
18 |
| DEPP / data.education.gouv.fr | 六年级和小学毕业班按省份的评分、IPS、水平组别、趋势 |
19 |
| MESR / data.education.gouv.fr | 按关键词、城市、省份、专业方向搜索 Parcoursup 的培训课程(14 000+ 课程、选拔性、被录取者画像) |
20 |
| CNAM / data.ameli.fr | 按省份的医疗可及性:医生人数/密度、主治医师患者数、医疗资源匮乏地区 |
21 |
| DEPP-DARES / data.education.gouv.fr | InserJeunes 职业融入:6/12/24 个月就业率、继续学业率、按培训的附加值 |
22 |
| SSMSI / data.gouv.fr | 省级治安/犯罪统计:入室盗窃、抢劫、暴力事件、每千人发生率 |
23 |
| BRGM-MTE / georisques.gouv.fr | 按市镇的自然和技术风险 + 自然灾害状态法令 |
24 |
| DILA / API PISTE Legifrance | 立法和法规文本(法律、法令、部令、政令) |
25 |
| DILA / API PISTE Legifrance | 法律法典中的条款(民法典、劳动法典、刑法典、商法典...) |
26 |
| DILA / API PISTE Legifrance | 司法判例(最高法院、上诉法院) |
27 |
| DILA / API PISTE Legifrance | 在《官方公报》(JORF)中搜索:法律、法令、部令、政令 — 按类型和日期范围筛选 |
28 |
| CNAF / data.caf.fr | 按市镇或省份查询 CAF 受益者统计数据:RSA、APL/ALS/ALF、AAH、家庭津贴、就业补助金... |
29 |
| DILA / boamp-datadila.opendatasoft.com | BOAMP 公共采购通告:招标、中标、MAPA、DSP — 按类型/省份/采购方/日期筛选 |
30 |
| DILA / bodacc-datadila.opendatasoft.com | BODACC 法律公告:注册、注销、转让、集体程序 — 按 SIREN/名称/类型/省份筛选 |
31 |
| OFGL / data.ofgl.fr | EPCI(都市区、CA、CC、CU)的预算:收入/支出、储蓄、债务、欧元/居民 — 2017-2024 年 |
32 |
| data.gouv.fr Tabular / OFGL | 市镇初步预算:总收支、毛/净储蓄、未偿债务额、欧元/居民 |
33 |
| data.gouv.fr Tabular | 超过 23 000 欧元的地方政府补助 — 按受益人/拨款方/事由/金额/年份筛选 |
34 |
| API Recherche Entreprises DINUM | SIRENE 企业按 NAF + 地区查询 — 活跃/停业状态、成立和注销日期 |
35 |
| France Travail OAuth2 | 活跃的招聘岗位 — 按关键词、市镇、省份、合同类型、资质等级筛选 |
36 |
| data.economie.gouv.fr | 按省份或市镇的实时燃油价格 — 按价格升序排列的加油站、柴油/SP95/SP98/E10/E85/GPLc、24 小时自动加油站(每 10 分钟更新) |
37 |
| data.gouv.fr Tabular / 信托局 | MonCompteFormation 目录中的合格 CPF 培训 — 按关键词、省份、ROME 代码、级别、远程培训筛选 |
38 |
| MESR / data.education.gouv.fr | 按课程的 Parcoursup 选拔性统计:进入率、最后录取名次、被录取者普通/技术/职业会考类型、评语、奖学金获得者 |
调用示例
统一搜索(自动调度)
{ "name": "rechercher", "arguments": { "query": "prix immobilier a Lyon" } }
{ "name": "rechercher", "arguments": { "query": "renouveler passeport" } }
{ "name": "rechercher", "arguments": { "query": "93140 taxe fonciere" } }
{ "name": "rechercher", "arguments": { "query": "SIRET 41816609600069" } }企业搜索
{ "name": "rechercher_entreprise", "arguments": { "siret": "41816609600069" } }
{ "name": "rechercher_entreprise", "arguments": { "nom": "OCTO Technology" } }模拟地籍税
{ "name": "simuler_taxe_fonciere", "arguments": { "commune": "Lyon", "surface": 75, "type_bien": "Appartement" } }模拟公证费
{ "name": "simuler_frais_notaire", "arguments": { "prix": 250000, "type": "ancien", "departement": "75" } }模拟个人所得税
{ "name": "simuler_impot_revenu", "arguments": { "revenu_net_imposable": 42000 } }
{ "name": "simuler_impot_revenu", "arguments": { "revenu_net_imposable": 80000, "situation": "marie", "nb_enfants": 2 } }
{ "name": "simuler_impot_revenu", "arguments": { "revenu_net_imposable": 50000, "revenus_fonciers": 12000, "regime_foncier": "micro" } }集体协议
{ "name": "rechercher_convention_collective", "arguments": { "query": "boulangerie" } }
{ "name": "rechercher_convention_collective", "arguments": { "idcc": "3248" } }学校机构
{ "name": "rechercher_etablissement_scolaire", "arguments": { "commune": "Lyon", "type": "lycee" } }
{ "name": "rechercher_etablissement_scolaire", "arguments": { "code_postal": "93140", "statut": "public" } }
{ "name": "rechercher_etablissement_scolaire", "arguments": { "nom": "Lacassagne" } }高中成绩(IVAL)
{ "name": "consulter_resultats_lycee", "arguments": { "commune": "Lyon" } }
{ "name": "consulter_resultats_lycee", "arguments": { "nom_lycee": "Lacassagne", "type": "gt" } }国家评估(六年级 / 小学毕业班)
{ "name": "consulter_evaluations_nationales", "arguments": { "code_departement": "93" } }
{ "name": "consulter_evaluations_nationales", "arguments": { "commune": "Lyon", "niveau": "6eme" } }
{ "name": "consulter_evaluations_nationales", "arguments": { "code_postal": "93140", "niveau": "CE2" } }Parcoursup 培训课程
{ "name": "consulter_parcoursup", "arguments": { "recherche": "informatique", "ville": "Lyon" } }
{ "name": "consulter_parcoursup", "arguments": { "filiere": "BTS", "recherche": "comptabilite" } }
{ "name": "consulter_parcoursup", "arguments": { "departement": "93", "filiere": "Licence" } }Parcoursup 选拔性统计
{ "name": "consulter_parcoursup_stats", "arguments": { "formation": "BTS comptabilite" } }
{ "name": "consulter_parcoursup_stats", "arguments": { "formation": "licence informatique", "ville": "Lyon" } }
{ "name": "consulter_parcoursup_stats", "arguments": { "formation": "CPGE scientifique", "filiere": "CPGE", "limit": 5 } }医疗可及性
{ "name": "consulter_acces_soins", "arguments": { "commune": "Bondy" } }
{ "name": "consulter_acces_soins", "arguments": { "code_departement": "93" } }职业融入(InserJeunes)
{ "name": "consulter_insertion_professionnelle", "arguments": { "ville": "Lyon", "limit": 5 } }
{ "name": "consulter_insertion_professionnelle", "arguments": { "uai": "0691723Y" } }
{ "name": "consulter_insertion_professionnelle", "arguments": { "recherche": "coiffure", "code_departement": "69" } }治安与犯罪
{ "name": "consulter_securite", "arguments": { "code_departement": "75" } }
{ "name": "consulter_securite", "arguments": { "commune": "Lyon" } }自然灾害
{ "name": "consulter_risques_naturels", "arguments": { "commune": "Nimes" } }
{ "name": "consulter_risques_naturels", "arguments": { "code_insee": "75056" } }法律文本(Legifrance)
{ "name": "rechercher_texte_legal", "arguments": { "recherche": "protection donnees personnelles" } }
{ "name": "rechercher_texte_legal", "arguments": { "recherche": "teletravail", "champ": "TITLE" } }法律法典(Legifrance)
{ "name": "rechercher_code_juridique", "arguments": { "recherche": "contrat de travail", "code": "Code du travail" } }
{ "name": "rechercher_code_juridique", "arguments": { "recherche": "legitime defense", "code": "Code penal" } }
{ "name": "rechercher_code_juridique", "arguments": { "recherche": "1242", "code": "Code civil", "champ": "NUM_ARTICLE" } }判例(Legifrance)
{ "name": "rechercher_jurisprudence", "arguments": { "recherche": "licenciement abusif" } }
{ "name": "rechercher_jurisprudence", "arguments": { "recherche": "clause abusive", "juridiction": "Cour de cassation", "publie_bulletin": true } }
{ "name": "rechercher_jurisprudence", "arguments": { "recherche": "prejudice moral", "juridiction": "Cours d'appel" } }官方公报(JORF)
{ "name": "consulter_journal_officiel", "arguments": { "recherche": "teletravail" } }
{ "name": "consulter_journal_officiel", "arguments": { "recherche": "loi finances", "type_texte": "LOI", "date_debut": "2024-01-01", "date_fin": "2024-12-31" } }
{ "name": "consulter_journal_officiel", "arguments": { "recherche": "protection donnees", "type_texte": "DECRET", "limit": 10 } }社会援助 — CAF 统计数据
{ "name": "consulter_aide_sociale", "arguments": { "commune": "Bondy" } }
{ "name": "consulter_aide_sociale", "arguments": { "code_departement": "93" } }
{ "name": "consulter_aide_sociale", "arguments": { "code_postal": "93140", "prestation": "RSA" } }公共采购(BOAMP)
{ "name": "rechercher_marche_public", "arguments": { "recherche": "travaux voirie", "departement": "35" } }
{ "name": "rechercher_marche_public", "arguments": { "type_avis": "AAC", "departement": "75" } }
{ "name": "rechercher_marche_public", "arguments": { "acheteur": "Departement du Rhone", "type_avis": "APC" } }法律公告(BODACC)
{ "name": "rechercher_annonce_legale", "arguments": { "siren": "123456789" } }
{ "name": "rechercher_annonce_legale", "arguments": { "nom_entreprise": "SARL Martin" } }
{ "name": "rechercher_annonce_legale", "arguments": { "type_annonce": "procedure_collective", "departement": "69" } }查询 ABC 分区
{ "name": "consulter_zonage_immobilier", "arguments": { "commune": "Bordeaux" } }比较市镇
{ "name": "comparer_communes", "arguments": { "communes": ["Lyon", "Bordeaux", "Nantes"] } }地方税收
{ "name": "consulter_fiscalite_locale", "arguments": { "code_postal": "93140" } }
{ "name": "consulter_fiscalite_locale", "arguments": { "communes": ["PARIS", "LYON", "MARSEILLE"] } }房地产交易(DVF)
{ "name": "consulter_transactions_immobilieres", "arguments": { "commune": "Bondy", "type_local": "Appartement" } }
{ "name": "consulter_transactions_immobilieres", "arguments": { "commune": "Lyon", "evolution": true } }工作原理
地籍税模拟器
VLC estimee = Surface ponderee x Tarif ajuste x Coef. entretien
Base imposable = VLC x 50 %
TF estimee = Base imposable x Taux global TFB (REI)加权面积:居住面积 + 舒适度等效面积
调整费率:全国VLC费率 × 当地DVF价格/全国价格比率
维护系数:根据房产年限(0.90 至 1.15)
TFB税率:地方政府投票确定的实际税率(来源:REI DGFiP)
公证费模拟器
Frais = DMTO + Emoluments TTC + CSI + DeboursDMTO:5.81%(旧房,标准税率)或 6.32%(2025年上调税率);0.71%(新房)
酬金:递减法定费率(3.87% → 0.799%)+ 20%增值税
CSI:价格的0.10%(最低15欧元)
垫付款:约1,200欧元(估算)
所得税模拟器
Quotient familial = Revenu net imposable / Nombre de parts
IR brut = Bareme progressif applique au QF x Nombre de parts
IR net = IR brut - Decote (si applicable) + CEHR (si > 250k/500k)2025年税率表(2024年收入):0% / 11% / 30% / 41% / 45%
支持的补充收入:房产收入(微型/实际)、动产资本收入(PFU/税率表)、微型BIC(50%)、微型BNC(34%)。
企业搜索
通过企业搜索API(DINUM)按SIRET、SIREN或名称搜索。返回法律形式、NAF代码、员工数、高管、地址,以及指向KALI的链接以获取适用的集体协议。
学校机构
代理至data.education.gouv.fr的Explore v2.1 API(国家教育名录,68,000+机构)。筛选条件:市镇、邮政编码、类型(小学/初中/高中)、性质(公立/私立)、名称。返回地址、联系方式、教学路径、服务(餐饮、寄宿、ULIS、SEGPA)、特色班(欧洲、国际、体育、艺术)。
高中成绩(IVAL)
代理至DEPP的IVAL GT和Pro数据集(data.education.gouv.fr)。并行查询GT + Pro,按附加值降序排序。指标:高中毕业会考通过率、附加值、初二至高中入学率、优秀率、各年级学生数。2012-2024届。
架构
Cloudflare Workers (plan payant)
+-- Transport : Streamable HTTP (POST /mcp)
+-- D1 SQLite (fiches DILA)
| +-- fiches (~5 500 fiches pratiques)
| +-- fiches_fts (index FTS5, tokenize unicode61)
| +-- themes (304 themes hierarchiques)
| +-- sync_log (historique des synchronisations)
| +-- tool_stats (statistiques d'usage)
+-- Proxy API (temps reel, cache + retry)
| +-- data.economie.gouv.fr -> REI fiscalite locale + BOFiP
| +-- data.gouv.fr -> DVF transactions + Zonage ABC + KALI conventions
| +-- data.education.gouv.fr -> Annuaire etablissements + IVAL lycees + Evaluations nationales + Parcoursup + InserJeunes
| +-- georisques.gouv.fr -> Risques naturels GASPAR + Arretes CatNat
| +-- data.ameli.fr -> Acces aux soins (effectifs, densite, patientele MT)
| +-- api.piste.gouv.fr -> Legifrance (textes legaux, codes juridiques, jurisprudence, JORF)
| +-- data.caf.fr -> Statistiques CAF allocataires (RSA, APL, AAH, AF, prime d'activite)
| +-- boamp-datadila.opendatasoft.com -> Marches publics BOAMP (appels d'offres, attributions, MAPA, DSP)
| +-- bodacc-datadila.opendatasoft.com -> Annonces legales BODACC (immatriculations, radiations, cessions, procedures collectives)
| +-- geo.api.gouv.fr -> Resolution communes
| +-- recherche-entreprises.api.gouv.fr -> Fiche entreprise
| +-- API Annuaire -> services publics locaux
+-- Cron (0 6 * * *) -> sync quotidienne DILA数据来源
来源 | 类型 | 数据 |
DILA (lecomarquage) | 每日ZIP → D1 | 实用指南、主题 |
API Annuaire | 实时代理 | 地方公共服务 |
data.economie.gouv.fr | 实时代理 | 地方税收(REI)、BOFiP法规 |
data.gouv.fr | 实时代理 | DVF交易、ABC分区、KALI集体协议、SSMSI安全/犯罪 |
geo.api.gouv.fr | 实时代理 | 市镇解析(邮政编码/INSEE代码/名称) |
recherche-entreprises.api.gouv.fr | 实时代理 | 企业(SIRET/SIREN/名称、高管、IDCC) |
data.education.gouv.fr | 实时代理 | 学校机构名录、高中IVAL、六年级/CE2国家评估、Parcoursup培训、InserJeunes就业情况 |
georisques.gouv.fr | 实时代理(API v1 GASPAR) | 市镇自然和技术风险、自然灾害认定(CatNat) |
data.ameli.fr | 实时代理 | 医疗可及性:医生人数/密度、全科医生患者量、首次执业、资源不足地区 |
api.piste.gouv.fr (DILA) | 实时代理(OAuth2) | Legifrance:法律文本(LODA)、法典(CODE)、判例(JURI/CAPP)、官方公报(JORF) |
data.caf.fr (CNAF) | 实时代理 | 按市镇/省份统计的CAF受益人数据:RSA、APL/ALS/ALF、AAH、家庭津贴、活动津贴... |
boamp-datadila.opendatasoft.com (DILA) | 实时代理(Opendatasoft v2.1) | BOAMP公共采购:招标、授予、MAPA、DSP — 每日更新 |
bodacc-datadila.opendatasoft.com (DILA) | 实时代理(Opendatasoft v2.1) | BODACC法律公告:注册、注销、转让、集体程序 |
data.economie.gouv.fr | 实时代理(Opendatasoft v2.1) | 即时燃油价格:加油站、柴油/SP95/SP98/E10/E85/GPLc价格,每10分钟更新 |
端点
方法 | 路径 | 描述 |
POST |
| MCP端点(JSON-RPC) |
GET |
| 服务健康状态、版本、工具、最后错误 |
GET |
| 服务描述 |
GET |
| OpenAPI 3.1规范(公开,动态生成) |
GET |
| 带统计信息的HTML仪表盘(需认证) |
GET |
| 仪表盘JSON API(需认证) |
POST |
| 完整DILA同步(需认证) |
GET |
| 最近同步状态(需认证) |
开发
npm install
npm run dev # Serveur local
npx vitest run # Tests unitaires (~600 tests)
npm run typecheck # Verification TypeScript (0 erreurs)
npm run deploy # Deploiement Cloudflare技术栈
TypeScript / Cloudflare Workers
D1 SQLite + FTS5
Vitest(单元测试)
fflate(ZIP解压)
fast-xml-parser(XML解析DILA)
API:Annuaire、data.economie.gouv.fr、data.gouv.fr、geo.api.gouv.fr、recherche-entreprises.api.gouv.fr
许可证
MIT
贡献
Fork仓库
创建分支(
git checkout -b feature/mon-outil)遵循模式:1个文件 = 1个工具,位于
src/tools/在
src/index.ts中添加导入 + 定义 + case在
src/tools/__tests__/中编写测试推送到
main-> 自动部署
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server that enables interaction with Datagouv APIs, primarily allowing users to search for up-to-date information about companies registered in France.11
- AlicenseAqualityAmaintenanceAn MCP server that connects AI chatbots directly to data.gouv.fr, France’s national open data platform. It allows users to search, explore, and analyze thousands of public datasets simply by asking questions in natural language.101,579MIT
- Flicense-qualityDmaintenanceMCP server for exploring French public open data via APIs like data.gouv.fr, geo.api.gouv.fr, INSEE Sirene, and Radio France.
- Flicense-qualityDmaintenanceMCP server to query French Open Data from data.gouv.fr
Related MCP Connectors
French public-data MCP: cross-ref health, demographics, business, geo & real-estate.
MCP server for French (BOAMP) + EU (TED) public procurement data via TenderAPI.
France Economy & Finance Open Data (data.economie.gouv.fr) — OpenDataSoft MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/OneNicolas/mcp-service-public'
If you have feedback or need assistance with the MCP directory API, please join our Discord server