关于 Service Public France
Service Public France 是托管式 MCP 服务,可查询法国公共服务信息和政府数据。工具涵盖行政、税务、房产、教育、医疗、就业、安全、法律文本等领域。
主要功能
- 01搜索公共服务指南和办事机构
- 02查询税务、房产与企业数据
- 03浏览教育和医疗统计
- 04访问法律文本与判例
- 05模拟税费和房产交易费用
- 06跨数据集比较市镇
适用场景
- 01查询护照续办流程
- 02比较房产与地方税数据
- 03查找学校或培训项目
- 04查找法律文本或公共采购公告
MCP 相关
通过托管 MCP 端点提供 38 种工具,包括统一搜索、公共数据专项查询和模拟器。MCP 兼容客户端可通过其 Streamable HTTP 地址连接。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://mcp-service-public.nhaultcoeur.workers.dev/mcpclaude mcp add --transport http onenicolas-mcp-service-public https://mcp-service-public.nhaultcoeur.workers.dev/mcp{"mcpServers":{"onenicolas-mcp-service-public":{"type":"http","url":"https://mcp-service-public.nhaultcoeur.workers.dev/mcp"}}}在 Cursor 中打开{"servers":{"onenicolas-mcp-service-public":{"type":"http","url":"https://mcp-service-public.nhaultcoeur.workers.dev/mcp"}}}在 VS Code 中打开{"mcpServers":{"onenicolas-mcp-service-public":{"type":"http","url":"https://mcp-service-public.nhaultcoeur.workers.dev/mcp"}}}{"mcpServers":{"onenicolas-mcp-service-public":{"serverUrl":"https://mcp-service-public.nhaultcoeur.workers.dev/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
38| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| limit | number | 否 | 结果数量(1-10,默认 5) |
| query | string | 是 | 用自然语言提出的问题或搜索词(例如:‘里昂的房产税’、‘续办护照’、‘邦迪的房价’、‘25 万欧元的公证费’、‘波尔多的 Pinel 区域’、‘建筑行业集体协议’、‘已婚且有 2 个孩子、收入 4 万欧元时要缴多少税’) |
详细介绍
mcp-service-public
面向法国公共数据的 MCP(Model Context Protocol)服务。可访问 service-public.fr 实用信息指南、地方税务、DVF 房地产交易数据、BOFiP 税务指引、ABC 分区、集体协议、企业查询、学校名录、高中成绩(IVAL)、全国评估(6 年级/CE2)、Parcoursup 培训、医疗服务可及性(data.ameli.fr)、职业融入情况(InserJeunes)、安全/犯罪统计数据(SSMSI)、自然灾害风险(Georisques)、Legifrance 法律文本(法律、法令、法律法规、判例)、《官方公报》(JORF)、CAF 社会援助统计数据(RSA/APL/AAH)和模拟计算工具(房产税、公证费、个人所得税)。
安装
托管服务——无需安装。将以下 URL 连接到您的 MCP 客户端:
https://mcp-service-public.nhaultcoeur.workers.dev/mcp
Claude.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.json - macOS:
~/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 个工具,服务即可使用。
38 个 MCP 工具(v1.14.8)
| # | 工具 | 来源 | 描述 |
|---|---|---|---|
| 1 | rechercher | 统一调度 | 根据查询自动路由至正确来源(32 个类别) |
| 2 | rechercher_fiche | DILA / service-public.fr | 在约 5,500 份实用指南中进行全文搜索 |
| 3 | lire_fiche | DILA / service-public.fr | 根据标识符完整读取指南(F14929、N360……) |
| 4 | rechercher_service_local | API Annuaire | 本地公共服务(市政厅、省政府、CAF……) |
| 5 | naviguer_themes | DILA / service-public.fr | 浏览主题树 |
| 6 | consulter_fiscalite_locale | DGFiP REI | 按市镇查询地方税率(TFB、TEOM、CFE……) |
| 7 | rechercher_doctrine_fiscale | BOFiP | 查询 8,983 篇现行税务解释文章 |
| 8 | consulter_transactions_immobilieres | DVF / data.gouv.fr | 中位价格、每平方米价格、按房产类型划分的分布、多年变化趋势 |
| 9 | simuler_taxe_fonciere | REI + DVF | 估算房产税 = 估算 VLC × 50 % × REI 实际税率 |
| 10 | simuler_frais_notaire | 法定费率表 | DMTO + 递减收费的公证费 + CSI + 垫付款项 |
| 11 | consulter_zonage_immobilier | data.gouv.fr | ABC 区域(Pinel、PTZ、租金/收入上限) |
| 12 | comparer_communes | REI + DVF + 分区 + 教育 + SSMSI + Georisques | 对 2 至 5 个市镇进行交叉比较(人口、税收、房产、教育、医疗、安全、自然灾害风险) |
| 13 | simuler_impot_revenu | 2025 年 IR 税率表 | 累进 IR、家庭商数、减税、CEHR、不动产/资本收入/BIC/BNC |
| 14 | rechercher_convention_collective | KALI / data.gouv.fr | 根据 IDCC 或关键词搜索集体协议 |
| 15 | rechercher_entreprise | DINUM + KALI | 根据 SIRET/SIREN/名称查询企业档案及适用协议 |
| 16 | rechercher_etablissement_scolaire | data.education.gouv.fr | 按市镇查询小学、初中、高中(68,000 多所学校) |
| 17 | consulter_resultats_lycee | DEPP / IVAL | 高中会考通过率、附加值、从高二升至会考的比例、荣誉等级 |
| 18 | consulter_evaluations_nationales | DEPP / data.education.gouv.fr | 按省查询六年级 + CE2 的成绩、IPS、能力分组、趋势 |
| 19 | consulter_parcoursup | MESR / data.education.gouv.fr | 按关键词、城市、省、学科查询 Parcoursup 培训项目(14,000 多个项目、选拔情况、录取者概况) |
| 20 | consulter_acces_soins | CNAM / data.ameli.fr | 按省查询医疗服务可及性:医生人数/密度、主治医生患者人数、医疗资源不足区域 |
| 21 | consulter_insertion_professionnelle | DEPP-DARES / data.education.gouv.fr | InserJeunes 职业融入情况:毕业后 6/12/24 个月就业率、继续深造情况、各培训项目的附加值 |
| 22 | consulter_securite | SSMSI / data.gouv.fr | 按省查询安全/犯罪统计:入室盗窃、盗窃、暴力犯罪、每 1,000 名居民的发生率 |
| 23 | consulter_risques_naturels | BRGM-MTE / georisques.gouv.fr | 按市镇查询自然与技术风险及 CatNat 法令 |
| 24 | rechercher_texte_legal | DILA / API PISTE Legifrance | 搜索立法和监管文本(法律、法令、决定、条例) |
| 25 | rechercher_code_juridique | DILA / API PISTE Legifrance | 搜索法律法规汇编中的条文(民法典、劳动法典、刑法典、商法典……) |
| 26 | rechercher_jurisprudence | DILA / API PISTE Legifrance | 搜索司法判例(最高法院、上诉法院) |
| 27 | consulter_journal_officiel | DILA / API PISTE Legifrance | 在《官方公报》(JORF)中搜索:法律、法令、决定、条例——按类型和日期范围筛选 |
| 28 | consulter_aide_sociale | CNAF / data.caf.fr | 按市镇或省查询 CAF 受益人统计:RSA、APL/ALS/ALF、AAH、家庭补助、就业补助金…… |
| 29 | rechercher_marche_public | DILA / boamp-datadila.opendatasoft.com | 搜索 BOAMP 公共采购公告:招标、授标、MAPA、DSP——按类型/省/采购方/日期筛选 |
| 30 | rechercher_annonce_legale | DILA / bodacc-datadila.opendatasoft.com | 搜索 BODACC 法律公告:注册、注销、转让、集体诉讼程序——按 SIREN/名称/类型/省筛选 |
| 31 | consulter_budget_epci | OFGL / data.ofgl.fr | 查询 EPCI 预算(大都市圈、CA、CC、CU):收入/支出、储蓄、债务、每名居民对应金额——2017-2024 年 |
| 32 | consulter_budget_commune | data.gouv.fr Tabular / OFGL | 查询市镇初始预算:总收入/支出、毛/净储蓄、未偿债务、每名居民对应金额 |
| 33 | rechercher_subvention | data.gouv.fr Tabular | 搜索金额超过 23,000 EUR 的地方政府补助——按受益方/授予方/用途/金额/年份筛选 |
| 34 | consulter_sirene_historique | API Recherche Entreprises DINUM | 按 NAF + 地区查询 SIRENE 企业——营业/停业状态、成立和关闭日期 |
| 35 | rechercher_offre_emploi | France Travail OAuth2 | 搜索有效职位——按关键词、市镇、省、合同类型、资格筛选 |
| 36 | consulter_prix_carburant | data.economie.gouv.fr | 按省或市镇查询实时燃油价格——按价格升序排列加油站,Gazole/SP95/SP98/E10/E85/GPLc,24 小时自助(每 10 分钟更新) |
| 37 | rechercher_formation | data.gouv.fr Tabular / Caisse des Depots | 搜索 MonCompteFormation 目录中符合 CPF 资格的培训项目——按关键词、省、ROME 代码、级别、远程培训筛选 |
| 38 | consulter_parcoursup_stats | 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" } }
全国评估(6 年级 / CE2)
{ "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 + Debours
- DMTO:5.81%(二手房,标准税率)或 6.32%(2025 年上调税率);0.71%(新房)
- 公证费:法定递减费率(3.87% → 0.799%)+ 20% 增值税
- CSI:房价的 0.10%(最低 15 EUR)
- 垫付款:约 1 200 EUR(估算)
所得税模拟器
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%
支持的补充收入:房产收入(简易税制 / 实际税制)、动产资本收入(统一定额预扣税 / 税率表)、微型 BIC(50%)、微型 BNC(34%)。
企业搜索
通过 DINUM 企业搜索 API 按 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 高中数据、6 年级/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、AF、活动补助金…… |
| 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) | 实时燃油价格数据流:加油站、Gazole/SP95/SP98/E10/E85/GPLc 价格,每 10 分钟更新 |
端点
| 方法 | 路径 | 描述 |
|---|---|---|
| POST | /mcp | MCP 端点(JSON-RPC) |
| GET | /health | 服务状态、版本、工具、最近一次错误 |
| GET | / | 服务描述 |
| GET | /openapi.json | OpenAPI 3.1 规范(公开,动态生成) |
| GET | /admin/dashboard | 含统计数据的 HTML 仪表板(需要身份验证) |
| GET | /admin/dashboard/api | 仪表板 JSON API(需要身份验证) |
| POST | /admin/sync/full | 完整同步 DILA(需要身份验证) |
| GET | /admin/sync | 最近同步的状态(需要身份验证) |
开发
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(DILA XML 解析)
- 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) - 遵循以下模式:
src/tools/中一个文件对应一个工具 - 在
src/index.ts中添加导入、定义和 case - 在
src/tools/__tests__/中编写测试 - 推送到
main-> 自动部署
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。