Skip to main content
Developer Hub

Build with apitree

MCP Server, TypeScript SDK, REST API, and examples in 6 languages. Get from zero to first API call in 5 minutes.

Quick Start

Claude Code / Desktop

bash
# Remote MCP — one command, no install:
claude mcp add --transport http apitree https://apitree.ai/api/mcp

# With an API key (enables call_api, billing, forecasting):
# claude mcp add --transport http apitree https://apitree.ai/api/mcp \
#   --header "Authorization: Bearer nxs_live_..."

# Claude Desktop — add to claude_desktop_config.json:
# {
#   "mcpServers": {
#     "apitree": {
#       "url": "https://apitree.ai/api/mcp",
#       "headers": { "Authorization": "Bearer nxs_live_..." }
#     }
#   }
# }

Cursor

json
// .cursor/mcp.json
{
  "mcpServers": {
    "apitree": {
      "url": "https://apitree.ai/api/mcp",
      "headers": { "Authorization": "Bearer nxs_live_..." }
    }
  }
}

TypeScript / Node.js

typescript
import { ApitreeClient } from '@apitreedev/sdk';

const apitree = new ApitreeClient('nxs_live_YOUR_KEY');

// Call any API
const weather = await apitree.call('open-meteo-forecast', {
  latitude: 37.5, longitude: 127, current_weather: true
});

// Search APIs
const results = await apitree.search('currency exchange');

// Stream from an LLM
const stream = await apitree.stream('openai-chat', {
  messages: [{ role: 'user', content: 'Hello' }]
}, { method: 'POST' });

Python

python
import requests

APITREE = "https://apitree.ai"
KEY = "nxs_live_YOUR_KEY"

# Call any API through apitree
res = requests.get(
    f"{APITREE}/api/v1/proxy/open-meteo-forecast",
    headers={"Authorization": f"Bearer {KEY}"},
    params={"latitude": 37.5, "longitude": 127, "current_weather": True},
)
print(res.json()["data"])

cURL

bash
curl "https://apitree.ai/api/v1/proxy/coingecko-public/simple/price?ids=bitcoin&vs_currencies=usd" \
  -H "Authorization: Bearer nxs_live_YOUR_KEY"

Go

go
req, _ := http.NewRequest("GET",
  "https://apitree.ai/api/v1/proxy/rest-countries/name/korea", nil)
req.Header.Set("Authorization", "Bearer nxs_live_YOUR_KEY")
resp, _ := http.DefaultClient.Do(req)

Resources

apitree · AI-Native API Marketplace