mcx
v0.2.1
Published
MCP server runner
Downloads
65
Readme
mcx
CLI for running mcp servers with mathom.
Installation
npm install -g mcxBuild from source
git clone https://github.com/stephenlacy/mathom.git
cd mathom/mcx
npm install
npm run build
npm linkConfiguration
mcx requires connection to your mathom instance. Set the environment variable or use the default:
export MATHOM_URL=http://localhost:5050Authentication
Authenticate with your Mathom instance:
mcx auth loginUsage
Launch an MCP server by name or package:
mcx my-mcp-server
mcx @modelcontextprotocol/server-filesystem
mcx my-server -- --custom-arg valueYou can also use the inspector:
npx @modelcontextprotocol/inspector mcx @modelcontextprotocol/server-everythingClaude/Cursor
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"myServer": {
"command": "mcx",
"args": ["-y", "my-mcp-server"],
"env": {
"MATHOM_URL": "http://localhost:5050"
}
}
}
}Troubleshooting
Connection refused
- Verify Mathom instance is running
- Check MATHOM_URL environment variable
- Ensure Docker is running
Authentication failed
- Run
mcx auth loginto refresh tokens - Verify Mathom dashboard is responding
Container startup timeout
- Ensure Docker images are available (check if you built the local images)
- Check system resource availability
- Review logs with
docker logs
License
MIT License
Contributing
Contributions are welcome!
