2kw.ai

v8.0.3
ai.2kw/mcp-server Checked 8 hours ago Published 1 month ago

EU-hosted AI platform: OpenAI-compatible LLM gateway, document extraction, transcription, agents.

Values you need

VariableWhat it is
AI_2KW_API_KEYrequired secret API key for the 2kw.ai platform
AI_2KW_BASE_URLoptional Override the API base URL for self-hosted deployments
AI_2KW_MEMORYoptional true opts agent runs into agent memory (X-Backbone-Memory: enabled)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-server -e 'AI_2KW_API_KEY=<AI_2KW_API_KEY>' -- npx -y --package=@2kw/ai-mcp-server@8.0.3 2kw-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "--package=@2kw/ai-mcp-server@8.0.3",
        "2kw-mcp"
      ],
      "command": "npx",
      "env": {
        "AI_2KW_API_KEY": "<AI_2KW_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "--package=@2kw/ai-mcp-server@8.0.3",
        "2kw-mcp"
      ],
      "command": "npx",
      "env": {
        "AI_2KW_API_KEY": "<AI_2KW_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AI_2KW_API_KEY",
      "id": "ai-2kw-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-server": {
      "args": [
        "-y",
        "--package=@2kw/ai-mcp-server@8.0.3",
        "2kw-mcp"
      ],
      "command": "npx",
      "env": {
        "AI_2KW_API_KEY": "${input:ai-2kw-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "--package=@2kw/ai-mcp-server@8.0.3", "2kw-mcp"]
env = { "AI_2KW_API_KEY" = "<AI_2KW_API_KEY>" }

For AI agents

  1. Ask the user for: AI_2KW_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: 2kw_chat, 2kw_create_response, 2kw_get_response, 2kw_cancel_response, 2kw_list_models, 2kw_list_agents, 2kw_list_agent_catalog, 2kw_get_agent, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json