Skip to main content

Anthropic Messages API verbinden met aicharged.io

215 tools, één endpoint: https://aicharged.io/api/v1/mcp

Anthropic Messages API

MCP-connector van de Anthropic Messages API (bèta): mcp_servers plus een mcp_toolset — Claude roept aicharged.io rechtstreeks vanuit de API aan.

  • API-sleutel (Bearer)

Gehoste MCP-tool — de API roept aicharged.io voor je aan

Aanbevolen
import os
import anthropic

client = anthropic.Anthropic()
response = client.beta.messages.create(
    model="claude-opus-5-5",
    max_tokens=16000,
    betas=["mcp-client-2025-11-20"],
    messages=[{"role": "user", "content": "List my recent aicharged.io runs"}],
    mcp_servers=[{
        "type": "url",
        "url": "https://aicharged.io/api/v1/mcp",
        "name": "aicharged",
        "authorization_token": os.environ["AICHARGED_API_KEY"],
    }],
    tools=[{"type": "mcp_toolset", "mcp_server_name": "aicharged"}],
)
print(response.content)

Bètafunctie: behoud de bètavlag mcp-client-2025-11-20. De API stuurt authorization_token als Bearer-token naar aicharged.io.

Hetzelfde verzoek met curl

curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-5-5",
    "max_tokens": 16000,
    "messages": [{"role": "user", "content": "List my recent aicharged.io runs"}],
    "mcp_servers": [{"type": "url", "url": "https://aicharged.io/api/v1/mcp", "name": "aicharged", "authorization_token": "<API_KEY>"}],
    "tools": [{"type": "mcp_toolset", "mcp_server_name": "aicharged"}]
  }'

Of laat de CLI het instellen

aicharged setup vindt de AI-clients op deze machine, logt je in via de browser en schrijft hun configuratie.

Verbind in één regel

Installeer de CLI · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
Installeer de CLI · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
MCP-endpoint
https://aicharged.io/api/v1/mcp

Streamable HTTP. Stuur de header Authorization: Bearer <API_KEY> mee, of log in met OAuth als je client dat ondersteunt.

Of zeg het je agent
Lees https://aicharged.io/agent.md en stel aicharged.io voor me in

Openen met deze prompt in Claude (opent in een nieuw tabblad) ChatGPT (opent in een nieuw tabblad) Perplexity (opent in een nieuw tabblad)