Connect a client
Step-by-step for Claude, Claude Code, ChatGPT, Cursor, VS Code and any other MCP client.
Authentication
Every request to/mcp carries a Bearer token. Two kinds work, and both are tied to your Gabin account:
- OAuth 2.1 (connectors)
- API key (Bearer)
For clients that log the user in themselves, such as the Claude and ChatGPT connectors. The server is an OAuth protected resource (RFC 9728): its metadata names
https://gabin.ai as the authorization server. The client reads https://gabin.ai/.well-known/oauth-authorization-server, registers itself (dynamic client registration, public client), and sends you to the consent screen at https://gabin.ai/oauth/autoriser, where you sign in if needed and approve. PKCE (S256) is required.Access tokens (gat_…) last 1 hour; refresh tokens (gar_…) last 30 days and rotate on each use. You can revoke an application at any time from gabin.ai/compte/api, under “Applications autorisées”. Details in Authentication.GET /v1/me on the Gabin API (one quota unit, at most once a minute per token) and forwards it as is to /v1 for every tool call.
Limits and usage
MCP tool calls are API calls made on your behalf. The rate limit, daily quota and request weights are those of your account, shared with your API keys: 60 requests per minute and 5,000 units per UTC day on the free plan. A tool call weighs one unit, plus one unit per extra section or include it fetches (for exampleget_building with sections: ["owners", "transactions"] weighs 3), and advanced_search weighs 5 (5 more with count).
Your usage page at gabin.ai/compte/api shows MCP calls per tool, next to the API calls of each key.
The API accepts at most 2 concurrent requests per account. The MCP server queues the calls of a token beyond that instead of failing them, so a tool that reads several resources at once, or a client that calls several tools in parallel, works without a 429.
Tools
All tools are read-only (readOnlyHint: true, idempotentHint: true) and return two things: a short text, one line per object with its identifiers and gabin_url, and structuredContent that matches the tool’s published outputSchema. Lists are paginated by cursor and say so in the text. Errors come back as tool results with isError: true and a message that names the API error code and what to do next.
Companies and officers
search_companies, get_company, list_company_establishments, get_establishment, search_officers, get_officer, lookup_referenceBuildings and real estate
get_building, get_building_companies, list_company_buildings, find_buildings, get_parcelZones and addresses
geocode_address, search_places, search_cities, get_zoneMulti-criteria search
list_search_fields, advanced_searchExample prompts
Each prompt chains several tools. The agent picks them from the descriptions; you do not have to name them.From an address to the companies and owners of a building
From an address to the companies and owners of a building
Who is located at 40 rue de Bruxelles, Villeurbanne, and who owns the building?
geocode_addresswithq: "40 rue de Bruxelles Villeurbanne"returns the normalized address and the BDNB building matched at house-number level.get_buildingwith that id andsections: ["owners", "energy"]returns the characteristics, the corporate owners from land files and the energy certificates.get_building_companieslists the occupants (establishments matched to the building) and the owners, with each company summary.
search_places.From a company to its establishments and buildings
From a company to its establishments and buildings
Where does Atelier Thermique operate, and what premises does it own?
search_companieswithq: "atelier thermique"returns matching legal units with their SIREN.get_companywithinclude: ["officers", "financials"]returns the profile, the RNE officers and up to 10 fiscal years of accounts.list_company_establishmentslists every SIRET with its address, position and matched building.list_company_buildingsmerges occupied and owned buildings, with the SIRETs located in each.
Zone prospecting with the multi-criteria search
Zone prospecting with the multi-criteria search
In Villeurbanne, find residential buildings built before 1975 with an energy class F or G and at least 10 dwellings.
search_citieswithq: "villeurb"returns the INSEE code69266.list_search_fieldswithtarget: "buildings"returns the catalog: field ids, operators, units and accepted values.advanced_searchwithtarget: "buildings",zone: { type: "city", code: "69266" }, the conditions on construction year, energy class and dwellings, andcount: truefor the total and breakdowns.- For one result,
get_buildingwithsections: ["condominium", "owners"]names the professional manager and the corporate owners.
lookup_reference (kind: "naf") to find the NAF codes, then search_companies with naf and insee.A person and their mandates
A person and their mandates
Which companies does Claire Montessuy run?
search_officerswithq: "Claire Montessuy"returns matching identities, each with one company to tell namesakes apart.get_officerwith the id returns every mandate of that identity and a bounded graph of the other officers of those companies.
Figures of a territory
Figures of a territory
What are the sale prices, rents and median income in Villeurbanne?
get_zone with level: "city", code: "69266" and include_market: true returns the districts of the city and the market sheet: prices per m² by segment (DVF), rents, population and income, yearly, for the city and every level containing it.Every record carries a
gabin_url, its page on gabin.ai. Ask the agent to cite it as the source.Data rules
The server applies the same data rules as the API. A company under SIRENE partial diffusion shows no person name, an address limited to the city, no building and no officers. Owners from the land files, condominium managers and permit applicants are legal entities; officers are named with their month and year of birth, and sole proprietorships under their registered name. No contact details (email, phone) are published.For bulk work
The MCP server is made for an agent reasoning over a few objects at a time. For extraction, enrichment or anything that pages through thousands of results, use the REST API athttps://api.gabin.ai/v1 with the same credentials: same data, same limits, no model in the loop.