Des données de marchés publics que votre agent peut utiliser lui-même.
Point any MCP-capable client — Claude Desktop, Claude Code, Cursor, or your own agent — at our streamable-HTTP endpoint. It can search government tenders and contract awards from official sources, drill into buyers and suppliers, keep lists, and even self-register and pay for access with no human in the loop.
# Point de terminaison
https://app.selltostate.com/api/mcp
# Lister les outils (ouvert, sans authentification)
curl -s https://app.selltostate.com/api/mcp \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,
"method":"tools/list"}' tools/list is open; tools/call resolves your credential and 402s if un-entitled.
Add it to your client.
Clients with a browser sign you in with OAuth. Other clients send an API key from
your account.
The server is in the official MCP Registry as com.selltostate/mcp.
Claude
Customize, then Connectors. Select + Add, then Add custom connector. Paste the URL and select Connect.
https://app.selltostate.com/api/mcp Step by step → ChatGPT
On chatgpt.com/plugins, select + and Add custom MCP server. Paste the URL and choose OAuth.
https://app.selltostate.com/api/mcp Step by step → Claude Code
Add the server, then run /mcp and choose Authenticate.
claude mcp add --transport http selltostate https://app.selltostate.com/api/mcp Step by step → Gemini CLI
Install the extension. Gemini CLI opens your browser to sign in.
gemini extensions install https://github.com/getbeton/selltostate-skills Step by step → Cursor and other clients
Add the server to mcp.json with your API key in the x-api-key header.
{
"mcpServers": {
"selltostate": {
"url": "https://app.selltostate.com/api/mcp",
"headers": { "x-api-key": "sts_..." }
}
}
} Le flux de connexion.
- 1
Découverte
Les clients conformes aux spécifications lisent /.well-known/oauth-protected-resource (RFC 9728) et /.well-known/oauth-authorization-server (RFC 8414) pour connaître la ressource, l'émetteur et les scopes.
- 2
Inscription
Sans identifiant pré-partagé, le client s'auto-inscrit via RFC 7591 DCR (POST /api/oidc/register) et obtient un client_id avec zéro scope de données, plus un payment_link.
- 3
Authenticate
Clients with a browser (Claude, ChatGPT, Cursor) run the OAuth 2.1 authorization-code flow with PKCE, and you sign in with your Sell to State account. An agent without a browser presents the issued client as Authorization: Bearer client:<client_id> on every tools/call.
- 4
Abonnement
Tant que le sujet du client n'a pas de droit d'accès, chaque tools/call renvoie le même corps 402 que REST — un payment_link destiné à l'humain et la capacité machine_payment native pour agents. L'agent appelle pay, est débité hors session, et son prochain appel renvoie les données.
26 outils, à parité REST.
Every tool mirrors a REST endpoint 1:1. Owner-scoped list / saved-search tools require a user API key; an OIDC client token gets a requires_user_key result. Full schemas in the reference.
whoami data:read Identité + droits d'accès + scopes (non restreint — vérifiez avant de dépenser). search data:read Recherche à facettes sur un seul scope : tenders | buyers | suppliers | sectors. search_awards data:read Explorateur d'attributions (q, organisme, fournisseur, catégorie, année, plage de montant). get_buyer data:read Détail de l'organisme acheteur (get_buyer_detail est un alias conservé). get_supplier_detail data:read Détail du fournisseur avec principaux acheteurs + répartition sectorielle. get_sector / get_tender data:read Profil sectoriel · attribution unique + attributions associées. list_buyers / list_suppliers / list_sectors data:read Top N des organismes, fournisseurs et de la taxonomie sectorielle. get_lists / create_list / add_to_list … data:read CRUD des listes d'attributions sauvegardées — nécessite une clé API utilisateur. get_saved_searches / save_search … data:read CRUD des recherches sauvegardées — nécessite une clé API utilisateur. export data:export Exporter un ensemble d'attributions filtré en CSV. pay billing:pay Payer de manière autonome avec un jeton Stripe pour débloquer l'accès — sans page de paiement. Appeler un outil.
curl -s https://app.selltostate.com/api/mcp \
-H "Authorization: Bearer client:c_abc123" \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
"params":{"name":"search",
"arguments":{"scope":"tenders","q":"cloud","year_min":2024}}}' Une fois connecté, il suffit de demander
- → « Recherchez sur Sell to State les attributions en cybersécurité de 2024 et résumez les 5 principaux fournisseurs. »
- → « Récupérez chaque attribution faite par le Ministère de l'Éducation cette année et exportez-les en CSV. »
- → « Utilisez get_buyer sur l'organisme concerné — auprès de qui Singapour achète-t-il des services de construction ? »
Connectez votre agent.
Create an account, generate an API key, and point your MCP client at https://app.selltostate.com/api/mcp. Agents can also self-register and pay without a dashboard. Full tool docs at docs.selltostate.com.