References the Meta-Prompting technique from a paper on arXiv, providing the theoretical foundation for the MCP implementation
Integrates with Astral's uv package manager for installation and running the Meta Prompt MCP server with optimal performance
Enables cloning the Meta Prompt MCP server repository from GitHub to set up the multi-agent language model system
Meta Prompt MCP
This project is an implementation of the Meta-Prompting technique from the paper "Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding".
At its core, this MCP transforms a standard Language Model (LM) into a dynamic, multi-agent system without the complex setup. It works by having the LM adopt two key roles:
- The Conductor: A high-level project manager that analyzes a complex problem, breaks it down into smaller, logical subtasks, and delegates them.
- The Expert: Specialized agents (e.g., "Python Programmer," "Code Reviewer," "Creative Writer") that are "consulted" by the Conductor to execute each subtask.
The magic is that this entire collaborative workflow is simulated within a single LM. The Conductor and Experts are different modes of operation guided by a sophisticated system prompt, allowing the model to reason, act, and self-critique its way to a more robust and accurate solution. It's like having an automated team of AI specialists at your disposal, all powered by one model.
Demo
Getting Started
1. Clone the Repository
First, clone this repository to your local machine.
2. Install uv
This project uses uv
, an extremely fast Python package manager from Astral. If you don't have it installed, you can do so with one of the following commands.
Note: use which uv
to know the path of your uv
installation.
macOS / Linux:
Windows (PowerShell):
For more details, see the official uv
installation guide.
Usage
To use this Meta Prompt MCP server, you need to configure your client (e.g., Cursor, Claude Desktop) to connect to it. Make sure to replace the placeholder paths with the actual paths on your machine.
Cursor
Add the following configuration to your mcp.json
settings:
Claude Desktop
Add the following configuration to your claude_desktop_config.json
settings:
Activating the Meta-Prompt Workflow
Important: To leverage the full power of this MCP, always start your request by invoking the meta_model_prompt
(then fill in the query with your prompt, see Demo video) from the meta-prompting
server. This is the official entry point that activates the Conductor/Expert workflow. Once the prompt is added, simply provide your problem statement.
How it Differs from the Paper
The core methodology in the original paper involves a two-step process for expert consultation:
- The "conductor" model generates instructions for an expert.
- A separate, independent LM instance (the "expert") is invoked with only those instructions to provide a response. This ensures the expert has "fresh eyes."
This implementation simplifies the process into a single LLM call. The conductor model generates the expert's name, instructions, and the expert's complete output within a single tool call. This is a significant difference that makes the process faster and less expensive, but it deviates from the "fresh eyes" principle of the original research.
Limitations
The expert_model
tool in this MCP server is designed to use the ctx.sample()
function to properly simulate a second, independent expert model call as described in the paper. However, this function is not yet implemented in most MCP clients (such as Cursor and Claude Desktop).
Due to this limitation, the server includes a fallback mechanism. When ctx.sample()
is unavailable, the expert_model
tool simply returns the output
content that was generated by the conductor model in the tool call. This means the expert's response is part of the conductor's single generation, rather than a true, independent consultation.
Comparison
Below is two conversations I asked Claude to implement the Meta Prompt MCP Server itself, with and without Meta Prompt MCP.
Some artifacts are missing from the conversation but you could see the implementation with Meta Prompt MCP is much better, and it also did kind of "self-reviewing" by consulting a QA expert.
- Claude Conversations:
References
A server that transforms a standard Language Model into a dynamic multi-agent system where the model simulates both a Conductor (project manager) and Experts (specialized agents) to tackle complex problems through a collaborative workflow.
Related Resources
Related MCP Servers
- -securityFlicense-qualityA server that enables AI assistants to interact with Linear's project management tools through the Model Context Protocol, supporting features like searching, creating, and updating issues, adding comments, and retrieving user profiles and team information.Last updated -TypeScript
- -security-license-qualityA Model Context Protocol server implementation that enables AI assistants to interact with Linear project management systems, allowing them to create, retrieve, and modify data related to issues, projects, teams, and users.Last updated -202TypeScript
- -securityFlicense-qualityA Model Context Protocol server that enables conversational LLMs to delegate complex research tasks to specialized AI agents powered by various OpenRouter models, coordinated by a Claude orchestrator.Last updated -10JavaScript
- -securityFlicense-qualityA server that allows AI agents to consult multiple large language models (like Grok, Gemini, Claude, GPT-4o) through Model Context Protocol for assistance and information.Last updated -3JavaScript