MCP工具框架是 GuyMannDude 开发的 MCP 服务器:FrankenClaw是一个用于快速构建MCP工具的最小化框架,支持自动发现和配置启用功能,适用于AI代理的工具扩展。接入两步走:git clone https://github.com/GuyMannDude/frankenclaw.git,再把下文配置粘进客户端 mcpServers 段重启即可。
它是干什么的
先把话说清楚:MCP工具框架不是又一个大模型,而是一个标准的 MCP 服务器。装好之后,你的 AI 客户端多出一组新工具,模型可以按需调用。FrankenClaw是一个用于快速构建MCP工具的最小化框架,支持自动发现和配置启用功能,适用于AI代理的工具扩展
| 项目 | 数据 |
|---|---|
| 开发者 | GuyMannDude |
| Star | 6 |
| 收藏 | 0 |
| 质量等级 | A |
| 平台分类 | 开发效率 |
| 部署标签 | 本地部署、MCP工具、AI代理 |
| 仓库 | frankenclaw |
核心能力
- Functions starting with are ignored — use them for private helpers in the same file.
适合谁用
两类人最该装:一是天天在 Claude Desktop、Cursor 里写代码,想让 AI 直接帮你跑命令、改仓库、读文件的人;二是已经在用 MCP 生态、想按需拼装能力的折腾型用户。反过来,如果你只需要偶尔手动用它背后的服务,直接开网页就行,不必上 MCP。
完整安装配置步骤
动手前确认环境齐了:
- Python 3.10+ 与 pip(个别仓库要求 3.11+,以 README 为准)。
- git。
- 一个支持 MCP 的客户端:Claude Desktop、Cursor、Cline、Windsurf 任选其一。
- 对应平台的 API Key(第 2 步要用)。
第 1 步:安装MCP工具框架
终端里任选一条(不同安装方式,效果等价):
git clone https://github.com/GuyMannDude/frankenclaw.git
pip install -r requirements.txt第 2 步:写入 MCP 配置
先把凭证准备好:FIRECRAWL_API_KEY。拿不到后面全白搭。
Claude Desktop 的配置文件路径:macOS 在 ~/Library/Application Support/Claude/claude_desktop_config.json,Windows 在 %APPDATA%\Claude\claude_desktop_config.json;Cursor 则是 ~/.cursor/mcp.json(或项目级 .cursor/mcp.json)。把下面这段并进 mcpServers 段(注意是并进外层大括号,别整个文件替换):
Or skip the manual step and let [`./robot-install.sh`](#non-interactive-install-for-llm-agents-and-ci)
emit a ready-to-paste `mcp_snippet` block — it points at the venv's
Python so the host doesn't accidentally launch FrankenClaw against
system Python.
### Where the config file lives, per host
| Host | Path / command | Notes |
|---|---|---|
| **Claude Desktop** | `claude_desktop_config.json` (location varies by OS — see Anthropic docs) | Restart Claude Desktop after editing. |
| **Claude Code** | `claude mcp add frankenclaw -- python3 /path/to/frankenclaw/server.py` | One command; no JSON editing. |
| **LM Studio** | `~/.lmstudio/mcp.json` (Linux/macOS) · `%USERPROFILE%\.lmstudio\mcp.json` (Windows) | Native MCP since v0.3.17. Restart LM Studio. |
| **AnythingLLM** | `anythingllm_mcp_servers.json` (path varies by OS) | Flip workspace to **Automatic** mode (Settings → Chat Settings) so tools fire without `@agent` prefix. |
| **Open WebUI** | Settings → Tools → MCP Servers → add stdio server | GUI, no file editing. |
| **Jan** | Settings → Extensions → MCP Servers | GUI; uses the same JSON shape. |
| **LobeChat** | Settings → Plugins → MCP → Add custom MCP server | Type `stdio`, command `python3 /ABSOLUTE/PATH/TO/frankenclaw/server.py`. |
| **Hermes Agent** | `hermes mcp add frankenclaw -- python3 /path/to/server.py` | First-class MCP support since v0.12.0. |
| **Agent Zero** | In-container MCP config | Use *container-side* paths, not host paths. |
| **OpenClaw** | `openclaw mcp set frankenclaw '{"command":"python3","args":["/path/to/server.py"]}'` then `openclaw gateway restart` | Same MCP shape; gateway restart picks up the new tool registration. |
| **Ollama** (no native MCP) | `~/.mcphost.yaml` with `type: local`, command + args under `mcpServers.frankenclaw` | Ollama Desktop's own chat window doesn't support MCP — use [MCPHost](https://github.com/mark3labs/mcphost) or [ollmcp](https://github.com/jonigl/mcp-client-for-ollama) as the bridge. Pair with a tool-capable model: `model: "ollama:qwen3:8b"`. |
| **llama.cpp** | `llama-server -m model.gguf --mcp-config /path/to/mcp.json` | Reuse the LM Studio shape for `mcp.json`. |
### Things to get right for every host
- **Absolute paths only.** Relative paths break silently — the host spawns FrankenClaw from the wrong cwd and Python throws ENOENT.
- **Use a tool-capable model.** Qwen3, Llama 3.2, Mistral, and Gemma 2 invoke tools correctly. Small models often *narrate* tool calls instead of making them — `qwen3:8b` verified working on AnythingLLM, `llama3.1:8b` known to fake calls.
- **Coexists cleanly with [Mnemo Cortex](https://github.com/GuyMannDude/mnemo-cortex).** Just add a second `mcpServers` entry. They don't conflict — your agent gets memory + hands in the same session.
> **Heads-up for Windows users:** if a tool you add ships native Linux/macOS binaries (browser automation engines are the usual culprit), install and run FrankenClaw inside **WSL2**. The chassis core and pure-Python tools like the bundled `web_scrape` work native-Windows; WSL2 is the safe default when a tool has system dependencies.
For host pass/fail and the rest of our field findings: **[projectsparks.ai/field-guide](https://projectsparks.ai/field-guide)**.Non-interactive install (for LLM agents and CI)
Skip the manual steps — fill out a JSON manifest and run the robot installer.
改完保存。Windows 用户注意:如果 `command` 写 `npx` 起不来,换成 `npx.cmd` 再试。
### 第 3 步:重启并验证
完全退出客户端再打开(是托盘里真正退出,不是关窗口)。工具列表里出现MCP工具框架的工具即接入成功;调用报错的话,先查下面的坑点清单。容易踩的坑
- Key 填了但没生效:多半填在了
args而不是env段。客户端日志里看到Environment variable FIRECRAWL_API_KEY not set就是这个原因。 - 改了配置没反应:客户端只重启了窗口没退进程。macOS 按 Cmd+Q,Windows 检查托盘。
- JSON 报错打不开客户端:多半是最后多个逗号。粘进任何 JSON 校验器里查一遍再保存。
常见问题
MCP工具框架免费吗?
代码在 GitHub(https://github.com/GuyMannDude/frankenclaw)开放获取。个别功能依赖第三方服务时费用另算,看仓库 LICENSE 和定价页。
MCP工具框架能用在 Cursor / Cline 吗?
能。MCP 是通用协议,同一份 mcpServers 配置在这些客户端之间基本通用,只是配置文件位置不同。
API Key 从哪拿?
去对应平台的开发者控制台申请,填进配置的 env 段。Key 泄露记得直接去平台吊销,别只改本地文件。
需要外网或代理吗?
拉包和调用官方 API 需要能访问 GitHub 与对应服务域名,内网环境先测 git ls-remote 和接口连通性。
