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
# One command:
claude mcp add apitree -- npx -y @apitree/mcp-server

# Or manual config:
# ~/.claude/mcp.json
{
  "mcpServers": {
    "apitree": {
      "command": "npx",
      "args": ["-y", "@apitree/mcp-server"]
    }
  }
}

Cursor

json
// .cursor/mcp.json
{
  "mcpServers": {
    "apitree": {
      "command": "npx",
      "args": ["-y", "@apitree/mcp-server"]
    }
  }
}

TypeScript / Node.js

typescript
import { ApitreeClient } from '@apitree/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)