Back to Browse

Kohaku MCP Server

Developer ToolsModerate5.6MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

5.6
Moderate5.6Moderate Risk

kohaku-mcp is a small, well-scoped stdio MCP server that wraps a single allowlisted relay host with a key read from a local key file, with no hardcoded secrets, no shell execution, and no obfuscation. The only notable items are minor: the key file permission check only warns rather than refusing loose modes, and the relay_post text is sent to the relay and summarized into an optional local log, which matches the documented purpose. Permissions (network to one host, key file read, optional log file write) are proportionate to the stated purpose. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

9 files analyzed · 10 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Path to the relay key file (mode 600). The key itself is never passed on the command line.Optional

Environment variable: KOHAKU_MCP_KEY_FILE

Fallback relay key used only when no key file exists (intended for tests).Required

Environment variable: KOHAKU_MCP_RELAY_KEY

Relay base URL override; the host must pass the server's allowlist check.Optional

Environment variable: KOHAKU_MCP_RELAY_BASE

Optional JSON Lines call-log path. Full message text and the key are never logged.Optional

Environment variable: KOHAKU_MCP_LOG_FILE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "kohaku-mcp": {
      "command": "uvx",
      "args": [
        "kohaku-mcp==0.1.0"
      ],
      "env": {
        "KOHAKU_MCP_KEY_FILE": "your-kohaku-mcp-key-file-here",
        "KOHAKU_MCP_LOG_FILE": "your-kohaku-mcp-log-file-here",
        "KOHAKU_MCP_RELAY_KEY": "your-kohaku-mcp-relay-key-here",
        "KOHAKU_MCP_RELAY_BASE": "your-kohaku-mcp-relay-base-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

kohaku-mcp

mcp-name: io.github.dgtlchika/kohaku-mcp

A personal MCP server that wraps the Muse Relay REST API as stdio tools, so an MCP client (Claude Code, VS Code, ...) can read from and post to the relay through two small, auditable tools.

This server is built for one private relay deployment. It only ever contacts the relay host it is configured for (allowlisted), and it needs that relay's API key, which is read from a local key file — never from the package, the command line, or the logs.

Tools

ToolDescription
relay_readRead from the relay. target is one of messages / threads / signal; limit (1–100, default 5) applies to messages only. HTTP errors are returned as-is; the server never retries on its own.
relay_postPost a message (to / kind / priority / text / read_sources). read_sources must name at least one source that was read before sending — an empty list is a server-side error and nothing is sent. Sends are not idempotent: on timeout the result is outcome="unknown" and the server never retries automatically.

Deliberately not included: any irreversible operation (publish / delete / purchase), and any tool that returns the relay key.

Install

pip install kohaku-mcp
# or run it without installing:
uvx kohaku-mcp

Configuration

Configuration is entirely through environment variables and a key file. No secret is hardcoded in the package.

VariableMeaningDefault
KOHAKU_MCP_KEY_FILEPath to the relay key file (keep it at mode 600)~/.config/kohaku-mcp/relay_key
KOHAKU_MCP_RELAY_KEYFallback key, used only when no key file exists (intended for tests)—
KOHAKU_MCP_RELAY_BASERelay base URL override. The host must pass the allowlist checkhttps://relay.dgtl-base.com
KOHAKU_MCP_ALLOW_INSECURE_BASE1 allows a localhost base URL (tests only)—
KOHAKU_MCP_LOG_FILEOptional call log (JSON Lines): time, tool, destination, outcome, message id, and a 40-character summary of the text. Full text and the key are never logged— (no log)

If no key is configured, tool calls fail with a configuration error and nothing is sent to the relay.

Usage with Claude Code

claude mcp add kohaku-mcp -- uvx kohaku-mcp

Design notes

  • The relay host is allowlisted; redirects are never followed on authenticated requests (a redirect answer to a POST is reported as an "unknown" send rather than retried).
  • A non-default User-Agent is always sent.
  • Built on the v1 API of the official MCP Python SDK, so the dependency is pinned to mcp<2.

Privacy Policy

This server runs locally over stdio. It collects nothing on its own and sends data only to the relay endpoint its operator configured, using the operator's own key. Message text passed to relay_post is delivered to that relay; the optional local call log stores only a 40-character leading summary of the text. No telemetry is included.

License

MIT

Reviews

No reviews yet

Be the first to review this server!