Order an SMM service from an agent in 5 minutes
A short guide for agent developers. Everything runs on a local node and its mock catalog: every service is marked synthetic: true, no real order is executed, and no key, account or money is needed. Orders stay REQUIRES_PAYMENT and are never paid.
1. Start the node (about 2 minutes)
Node.js ≥ 22.18 is required.
git clone https://github.com/opensmm-protocol/mcp-server.git cd mcp-server npm ci npm run gateway
The node prints a line like gateway listening on http://localhost:8080 (REST /v0, MCP /mcp; provider: mock, mock catalog — not real supply) on stderr. Check from another terminal: curl -s http://127.0.0.1:8080/v0/services | head -30 — every service has "synthetic": true. Port taken? PORT=8081 npm run gateway. Other startup fixes: node startup failures.
2. Pick your stack
Each stack has a ready config or script in the repository; every directory has its own README with the exact steps and expected output.
Claude Desktop examples/claude-desktop/claude_desktop_config.json stdio, npm run mcp, no port needed Cursor examples/cursor/.cursor/mcp.json HTTP POST /mcp on the node from step 1 LangChain-style examples/langchain/agent.mjs terminal, no LLM key n8n examples/n8n/workflow.json import the workflow, press Execute
3. Run one example (about 2 minutes)
The fastest path with no third-party app is the LangChain-style tool caller.
node examples/langchain/agent.mjs http://127.0.0.1:8080 --client-reference my-first-order
node: http://127.0.0.1:8080
transport: MCP tools over POST /mcp (LangChain-style tool calls)
tools: search_services, get_quote, create_order
tool: search_services({})
catalog: MOCK — every service is marked synthetic: not real supply, no real money
service: osmm_svc_tg_members_std — Telegram Channel Members — Standard
quote: osmm_quote_... — 0.241200 USDC for 100 (mock rate)
order: osmm_order_... — REQUIRES_PAYMENT, clientReference "my-first-order"
replay: osmm_order_... — same orderId, no second order created
done: LangChain-style agent OK
That is the whole scenario: catalog → quote → order → replay. order: and replay: are the same orderId: the same clientReference yields one order on any transport.
4. What the agent actually called
search_services— reads the catalog; every entry carriessynthetic: true, and the examples refuse to continue if a service is not marked mock.get_quote— prices one service for quantity 100 and a link. A quote is consumed once, so each order needs its own.create_order— creates an unpaid order (HTTP 402 over REST, still carrying the order body). Nothing is paid, nothing executes.create_orderagain with the sameclientReference— a replay that returns the stored order instead of creating a second one.
REST equivalents: GET /v0/services, POST /v0/quotes, POST /v0/orders, and GET /v0/orders/:id to poll.
5. If something looks wrong
is not marked synthetic— the node is not on its mock catalog; stop, do not order. Restart it without a provider configured.ECONNREFUSED— the node from step 1 is not running or uses another port.IDEMPOTENCY_CONFLICT— thatclientReferencealready belongs to an order made from a different quote: pass the original via--quoteor use a new reference.- HTTP 402 on
POST /v0/ordersis expected, not a failure.
Honest limits
- This page retells docs/AGENT_QUICKSTART.md; client versions and exact configs are there.
- The catalog is a mock (
synthetic: true): no real services, prices or orders here, and the rate in the example is a test one. - Orders are not paid in this guide; for x402 on a testnet see paying from an agent over x402.
Next: your own node
The example runs on a local node. To be counted in the census, run a node and report its address.
The step-by-step guide, verification and reporting your node are on the “Run a node” page.