你的智能体可自主使用的采购数据。
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.
# 端点
https://staging-app.selltostate.com/api/mcp
# 列出工具(开放,无需认证)
curl -s https://staging-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://staging-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://staging-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://staging-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://staging-app.selltostate.com/api/mcp",
"headers": { "x-api-key": "sts_..." }
}
}
} 连接流程。
- 1
发现
符合规范的客户端读取 /.well-known/oauth-protected-resource(RFC 9728)与 /.well-known/oauth-authorization-server(RFC 8414),以了解资源、颁发者与作用域。
- 2
注册
在没有预共享凭据的情况下,客户端通过 RFC 7591 DCR(POST /api/oidc/register)自助注册,获得一个数据作用域为零的 client_id 以及一个 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
订阅
在客户端的主体获得权限之前,每次 tools/call 都会返回与 REST 相同的 402 响应体 —— 一个面向人的 payment_link 和智能体原生的 machine_payment 能力。智能体调用 pay,在会话外(off-session)完成扣款,其下一次调用即返回数据。
26 个工具,与 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 身份 + 权限 + 作用域(不受限 —— 消费前先验证)。 search data:read 对单一作用域进行分面检索:tenders | buyers | suppliers | sectors。 search_awards data:read 授标浏览器(q、机构、供应商、类别、年份、金额区间)。 get_buyer data:read 采购方详情(get_buyer_detail 为保留别名)。 get_supplier_detail data:read 供应商详情,含主要采购方 + 行业分布。 get_sector / get_tender data:read 行业概览 · 单份授标 + 相关授标。 list_buyers / list_suppliers / list_sectors data:read 前 N 名机构、供应商及行业分类法。 get_lists / create_list / add_to_list … data:read 已保存授标列表的 CRUD —— 需要用户 API 密钥。 get_saved_searches / save_search … data:read 已保存检索的 CRUD —— 需要用户 API 密钥。 export data:export 将筛选后的授标集导出为 CSV。 pay billing:pay 使用 Stripe 令牌自主付款以解锁访问 —— 无需结账页面。 调用工具。
curl -s https://staging-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}}}' 连接后,直接提问
- → “在 Sell to State 中检索 2024 年的网络安全授标,并总结排名前 5 的供应商。”
- → “拉取教育部今年做出的每一份授标,并将其导出为 CSV。”
- → “对相关机构使用 get_buyer —— 新加坡从谁那里采购建筑服务?”
连接你的智能体。
Create an account, generate an API key, and point your MCP client at https://staging-app.selltostate.com/api/mcp. Agents can also self-register and pay without a dashboard. Full tool docs at docs.selltostate.com.