kohaku-mcp

v0.1.0
io.github.dgtlchika/kohaku-mcp Checked 1 hour ago Published 5 days ago

Personal MCP server wrapping a private relay REST API: read and post tools over stdio.

Values you need

VariableWhat it is
KOHAKU_MCP_KEY_FILEoptional Path to the relay key file (mode 600). The key itself is never passed on the command line. Default: ~/.config/kohaku-mcp/relay_key
KOHAKU_MCP_RELAY_KEYoptional secret Fallback relay key used only when no key file exists (intended for tests).
KOHAKU_MCP_RELAY_BASEoptional Relay base URL override; the host must pass the server's allowlist check. Default: https://relay.dgtl-base.com
KOHAKU_MCP_LOG_FILEoptional Optional JSON Lines call-log path. Full message text and the key are never logged.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add kohaku-mcp -- uvx kohaku-mcp==0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "kohaku-mcp": {
      "args": [
        "kohaku-mcp==0.1.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "kohaku-mcp": {
      "args": [
        "kohaku-mcp==0.1.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "kohaku-mcp": {
      "args": [
        "kohaku-mcp==0.1.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.kohaku-mcp]
command = "uvx"
args = ["kohaku-mcp==0.1.0"]

For AI agents

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: relay_read, relay_post.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json