tapscript-mcp
MCP server for reading, writing, and compiling music notation, enabling multi-agent collaboration on scores without conflicts.
README
tapscript-mcp
A Model Context Protocol server for TapScript, so any agent can read, write and compile music notation — and so several agents can work on one score at the same time without overwriting each other.
tapscript-mcp # JSON-RPC over stdio, what most clients expect
tapscript-mcp --http # loopback HTTP, for remote and multi-agent setups
tapscript-mcp --list-tools # what it exposes
Install
pip install git+https://github.com/SuperInstance/tapscript-mcp
That brings in the compiler as well. Neither has any other dependency: the protocol, both transports, the session store and the compiler itself are written against the standard library. Python 3.10 or newer.
The compiler is currently pulled from a branch of tapscript-studio rather than from its default branch, because the package this builds on is still in review there. Installing works; the pin moves the day that merges.
Point a client at it
For a client that launches servers over stdio, the usual shape is:
{
"mcpServers": {
"tapscript": {
"command": "tapscript-mcp"
}
}
}
Then ask it for music. The server exposes 27 tools, which is everything the
tapscript CLI can do — write and validate notation, compile to MIDI and
audio, transpose, search a library of several thousand pieces, analyse what
each listener on a stage actually hears, and probe what the host machine can
render.
Many agents, one score
The reason this exists. A session gives every agent a voice of its own:
ensemble_open name a session, set key, tempo and metre
ensemble_join claim a voice -- one owner at a time
ensemble_read the whole current state, in one call
ensemble_write_part write your voice, against the version you read
ensemble_render merge the parts and compile
ensemble_log what everyone has done
Because the parts are disjoint, the common case never conflicts — two agents writing two voices both succeed. When two do collide, the later write is refused and handed the current state to rebase onto, rather than silently overwriting somebody's work. Locks are held only around a read-modify-write of the manifest, never across a call to a model, because a model call takes seconds and a lock held that long is a lock nobody else can get.
Notation is parsed before a part is accepted, so invalid notation never lands. Writes are atomic, the merge is deterministic, and every change appends to a log a joining agent can read to find out what has happened so far.
See docs/ensemble.md for the whole protocol and docs/mcp.md for the tool and resource surface.
Reading a score as features
analyze_features computes sixteen per-bar features — note density, harmonic
tension, syncopation, contour direction, register spread and so on — matching
the vocabulary fleet-jepa-midi
perceives. That lets a bandleader read a written score, and makes a corpus of
notation usable as labelled training data.
Where this came from
This began inside the compiler's repository and was extracted once it was clear
it had become its own thing rather than a feature of the compiler. Two names had
also collided along the way: the analysis of who hears what on a physical stage,
and a session shared by several agents, were both called "ensemble". The first
is now tapscript stage and lives with the compiler; the second is what this
repository means by the word.
The compiler still ships a copy of this server, which is what its tapscript mcp command runs. That copy is being retired — install from here.
Status
The protocol is exercised by a test suite that drives the server with real
JSON-RPC: the initialize handshake, tools/list, tools/call, malformed
input, unknown methods, notifications, and a tool that raises. Concurrency is
tested with threads racing for the same voice, and merge determinism is checked
by writing the same parts in three different orders and comparing bytes rather
than assuming.
CI runs the suite on Python 3.10 through 3.13 across Linux, macOS and Windows, and then speaks the protocol to the built server over a pipe, so a handshake that regresses fails the build rather than a mock of one.
No third-party MCP client has connected to it yet. The protocol behaviour is verified against the specification rather than against a particular client — strong evidence, and not the same thing. Doing that is the most useful thing anyone could contribute.
90 tests.
Licence
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。