你的智能体可自主使用的采购数据。
Point any MCP-capable client — Claude Desktop, Claude Code, Cursor, or your own agent — at our streamable-HTTP endpoint. It can search Singapore government contracts, 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.
连接流程。
- 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
认证
在每次 tools/call 时以 Authorization: Bearer client:<client_id> 的形式出示所颁发的客户端。(完整的 OAuth 2.1 授权码流程在路线图中;Bearer shim 目前已可用。)
- 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.