Model Context Protocol (MCP) 的综合工具包,具有自动工具发现和多种传输选项。
🚀 由 UsefulAI 开发 | 📖 从 GitHub 到商业成功
选择你的平台并运行一个命令:
irm https://raw.githubusercontent.com/getfounded/mcp-tool-kit/main/install.ps1 | iex
bash <(curl -s https://raw.githubusercontent.com/getfounded/mcp-tool-kit/main/install.sh)
bash <(wget -qO- https://raw.githubusercontent.com/getfounded/mcp-tool-kit/main/install.sh)
就这样! 安装程序会:
下载最新版本:
解压并运行:
install.bat./install.sh克隆仓库
git clone https://github.com/getfounded/mcp-tool-kit.git
cd mcp-tool-kit
运行启动器
launch.bat./launch.shdocker run -it --name mcp-toolkit ghcr.io/getfounded/mcp-tool-kit:latest
</details>
工具在运行时自动发现和注册 - 不需要手动配置!
通过简单的 config.yaml 文件控制一切:
enabled_tools:
filesystem: true
time_tools: true
brave_search: true
# ... 更多工具
tool_config:
filesystem:
allowed_directories: ["~/Documents", "~/Downloads"]
brave_search:
max_results: 10
.env.template 复制到 .envBRAVE_SEARCH_API_KEY=your_key_here
NEWS_API_KEY=your_key_here
FRED_API_KEY=your_key_here
# ... 其他密钥
MCP 工具包使用专用存储目录进行文件操作:
C:\Users\{用户名}\mcp-tool-kit-storage~/mcp-tool-kit-storage当你首次运行 Docker 容器时,存储目录会自动创建。你也可以手动设置:
Windows (PowerShell):
.\scripts\setup-storage.ps1
Mac/Linux:
./scripts/setup-storage.sh
mcp-tool-kit-storage/
├── documents/ # 文档文件
├── downloads/ # 下载文件
└── workspace/ # 临时工作文件
所有通过文件系统工具的操作都将限制在这个目录内以确保安全。
{
"mcpServers": {
"mcp-tool-kit": {
"command": "docker",
"args": ["exec", "-i", "mcp-server", "python", "mcp_server_v2.py"]
}
}
}
http://localhost:8080/sse - 服务器发送事件流/messages - 向服务器发送消息工具现在使用标准化的基础类系统:
from app.tools.base_tool import BaseTool
class MyCustomTool(BaseTool):
def get_name(self) -> str:
return "我的自定义工具"
def get_tools(self) -> Dict[str, Callable]:
return {
"my_function": self.my_function
}
async def my_function(self, param: str, ctx: Context = None) -> str:
return f"处理:{param}"
查看 开发者文档 获取详细指南。
完整的文档可以在 https://docs.mcp-tool-kit.com 找到。
要在本地运行文档:
cd docsnpm installnpm start启动器脚本会自动处理所有 Docker 操作。
# 启动服务器
docker-compose up -d
# 查看日志
docker-compose logs -f
# 停止服务器
docker-compose down
# 修改后重建
docker-compose build --no-cache
app/tools/此项目采用 MIT 许可证 - 详情见 LICENSE 文件。