mulchd

mulchd

Self-hosted MCP server for storing and serving structured team knowledge, enabling AI sessions to load relevant team context without re-prompting.

Category
访问服务器

README

mulchd

Stop re-explaining your stack to every new Claude session — mulchd gives Claude a memory your whole team shares.

mulchd is a self-hosted MCP server that stores and serves structured team knowledge. Engineers record decisions, conventions, and patterns once; every AI session loads exactly what's relevant, attributed to whoever wrote it, without re-prompting.

How it works

mulchd builds on mulch, a CLI that manages structured knowledge as JSONL records on disk. mulchd wraps it with an HTTP server that exposes eight MCP tools over the standard Streamable HTTP and legacy SSE transports:

Tool Description
list_domains List all knowledge domains and the current server timestamp
read_records Load records from one or more domains
write_record Record a new decision, convention, pattern, failure, or guide
edit_record Update an existing record in place
delete_record Soft-delete a record (recoverable from /admin)
search_records BM25 full-text search across domains
get_recent Surface teammate activity since a given timestamp
get_record_schema Get required and optional fields for a record type

Knowledge is organized into domains (e.g. architecture, conventions, ops). Records carry attribution, classification (foundational / tactical / observational), and optional supersession links so the team can track how thinking evolves.

An admin UI at /admin covers user and project management, a live record browser, and a full audit log with soft-delete and restore. A self-service /connect portal lets team members mint their own project-scoped tokens without admin involvement.

Try it locally

The demo script seeds a database with sample users, records, and tool-call history, then starts the server:

git clone https://github.com/ChacheGS/mulchd
cd mulchd
uv sync
./scripts/demo.sh

Open http://localhost:8000/admin — log in as admin / admin. The demo creates three users (alice, bob, claude) and a backend-api project with records across four domains.

To connect a client to the demo server, use the project tokens printed by the seed script and point it at http://localhost:8000/mcp.

Production setup

Requirements: a VPS with Docker, a domain, and a DNS provider supported by Traefik's ACME challenge (the included config uses DigitalOcean).

1. Configure environment files

cp deploy/mulchd.env.example deploy/mulchd.env
cp deploy/postgres.env.example deploy/postgres.env
cp deploy/traefik.env.example deploy/traefik.env

Fill in all values. Key variables for mulchd.env:

Variable Description
MULCHD_SECRET_KEY 64-char hex string — python -c "import secrets; print(secrets.token_hex(32))"
MULCHD_ADMIN_PASSWORD Initial admin password — change after first login

2. Set your hostname

Edit deploy/docker-compose.yml and replace the Traefik host rule:

- traefik.http.routers.mulchd.rule=Host(`mulchd.your-domain.com`)

3. Deploy

docker compose -f deploy/docker-compose.yml up -d

Migrations run automatically on each deploy. The admin UI will be at https://mulchd.your-domain.com/admin.

4. Create users

Log in to /admin and create an account for each team member. Each user gets a global token on creation — shown once, used to log in to /connect.

Connecting a client

mulchd works with any MCP-compatible client. The /connect portal generates ready-to-paste config snippets for Claude Code and Claude Desktop — use those rather than hand-editing.

For Claude Code, the generated .mcp.json entry looks like:

{
  "mcpServers": {
    "mulchd": {
      "type": "http",
      "url": "https://mulchd.your-domain.com/mcp",
      "headers": {
        "Authorization": "Bearer ${MULCHD_TOKEN_YOUR_PROJECT}"
      }
    }
  }
}

The token goes in .claude/settings.local.json (not committed):

{
  "env": {
    "MULCHD_TOKEN_YOUR_PROJECT": "mlt_..."
  }
}

For clients that use the legacy SSE transport, the endpoint is /sse with the same Authorization header.

Development

uv sync
make dev          # start mulchd + postgres with live reload
make test         # run the test suite
make dev-inspector  # start the MCP Inspector on :6274 alongside mulchd

make dev-inspector is useful for inspecting the MCP protocol directly — subscribe to resources, call tools, and observe notifications without a full AI client.

Roadmap

  • Automated alerting — webhook or email notifications when structural audit events fire (cross-owner edits, foundational-record supersessions)
  • Live notifications — server-side resource subscriptions are implemented and spec-compliant; waiting on client support (resources/subscribe is not yet implemented in Claude Code or Codex)
  • Claude Desktop snippets/connect already generates them; document the flow end-to-end
  • OAuth / SSO — replace global-token login with a standard provider

Contributing

Issues and pull requests are welcome. For non-trivial changes, open an issue first to discuss the approach — especially anything touching the MCP tool interface or the audit trail, where backward compatibility and security posture matter. Run make format and make test before submitting.

Acknowledgements

mulchd builds on mulch by Jaymin West, which provides the JSONL knowledge store, BM25 search, and the ml CLI that mulchd shells out to for all record operations. mulch is MIT licensed.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选