Install the package from PyPI:
pip install middleman-mcp-
Set the API Key: Make sure you have the
MIDDLEMAN_API_KEYenvironment variable set.export MIDDLEMAN_API_KEY="your_api_key_here"
-
Run the MCP Server: You can start the MCP server using the command-line interface. The simplest way is:
middleman-mcp
If you need to work with the development version:
- Clone the repository
git clone git@github.com:GenerativeAgents/middleman-mcp.git- Add the following to your
claude_desktop_config.json
{
"mcpServers": {
"middleman": {
"command": "uv",
"args": [
"--directory",
"/path/to/middleman-mcp",
"run",
"server.py"
],
"env": {
"MIDDLEMAN_API_KEY": "xxxxx"
}
}
}
}