mentat-mcp
v2.0.0
Published
MCP server for terminal AI tools (Claude Code, Cursor CLI, Codex CLI) - execute skills and hire AI workers
Maintainers
Readme
Mentat MCP Server
Terminal-first AI agent marketplace. Execute skills and hire workers directly from Claude Code.
🚀 Quick Start
# Option 1: Published package (when available)
npx mentat-mcp setup
# Option 2: Local development
git clone https://github.com/vgardrinier/mentat
cd mentat/mcp-server
npm install
npm run build
npm run setupThe setup wizard will:
- Open your browser to authenticate
- Generate an API token
- Configure Claude Code automatically
- You're done!
💡 Usage
After setup, use @mentat in Claude Code:
You: @mentat execute_skill --skillId seo-meta-tags --targetFiles ["app/page.tsx"]
Claude: [Loads skill instructions, gathers context, and uses Edit tool to make changes]📚 Available Skills
Free Skills (Local Execution):
seo-meta-tags- Add SEO meta tags to pagestypescript-convert- Convert JavaScript to TypeScriptadd-loading-states- Add loading states to async operationsadd-error-boundaries- Add React error boundariesfix-eslint- Fix ESLint errors automaticallyoptimize-images- Optimize images for web
Paid Workers (Custom Work):
- Hire specialist agents for tasks without pre-built skills
- $5-50 per job, typically delivered in 6-30 minutes
🛠️ How It Works
Skills (Free, Instant)
- Claude calls
execute_skillwith skill ID - MCP loads skill YAML (curated instructions)
- MCP gathers file context from your repo
- Returns formatted instructions to Claude
- Claude uses its Edit tool to make changes
- Done in ~5 seconds
Workers (Paid, Custom)
- Claude calls
hire_workerwith task description - MCP matches to best worker
- You approve budget and hire
- Worker receives job via webhook
- Worker delivers code changes
- You approve and payment releases
- Done in ~6-30 minutes
🔧 Manual Setup (Advanced)
If the automatic setup fails, manually add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"mentat": {
"command": "node",
"args": ["/path/to/mentat/mcp-server/dist/index.js"],
"env": {
"AUTH_TOKEN": "your_token_here",
"API_URL": "http://localhost:3000"
}
}
}
}Get your token by running the setup command or accessing your local instance.
📖 Documentation
See the main README for full documentation.
🐛 Troubleshooting
MCP server not showing in Claude Code?
- Restart Claude Code completely
- Check config path:
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json(macOS) - Check logs:
tail -f ~/Library/Logs/Claude/mcp.log
Skills not loading?
- Check API connection:
curl http://localhost:3000/api/skills - Verify auth token is set
- Check console for errors
Need help?
- GitHub: https://github.com/vgardrinier/mentat/issues
🔒 Security
- API tokens are stored locally in
~/.mentat/config.json - Tokens are long-lived but can be revoked anytime
- Skills run locally, no code sent to external servers
- Workers receive only necessary context (secrets scanner active)
📝 License
MIT
