MPM MCP Server

Tool-first MCP: project-anchored AST index, symbol search, impact analysis, resumable task chains.

Local serverstdioGo

What is the MPM MCP server?

MPM MCP server exists for a simple reason — assistants are far more useful when they can act on MPM directly instead of describing what you should do. Tool-first MCP: project-anchored AST index, symbol search, impact analysis, resumable task chains.

What you get

已在 MCP Registry 发布:io.github.halflifezyf2680/mpm-coding

What the assistant can call

Once MPM is connected, these are the calls the assistant has available:

  • Tree-sitter — Rust AST 索引器,30+ 语言按需下载
  • SQLite — 嵌入式存储,数据在 .mpm-data/(不提交到 git)
  • code_search — 精确定位符号。不是 grep,是 AST 级精确查找。
  • project_map — 一眼看到目录结构和符号清单。
  • flow_trace — 追踪函数调用链——改代码之前先看懂主链路。
  • code_impact — "谁调用了它?" 或 "它调用了谁?"——动手前先看爆炸半径。
  • task_chain — 长任务?拆成阶段,每阶段有门控验收。会话断了也能续。
  • system_hook — 被阻塞?挂个钩子,条件满足后再继续。
  • memo — 记录"为什么改"。跨会话持久保留。
  • system_recall — "之前是不是修过类似的?"——搜索历史记录。
  • known_facts — KnownFact 策略引擎:行动前召回经验,行动后回写结果并进化。
  • initialize_project — 初始化 AST 索引 + 生成项目规则。一次性操作。

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Choosing this one

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MPM's toolset — Tree-sitter, SQLite, code_search and 11 more — is a fair guide to whether it matches your workflow. It is maintained by halflifezyf2680; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MPM's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch MPM.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mpm mcp server does with a few real requests.

Available tools

ToolWhat it does
Tree-sitterRust AST 索引器,30+ 语言按需下载
SQLite嵌入式存储,数据在 .mpm-data/(不提交到 git)
code_search精确定位符号。不是 grep,是 AST 级精确查找。
project_map一眼看到目录结构和符号清单。
flow_trace追踪函数调用链——改代码之前先看懂主链路。
code_impact"谁调用了它?" 或 "它调用了谁?"——动手前先看爆炸半径。
task_chain长任务?拆成阶段,每阶段有门控验收。会话断了也能续。
system_hook被阻塞?挂个钩子,条件满足后再继续。
memo记录"为什么改"。跨会话持久保留。
system_recall"之前是不是修过类似的?"——搜索历史记录。
known_factsKnownFact 策略引擎:行动前召回经验,行动后回写结果并进化。
initialize_project初始化 AST 索引 + 生成项目规则。一次性操作。
index_status查看后台索引进度。
ensure_languages下载缺失的 tree-sitter grammar。通常自动执行。

Example prompts to try

  • Use MPM to Tree-sitter.
  • Use MPM to SQLite.
  • Use MPM to code search.

Frequently asked questions

It connects MPM to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Tree-sitter, SQLite, code_search, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MPM directly.