- MCP-Server VBox
MCP-Server VBox
MCP server for enabling AI use local k8s resources
Content
MCP-Server VBox
MCP-Server VBox 是一个基于 Model Context Protocol (MCP) 的服务器实现,用于管理和操作 Docker 容器和 Kubernetes 集群。该工具提供了一个统一的接口,让您可以通过 Claude Desktop 方便地执行容器和 Pod 相关的操作。
功能特点
Docker 操作
- 列出所有容器(
docker_list_containers) - 拉取 Docker 镜像(
docker_pull_image) - 创建新容器(
docker_create_container)
Kubernetes 操作
- 列出指定命名空间的 Pod(
k8s_list_pods) - 创建 Deployment(
k8s_create_deployment) - 在 Pod 中执行命令(
k8s_exec_pod) - 进入 Pod 的交互式 shell(
k8s_enter_pod) - 退出 Pod 的执行环境(
k8s_exit_pod)
执行环境管理
- 获取当前执行环境(
get_execution_context) - 在当前环境执行命令(
execute_command) - 支持本地和 Pod 两种执行环境
- 实时命令执行和输出
系统要求
- Node.js >= 14.0.0
- Docker
- Kubernetes 集群配置(~/.kube/config)
- Claude Desktop
安装和配置
- 安装依赖
npm install
- 构建项目
npm run build
- 配置 Claude Desktop
在 ~/Library/Application Support/Claude/claude_desktop_config.json 中添加以下配置:
{
"mcpServers": {
"vbox": {
"command": "node",
"args": [
"/path/to/your/vbox/build/index.js"
]
}
}
}
注意:请将 /path/to/your/vbox 替换为实际的项目路径。
调试
如果需要调试,可以在 Claude Desktop 配置中添加调试选项:
{
"mcpServers": {
"vbox": {
"command": "node",
"args": [
"--inspect",
"/path/to/your/vbox/build/index.js"
],
"debug": true
}
}
}
日志文件位置:
- MCP 服务器日志:
~/Library/Logs/Claude/mcp-server-vbox.log - Claude Desktop 日志:
~/Library/Logs/Claude/mcp.log
注意事项
- 确保 Docker 守护进程正在运行
- 确保有正确的 Kubernetes 配置文件(默认位置:~/.kube/config)
- 确保有适当的集群访问权限
- 在使用 Pod 相关功能时,确保指定正确的命名空间和 Pod 名称
许可证
MIT License
作者
[Your Name]
更新日志
1.0.0
- 初始版本发布
- 实现基本的 Docker 和 Kubernetes 操作功能
- 添加交互式 shell 支持
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Tavily Mcp
WindsurfThe new purpose-built IDE to harness magic
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Amap Maps高德地图官方 MCP Server
Playwright McpPlaywright MCP server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
ChatWiseThe second fastest AI chatbot™
DeepChatYour AI Partner on Desktop
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
CursorThe AI Code Editor
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code