Agentingiz mustaqil foydalana oladigan xarid maʼlumotlari.
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.
# Ulanish nuqtasi
https://app.selltostate.com/api/mcp
# Vositalar roʻyxati (ochiq, autentifikatsiyasiz)
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_..." }
}
}
} Ulanish jarayoni.
- 1
Aniqlash
Spetsifikatsiyaga mos mijozlar resurs, chiqaruvchi va doiralar (scope) haqida bilish uchun /.well-known/oauth-protected-resource (RFC 9728) va /.well-known/oauth-authorization-server (RFC 8414) manzillarini oʻqiydi.
- 2
Roʻyxatdan oʻtish
Oldindan berilgan hisob maʼlumotlarisiz, mijoz RFC 7591 DCR (POST /api/oidc/register) orqali mustaqil roʻyxatdan oʻtadi va nol maʼlumot doirasiga ega client_id hamda payment_link oladi.
- 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
Obuna boʻlish
Mijozning subyekti huquqga ega boʻlmaguncha, har bir tools/call chaqiruvi REST bilan bir xil 402 javobini qaytaradi — inson uchun payment_link va agentga xos machine_payment imkoniyati. Agent pay funksiyasini chaqiradi, sessiyadan tashqarida (off-session) hisobdan pul yechiladi, va uning keyingi chaqiruvi maʼlumotni qaytaradi.
REST bilan toʻliq mos 26 ta vosita.
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 Identifikatsiya + huquq + doiralar (cheklovsiz — sarflashdan oldin tekshiring). search data:read Bitta doira boʻyicha qirrali qidiruv: tenderlar | davlat idoralari | yetkazib beruvchilar | sohalar. search_awards data:read Shartnomalarni koʻrish vositasi (q, idora, yetkazib beruvchi, kategoriya, yil, summa oraligʻi). get_buyer data:read Davlat idorasi tafsilotlari (get_buyer_detail saqlanib qolgan taxallus sifatida). get_supplier_detail data:read Yetkazib beruvchi tafsilotlari, asosiy xaridorlar + soha boʻyicha taqsimot bilan. get_sector / get_tender data:read Soha profili · yagona shartnoma + tegishli shartnomalar. list_buyers / list_suppliers / list_sectors data:read Top-N davlat idoralari, yetkazib beruvchilar va soha taksonomiyasi. get_lists / create_list / add_to_list … data:read Saqlangan shartnomalar roʻyxatlari uchun CRUD — foydalanuvchi API kaliti talab qilinadi. get_saved_searches / save_search … data:read Saqlangan qidiruvlar uchun CRUD — foydalanuvchi API kaliti talab qilinadi. export data:export Filtrlangan shartnomalar toʻplamini CSV sifatida eksport qiling. pay billing:pay Kirishni ochish uchun Stripe tokeni bilan mustaqil toʻlov qiling — toʻlov sahifasisiz. Vositani chaqiring.
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}}}' Ulangandan soʻng, shunchaki soʻrang
- → "Sell to State'da 2024-yildagi kiberxavfsizlik shartnomalarini qidiring va top 5 yetkazib beruvchini xulosa qiling."
- → "Taʼlim vazirligi bu yil bergan barcha shartnomalarni oling va ularni CSV formatida eksport qiling."
- → "Tegishli davlat idorasi uchun get_buyer'dan foydalaning — Singapur qurilish xizmatlarini kimdan sotib oladi?"
Agentingizni ulang.
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.