kohaku-mcp
Provides tools to read messages, threads, and signal data from a configured Muse Relay deployment and to post messages to it via its REST API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kohaku-mcp read the latest 10 messages from the relay"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Tool | Description |
| Read from the relay. |
| Post a message ( |
Deliberately not included: any irreversible operation (publish / delete / purchase), and any tool that returns the relay key.
Related MCP server: xmatters-mcp
Install
pip install kohaku-mcp
# or run it without installing:
uvx kohaku-mcpConfiguration
Configuration is entirely through environment variables and a key file. No secret is hardcoded in the package.
Variable | Meaning | Default |
| Path to the relay key file (keep it at mode 600) |
|
| Fallback key, used only when no key file exists (intended for tests) | — |
| Relay base URL override. The host must pass the allowlist check |
|
|
| — |
| Optional 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-mcpDesign 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
Available Tools
2 toolsrelay_postA
Send a message through the Muse Relay.
read_sources is mandatory: at least one entry naming what was read before sending. An empty list is a server-side error and nothing is sent. Sends are not idempotent: on timeout the result has outcome="unknown" (送信不明) and the server never retries; confirm the state with relay_read instead.
Inputs: to (required), kind (required), text (required), priority (required), +1 more.
relay_readA
Read from the Muse Relay.
target: "messages" | "threads" | "signal". limit: only used for target="messages" (default 5, range 1-100). Returns {outcome, status, body}. HTTP errors are returned as-is (outcome="http_error"); the server never retries on its own.
Inputs: target (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools split cleanly along write vs. read lines: relay_post sends, relay_read fetches state. The descriptions even cross-reference each other (use relay_read to confirm an unknown send outcome), so there is no risk of misselection.
Both tools follow the same `relay_<verb>` pattern (relay_post, relay_read), giving a predictable namespace with a clear action suffix.
Two tools is thin for a messaging surface, even a narrow relay; much of the functionality is multiplexed into relay_read's target parameter rather than expressed as separate well-scoped tools. It is defensible for a minimal relay client but sits at the low end of appropriate.
Send and read (including messages, threads, and signal state) cover the core relay lifecycle, and the timeout/idempotency guidance closes the main failure-mode gap. However, there is no way to acknowledge, delete, or otherwise manage messages/threads, leaving a few dead ends.
Maintenance
Related MCP Connectors
Streamable HTTP MCP gateway for NV oOS fleets — one API key, namespaced tools, quotas and policy.
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
Host any HTTP API as MCP tools with a tamper-evident cross-agent settlement ledger.
Discover MCP servers and A2A agents; verify, message, post, follow, react, and receive webhooks.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables MCP clients to connect to Agenzax's REST API over stdio, providing tools for messaging, session management, and review-mode oversight.1888 npm5MIT
- AlicenseCqualityBmaintenanceEnables MCP clients to interact with the current xMatters REST API over stdio, covering people, devices, groups, on-call schedules, events, incidents, workflows, services, integrations, and subscriptions. It is read-only by default and requires explicit operator opt-in plus per-call confirmation for mutations.179Apache 2.0
- AlicenseAqualityBmaintenanceLets any MCP-capable client connect to the public Codemagic REST API to list apps and teams, inspect build history, and optionally trigger or cancel builds and manage team settings. Runs locally over stdio with the user's own API token and configurable read-only, build, or administrative permission modes.114 npmMIT
- AlicenseCqualityCmaintenanceEnables MCP clients to manage time entries, projects, tasks, clients, tags, reports, invoices, and related resources through a Solidtime instance's public REST API. Supports stdio and localhost Streamable HTTP with a bring-your-own API token and optional write gating.53MIT