To use in claude desktop, insert the following in claude_desktop_config.json
and restart the Claude Desktop client.
{
"mcpServers": {
"mcp-agent": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER",
"run",
"server.py"
]
}
}
}
Warning
You may need to put the full path to the uv executable in the command field. You can get this by running which uv
on MacOS/Linux or where uv
on Windows.

To use the MCP server with a client:
uv run client.py server.py