SDK Reference

Programmatic access to MCP Nexus: REST API, Python / Node.js SDKs and auth

1. Install the SDK

Official Python and Node.js SDKs support both sync and async invocation. You can also hit the REST API directly.

pip install mcp-nexus-sdk
# or
npm install @mcpnexus/sdk

2. Authentication

Every request must include an API key in the Authorization header: Bearer <your-key>. Generate keys in your profile and inject via environment variables — never hardcode.

export MCP_NEXUS_API_KEY="mnx_xxx"
Manage my API keys →

3. Core Endpoints

GET
/api/v1/skills

List available skills (filter by category, tier, etc.)

GET
/api/v1/skills/:id

Fetch a single skill's metadata and parameter schema

POST
/api/v1/skills/:id/execute

Execute a skill (returns sync result or async task_id)

GET
/api/v1/me/usage

Current account usage, quota and billing period

GET
/api/v1/subscriptions/current

Current subscription status

4. Full Example

from mcp_nexus import Client

client = Client(api_key="mnx_xxx")

# List available skills
skills = client.skills.list(category="finance")

# Execute a skill
result = client.skills.run(
    skill_id="tax-calculator",
    params={"income": 50000, "region": "US"},
)
print(result.output)

5. Error Codes

  • 401 — Unauthorized: missing or invalid API key
  • 402 — Payment Required: your plan tier is insufficient for this skill
  • 429 — Rate Limited: quota exceeded — wait or upgrade your plan
  • 500 — Server Error: retry or contact support@mcp-nexus.online