Skip to content

MCP Server

The Stablecoin Harness MCP server exposes the platform as a typed catalog of tools for AI agents. Any MCP-compatible client (Claude, Cursor, your own agent) can connect, discover the tool catalog, and run operations on your behalf — payments, treasury, paymaster — using the same authorization model as the REST API.

  • Discovery. Agents enumerate tools instead of guessing endpoints.
  • Typed inputs. Each tool has a JSON Schema for its arguments. No string-prompt parsing.
  • Pre-formatted output. render_* tools return human-readable summaries; analyze_* returns raw JSON for downstream programmatic use.
  • Local-first. The MCP server runs locally over stdio. Your credentials and tool calls never round-trip through a third party.
Terminal window
npx @stablecoinx/mcp install

The installer registers the server at user scope and prompts for which skill packs to enable.

Or clone:

Terminal window
git clone https://github.com/stablecoinx/mcp.git
cd mcp && pnpm install && pnpm build
./install.sh # macOS / Linux
./install.ps1 # Windows

Add this to your client’s MCP config (e.g. ~/.config/claude/mcp.json):

{
"mcpServers": {
"stablecoinx": {
"command": "npx",
"args": ["@stablecoinx/mcp", "serve"],
"env": {
"STABLECOINX_KEY": "sk_live_..."
}
}
}
}

Reload your client. stablecoinx appears in the tool picker.

CredentialHow obtainedTool access
OTP-derived JWTOne-time login via dashboardShort-lived, read-only tools
sk_live_*Issued in the dashboardFull tool catalog
Session keyDerived from sk_* per agent sessionScoped to one session or tool subset

Sensitive tools (cash-out, key rotation) require re-OTP regardless of the key in use.

PrefixPurposeExamples
data_get_*Read live statedata_get_balance, data_get_session, data_get_treasury_snapshot
compute_*Derived calculationscompute_estimated_yield, compute_settlement_quote
render_*Pre-formatted reportsrender_session_report, render_treasury_summary
analyze_*Raw JSON for custom UIanalyze_pnl, analyze_route
action_*Mutating operationsaction_create_session, action_put_to_work, action_cash_out
telemetry_get_*Local usage statstelemetry_get_history
  • The server runs on your machine.
  • API credentials are read from your env or your client’s MCP config — never logged.
  • Telemetry is local-only by default. Optional opt-in usage stats can be enabled for support cases.