API Indonesia docsAPI referenceGet an API keyllms.txt

MCP server and AI agents

Documentation index for AI agents: /llms.txt. Every page is also available as markdown: add .md to the URL.

Connect Claude Code, Cursor, Codex and other MCP clients to the remote MCP server.

API Indonesia runs a remote MCP server so AI agents can call the API as tools.

One-line installer (local coding agents)

For Claude Code, Cursor, Codex, opencode, VS Code, Windsurf, Gemini CLI and similar agents on your machine:

curl -fsSL https://apiindonesia.id/install.sh | sh -s -- --key aip_live_xxx

It needs Node.js 18+ and runs on macOS and Linux (on Windows, use the manual config below). It checks the key without spending credits, adds the MCP server to every agent it detects, keeps their other MCP servers and is safe to re-run. --agent <name> (repeatable) limits it to specific agents; --project writes the current repo's config instead. Reload the agent afterwards so it picks up the new server.

Manual MCP config

Any MCP client that takes JSON:

{
  "mcpServers": {
    "api-indonesia": {
      "url": "https://mcp.apiindonesia.id/mcp",
      "headers": { "Authorization": "Bearer aip_live_xxx" }
    }
  }
}

For hosted assistants (ChatGPT, claude.ai connectors) and sandboxed agents, follow the current setup notes in apiindonesia.id/llms.txt.

Other integrations

Without MCP

Scripts and backends can call https://use.apiindonesia.id/api/v1/... directly with the x-api-key header. Every endpoint is in the OpenAPI spec and the endpoint index.