siret-mcp
siret-mcp
Servidor MCP para los datos del registro francés de empresas. Pregunta por cualquier empresa francesa por nombre, SIREN o SIRET y obtén JSON limpio — con cada código del registro ya traducido a francés corriente.
El registro oficial te entrega "nature_juridique": "5710", "activite_principale": "62.01Z", "tranche_effectif_salarie": "12". Un LLM que recibe eso o bien adivina o bien alucina. Este servidor te entrega "Société par actions simplifiée (SAS)", "Programmation informatique", "20 à 49 salariés" — con el código original al lado para que la respuesta siga siendo comprobable.
Sin clave API. Sin cuenta.
Instalación
Claude Code
claude mcp add siret -- npx -y siret-mcpCursor — ~/.cursor/mcp.json:
{
"mcpServers": {
"siret": {
"command": "npx",
"args": ["-y", "siret-mcp"]
}
}
}Claude Desktop — claude_desktop_config.json, el mismo bloque que Cursor.
Reinicia el cliente. Deberías ver cuatro herramientas.
Related MCP server: mcp-recherche-entreprise
Prueba estos
"¿Sigue activo el SIREN 552100554 y qué forma jurídica tiene?"
"Busca empresas de software en Loire-Atlantique con más de 20 empleados."
"¿Qué significa el código NAF 43.22A?"
"Aquí tienes un SIRET de una factura: 55210055400015 — verifícalo y dime la dirección registrada."
"Enumera todos los establecimientos de este SIREN e indica cuál es la sede central."
Herramientas
Herramienta | Qué hace |
| Búsqueda aproximada por nombre, nombre comercial, sigla o directivo. Filtros: departamento, código postal, código NAF, solo empresas activas. Devuelve resúmenes compactos. |
| Perfil completo a partir de un SIREN (9 dígitos) o SIRET (14). Valida la suma de verificación de Luhn antes de consumir una solicitud. |
| Todos los establecimientos conocidos de un SIREN, la sede central primero, con un indicador |
| Interpreta NAF / forma jurídica / tramo de plantilla / estado. Sin conexión, sin llamada a la API. |
Además, un recurso siret://health que expone estadísticas de la caché.
Decisiones de diseño que conviene conocer
Los códigos siempre van acompañados de etiquetas. Todo campo codificado devuelve {code, label, exact, source}. exact: false significa que la etiqueta procede de un respaldo (una sección NAF en lugar de la clase precisa), de modo que un modelo puede matizar adecuadamente en lugar de afirmar una suposición como un hecho.
Los campos ausentes se indican por su nombre, no se devuelven como nulos. Cada perfil incluye un array missing. Ante "workforce": null, un modelo a menudo inventará un número de empleados. Ante "missing": ["workforce"], dice que el registro no dispone de ese dato.
Los errores se devuelven, no se lanzan. Los fallos se devuelven como JSON con un campo hint, para que el modelo pueda reintentar o reformular en lugar de morir a mitad de la conversación.
La caché es el producto, no una optimización. El servicio de origen limita las ráfagas de peticiones. Una caché con TTL de 6 horas (SIRENE_CACHE_TTL_MS) es lo que hace que esto sea utilizable en un bucle de agente que pregunta por la misma empresa nueve veces.
Cuatro herramientas, no doce. Cada herramienta extra cuesta contexto al modelo que llama y añade una forma de que se equivoque.
Limitaciones
Las tablas de códigos son parciales. La NAF rev. 2 completa tiene ~732 códigos y la catégorie juridique ~300; este servidor incluye los habituales más un respaldo que se marca como aproximado (
exact: false).Respaldado por
recherche-entreprises.api.gouv.fr, no por INSEE Sirene v3. No requerir clave API significa que funciona de inmediato. La contrapartida son menos campos y ninguna lista exhaustiva de establecimientos.La caché es interna al proceso. Adecuada para un servidor stdio local, pero no para uno alojado multiinquilino.
Datos y atribución
Los datos proceden de la API Recherche d'Entreprises (DINUM), derivados de INSEE SIRENE, bajo Licence Ouverte. Los registros de directivos pueden incluir el año de nacimiento. Eres responsable de usar los datos conforme a la ley.
Desarrollo
git clone https://github.com/tbellicha/siret-mcp.git
cd siret-mcp
npm install
npm run build
npm test # node:test, offline
npm run test:live # hits the real API
npm run typecheckLicencia
MIT © 2026 tbellicha
Available Tools
4 toolsexplain_codeDecode a registry codeA
Translate a NAF activity code, catégorie juridique (legal form), workforce bracket, or administrative status into plain French. Offline — no API call. Use this instead of guessing what a code means.
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | e.g. '62.01Z', '5710', '12', 'A', 'PME' |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must carry behavioral disclosure. It adds useful traits: the operation is offline ('no API call') and translates several code categories into plain French. It stops short of describing error behavior, output format, or what happens for unsupported codes, so it is adequate but not rich.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short sentences with no redundancy. The primary action and scope are front-loaded, followed by an important execution detail (offline) and a useful usage cue. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
This is a minimal single-parameter tool with no output schema. The description covers the code categories, the offline behavior, and the high-level output ('plain French'), which is enough for an agent to decide and invoke correctly. Minor gaps like invalid-code handling do not significantly reduce completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% and the parameter already includes examples ('62.01Z', '5710', '12', 'A', 'PME'). The description adds semantic meaning by classifying these examples into NAF, legal form, workforce bracket, and administrative status, helping the agent understand what value to pass.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Translate') and a clearly bounded resource: NAF activity codes, legal forms, workforce brackets, and administrative statuses. This is immediately distinguishable from the sibling tools (search_companies, get_company, list_establishments), which are about company/establishment data rather than code decoding.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives clear context for when to use the tool ('Use this instead of guessing what a code means') and adds the offline constraint. However, it does not explicitly name alternatives or state when not to use it, though the sibling tools are sufficiently different that the guidance is adequate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_companyGet a company profile by SIREN or SIRETA
Full profile for one company from its SIREN (9 digits) or SIRET (14 digits). Returns legal form, activity, workforce bracket, headquarters, officers and certifications, all with plain-French labels. The missing array lists fields the registry does not hold — do not fill those in from memory.
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | SIREN (9 digits) or SIRET (14 digits). Spaces are tolerated. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the behavioral disclosure burden. It goes beyond a simple 'get' by listing the returned fields and, notably, explaining the `missing` array and warning not to fabricate missing data — important behavioral guidance. It could mention error handling or data freshness, but it is still substantially transparent for a read-only lookup.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise, with the core purpose stated first and the important `missing`-array caveat in the second sentence. Every sentence adds value and there is no redundant or filler text.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-parameter lookup tool with no output schema, the description is complete: it explains what is returned, mentions the caveat about missing fields, and gives the identifier formats. The agent has enough context to call the tool correctly and interpret the response.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already fully documents the `identifier` parameter including formats and space tolerance. The tool description does not add parameter-level detail beyond that, so the baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves a 'full profile for one company' by SIREN or SIRET, naming the returned data categories (legal form, activity, workforce, etc.). This distinguishes it from the sibling tools, especially search_companies, by emphasizing lookup by unique identifier rather than search.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description makes the intended usage context clear: use this when you have a SIREN or SIRET and need a single company's full profile. It does not explicitly exclude the sibling tools or state when to prefer search_companies, but the identifier-based lookup is strongly implied.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_establishmentsList a company's establishmentsA
All known sites (établissements) for a SIREN, headquarters first. Note: the registry returns matching establishments rather than an exhaustive list, so complete tells you whether every site is included.
| Name | Required | Description | Default |
|---|---|---|---|
| siren | Yes | SIREN, 9 digits |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the burden of behavioral disclosure. It meaningfully warns that the registry may return matching establishments rather than an exhaustive list and introduces the `complete` flag to indicate completeness. It also discloses the ordering rule (headquarters first), which adds useful non-obvious behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences with no filler. The core action and ordering rule are front-loaded, and the critical exhaustiveness caveat follows immediately. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter tool with no output schema or annotations, the description covers the main behaviors an agent needs: what is returned, the ordering, and the completeness caveat. It would be slightly more complete with explicit return-value details, but the description is largely sufficient for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The single parameter `siren` is already fully documented in the schema with 'SIREN, 9 digits', so schema coverage is 100%. The description repeats the SIREN concept without adding substantive new parameter detail, which aligns with the baseline score of 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states that the tool lists a company's establishments for a SIREN and notes that headquarters appear first. The resource and scope are specific, and the tool is clearly distinct from the sibling tools by focusing on sites rather than company records. However, it does not explicitly name or contrast itself with siblings like get_company or search_companies.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the tool should be used when an agent needs establishment-level data for a given SIREN, rather than company-level details or search results. It does not explicitly provide when/when-not guidance or mention alternative tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_companiesSearch French companiesA
Find French companies by name, trade name, acronym or officer name. Fuzzy — 'boulangerie dupont nantes' works. Returns compact summaries; call get_company for the full profile. Filters are optional and combine with AND.
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| limit | No | ||
| query | Yes | Company name, trade name, acronym or officer name | |
| naf_code | No | NAF rev.2 activity code, e.g. '62.01Z' for software development | |
| department | No | Département code, e.g. '44' for Loire-Atlantique, '2A' for Corse-du-Sud | |
| active_only | No | Exclude companies that have ceased trading | |
| postal_code | No | Exact postal code |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral burden. It discloses fuzzy behavior, compact summary output, and response-depth differences versus get_company. It does not mention pagination behavior or the active_only default, but the search-oriented nature makes the read-only behavior clear.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three efficient sentences front-load the search scope, provide a concrete example, route to the correct sibling, and explain filter semantics. No wasted words or repetition of the schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers expected behavior, output granularity, filter semantics, and an alternative tool. It lacks detail on pagination, defaults, and the role of list_establishments, but for a search tool with a small schema these are minor gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 71%, and the description adds semantics beyond the schema by showing that the query can be a fuzzy multi-word phrase and that filters are optional and AND-combined. Page and limit are not described in prose, but their names and defaults largely make their behavior clear.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action and resource: finding French companies by name, trade name, acronym, or officer name. It also clarifies fuzzy matching and explicitly distinguishes itself from get_company, which returns the full profile.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It gives clear guidance to call get_company when the full profile is needed, and states filters are optional and AND-combined. It does not mention when to prefer list_establishments or explain_code, but the search-versus-lookup distinction is reasonably clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v0.1.0- First observed
explain_code - First observed
get_company - First observed
list_establishments - First observed
search_companies
TDQS
Scored across 4 tools
Each tool has a clear, separate job: searching companies, retrieving a full company profile, listing establishment sites, and explaining registry codes. The cross-references between search_companies and get_company reinforce their complementary roles rather than creating ambiguity.
All tool names follow a consistent lowercase snake_case verb_noun pattern: search_companies, get_company, list_establishments, explain_code. The naming is uniform, predictable, and accurately reflects each action.
Four tools is well-scoped for a read-only French business registry lookup server. Each tool covers a distinct part of the workflow without unnecessary duplication or bloat.
The server covers the core lookup lifecycle: fuzzy search, full company profile retrieval, establishment enumeration, and code translation. Since this is a read-only registry service, CRUD operations are not expected, and there are no obvious dead ends in the workflow.
Related MCP Connectors
Every active French company by SIREN: search, full fiche, and filed PDFs paid per fetch by agents.
French company data by SIREN or search: address, NAF code, directors, VAT and financials
Search French companies: financials, directors, ownership, M&A and insolvency events.
French company data from public registers (Sirene, RNE, BODACC) and French legal notices.
Related MCP Servers
- AlicenseBqualityFmaintenanceEnables interaction with the French business search API from data.gouv.fr, allowing users to search for French companies by text or geographical criteria and access essential business information.2134 npm19MIT
- AlicenseBqualityDmaintenanceEnables searching for French companies using the official data.gouv.fr API, with filters for name, location, activity, and certifications.11ISC
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to search and retrieve detailed profiles of 25 million French companies from the official government registry, including directors, activity codes, and establishment data, without requiring an API key.-
- AlicenseNot gradedqualityBmaintenanceEnables querying French companies and establishments via SIREN or geographic proximity using the official French business register API.462 npmMIT