MCP server
Cursor / Claude agent tools
@launa/mcp-server exposes Launa seller API actions as MCP tools for Cursor, Claude Desktop, and compatible hosts. API key auth only — no JWT support.
Install and run
npx @launa/mcp-serverRequires Node.js 18+.
Set LAUNA_API_KEY (scoped launa_live_... or launa_sandbox_... key from the Launa dashboard). Optional: LAUNA_BASE_URL (default https://api.launa.io). For paying gateway URLs, set LAUNA_EVM_PRIVATE_KEY and/or HEDERA_ACCOUNT_ID + HEDERA_PRIVATE_KEY.
Pair key prefix with base URL — API key environment cannot be overridden with LAUNA_ENVIRONMENT or LAUNA_SANDBOX:
| Key prefix | LAUNA_BASE_URL |
|---|---|
launa_sandbox_... | https://api.staging.launa.io |
launa_live_... | https://api.launa.io (default) |
Wrong pairing → 401 {"error":"invalid token"}. For Sandbox / Test mode, use an launa_sandbox_... key with the staging URL above; default endpoint pricing uses the Anvil fork network. Sandbox wallet private keys are not available via MCP (JWT-only) — use the CLI or Sandbox guide.
From source
git clone https://github.com/AxLabs/launa-sdks.git
cd launa-sdks && pnpm install
pnpm --filter @launa/mcp-server build
LAUNA_API_KEY=launa_live_... \
LAUNA_BASE_URL=https://api.launa.io \
node tools/mcp-server/dist/index.jsCursor configuration
{
"mcpServers": {
"launa": {
"command": "npx",
"args": ["-y", "@launa/mcp-server"],
"env": {
"LAUNA_BASE_URL": "https://api.launa.io",
"LAUNA_API_KEY": "launa_live_...",
"LAUNA_EVM_PRIVATE_KEY": "0x..."
}
}
}
}To enable Hedera payments on launa_pay_url, add HEDERA_ACCOUNT_ID and HEDERA_PRIVATE_KEY to env.
Example config: cursor-mcp.json.example in the launa-sdks repo.
Tools
| Tool | Scope |
|---|---|
launa_list_apis | apis:read |
launa_get_api | apis:read |
launa_discovery_urls | apis:read — gateway OpenAPI / well-known URLs |
launa_set_discovery_guidance | apis:write — guidance, contact email, OpenAPI version |
launa_list_endpoints | endpoints:read |
launa_update_endpoint_schemas | endpoints:write — request/response JSON Schema |
launa_create_api | apis:write + verified email — optional discovery fields |
launa_add_endpoint | endpoints:write |
launa_import_openapi | openapi:read — persists schemas from the spec when present |
launa_add_domain | domains:write |
launa_list_domains | domains:read |
launa_verify_domain | domains:write |
launa_domain_suggest | domains:read |
launa_stats_overview | stats:read |
launa_stats_api | stats:read |
launa_settlements_list | settlements:read |
launa_settlements_export | settlements:read |
launa_billing_overview | billing:read |
launa_income_summary | income:read |
launa_apis_slug_check | apis:read |
launa_apis_probe_upstream | apis:read |
launa_scopes_list | JWT session |
launa_facilitator_stats | authenticated |
launa_billing_catalog | public billing catalog |
launa_inspect_url | buyer (no wallet) |
launa_supported_networks | authenticated |
launa_platform_config | public |
launa_pay_url | buyer (LAUNA_EVM_PRIVATE_KEY and/or Hedera keys) |
See API discovery for gateway OpenAPI / well-known manifests.
Environment
| Variable | Required | Purpose |
|---|---|---|
LAUNA_API_KEY | Yes | Seller API key |
LAUNA_BASE_URL | No | API base URL (default https://api.launa.io; use https://api.staging.launa.io with launa_sandbox_... keys) |
LAUNA_EVM_PRIVATE_KEY | For launa_pay_url | EVM signer |
HEDERA_ACCOUNT_ID | For launa_pay_url | Hedera payer account |
HEDERA_PRIVATE_KEY | For launa_pay_url | Hedera private key |
Scopes
Create keys with the apiManager preset for create/update flows. Add wallet credentials to enable in-process payment via launa_pay_url.
Related
Agent guide · CLI reference · API discovery · /llms.txt · Source on GitHub