↑↓ navigasi ↵ buka esc tutup
MCP-over-HTTP · 26 tool

Data pengadaan yang bisa langsung digunakan agen Anda.

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.

# Endpoint

https://app.selltostate.com/api/mcp

# Daftar tool (terbuka, tanpa autentikasi)

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_..." }
    }
  }
}

Alur koneksi.

  1. 1

    Temukan

    Klien yang sesuai spesifikasi membaca /.well-known/oauth-protected-resource (RFC 9728) dan /.well-known/oauth-authorization-server (RFC 8414) untuk mengetahui resource, issuer, dan scope.

  2. 2

    Daftar

    Tanpa kredensial yang dibagikan sebelumnya, klien mendaftar sendiri melalui RFC 7591 DCR (POST /api/oidc/register) dan mendapatkan client_id dengan nol data scope beserta payment_link.

  3. 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. 4

    Berlangganan

    Sampai subject klien memiliki hak akses, setiap tools/call mengembalikan body 402 yang sama seperti REST — sebuah payment_link untuk manusia dan kemampuan machine_payment yang native untuk agen. Agen memanggil pay, ditagih off-session, dan panggilan berikutnya mengembalikan data.

26 tool, setara penuh dengan 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 Identitas + hak akses + scope (tidak dibatasi — verifikasi sebelum mengeluarkan biaya).
search data:read Pencarian berbasis facet dalam satu scope: tenders | buyers | suppliers | sectors.
search_awards data:read Penjelajah kontrak (q, instansi, pemasok, kategori, tahun, rentang nilai).
get_buyer data:read Detail instansi pembeli (get_buyer_detail adalah alias yang dipertahankan).
get_supplier_detail data:read Detail pemasok dengan instansi pembeli utama + sebaran sektor.
get_sector / get_tender data:read Profil sektor · satu kontrak tender + kontrak terkait.
list_buyers / list_suppliers / list_sectors data:read Instansi, pemasok teratas (Top-N), dan taksonomi sektor.
get_lists / create_list / add_to_list … data:read CRUD daftar tersimpan kontrak — memerlukan API key pengguna.
get_saved_searches / save_search … data:read CRUD pencarian tersimpan — memerlukan API key pengguna.
export data:export Ekspor kumpulan kontrak yang telah difilter sebagai CSV.
pay billing:pay Bayar secara otonom menggunakan token Stripe untuk membuka akses — tanpa halaman checkout.

Panggil sebuah tool.

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}}}'

Setelah terhubung, cukup tanyakan

  • → "Cari di Sell to State untuk kontrak keamanan siber yang dimenangkan pada 2024 dan rangkum 5 pemasok teratas."
  • → "Ambil setiap kontrak yang dimenangkan oleh Ministry of Education tahun ini dan ekspor sebagai CSV."
  • → "Gunakan get_buyer pada instansi terkait — dari siapa Singapura membeli jasa konstruksi?"

Hubungkan agen Anda.

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.

Start for free →
Daftar