mle_kit_mcp
Provides ML engineering tools including local/remote bash, text editor, file search, remote GPU helpers via vast.ai, and an OpenRouter LLM proxy.
README
MLE kit MCP
MCP server providing practical tools for ML engineering workflows, including local/remote bash, a text editor, file search, remote GPU helpers (via vast.ai), and an OpenRouter LLM proxy.
Features
- bash: Run commands in an isolated Docker container mounted to your
WORKSPACE_DIR. - text_editor: View and edit files and directories in your workspace with undo support.
- glob / grep: Fast filename globbing and ripgrep-based content search.
- remote_bash / remote_text_editor / remote_download: Execute and edit on a remote GPU machine and sync files to/from it.
- llm_proxy_local / llm_proxy_remote: Launch an OpenAI-compatible proxy backed by OpenRouter locally (in the bash container) or on the remote GPU.
Requirements
- Python 3.12+
- Docker daemon available (for
bashtool) - ripgrep (
rg) installed on the host (forgreptool) WORKSPACE_DIRshould be set with a path to working directory- Optional (for remote GPU tools): a
VAST_AI_KEYwith billing set up on vast.ai - Optional (for LLM proxy tools): an
OPENROUTER_API_KEY
Install
Using uv (recommended):
uv sync
Or standard pip install:
python -m venv .venv && . .venv/bin/activate
pip install -e .
Run the MCP server
Set a workspace directory and start the server. The MCP endpoint is served at /mcp.
WORKSPACE_DIR=/absolute/path/to/workdir uv run python -m mle_kit_mcp --port 5057
Defaults:
PORTdefaults to5057if--portis not providedmount_path=/andstreamable_http_path=/mcp
Claude Desktop config
{
"mcpServers": {
"mle_kit": {
"command": "python3",
"args": [
"-m",
"mle_kit_mcp",
"--transport",
"stdio"
]
}
}
}
Tools overview
- bash(command, cwd=None, timeout=60): Runs inside a
python:3.12-slimcontainer with your workspace bind-mounted at/workdir. State persists between calls. Timeouts return a helpful message. - text_editor(command, path, ...): Supports
view,write,append,insert,str_replace(with optionaldry_run), andundo_edit. Only relative paths under the workspace are allowed. - glob(pattern, path=None): Returns matching files under the workspace (optionally under
path), sorted by modification time. - grep(pattern, path=None, glob=None, output_mode=..., ...): ripgrep wrapper. Install
rgon the host to enable. Output modes:files_with_matches,content,count. - remote_bash(command, timeout=60): Runs commands on a remote vast.ai instance. Manages lifecycle unless you supply an existing instance (see env vars below).
- remote_download(file_path): Copies a file from the remote (
/root/<file_path>) to your workspace. - remote_text_editor(...): Same API as
text_editor, but syncs the file(s) before and after edits to the remote. - llm_proxy_local() / llm_proxy_remote(): Starts a small FastAPI OpenAI-compatible server backed by OpenRouter, returning a JSON string with
urlandscope.
Configuration (env vars)
All variables can be placed in a local .env file or exported in your shell.
WORKSPACE_DIR(required): Absolute path to your workspace directory.PORT(optional): Default server port (defaults to5057).
Remote GPU (vast.ai):
GPU_TYPE(default:RTX_3090)DISK_SPACE(GB, default:300)EXISTING_INSTANCE_ID(optional): Use an existing vast.ai instance instead of creating a new one.EXISTING_SSH_KEY(optional): Path to an SSH private key to use with the existing instance.VAST_AI_KEY(optional but required to launch new instances)
OpenRouter proxy:
OPENROUTER_API_KEY(optional but required for proxy tools)OPENROUTER_BASE_URL(default:https://openrouter.ai/api/v1)
Notes:
- The remote GPU helper will generate an SSH key at
~/.ssh/id_rsaif one is missing, and attach it to the instance. - Creating/destroying instances may incur cost; be mindful of environment defaults.
Development
Run tests:
make test
Lint / type-check / format:
make validate
Docker
You can also build and run via the provided Dockerfile:
docker build -t mle_kit_mcp .
docker run --rm -p 5057:5057 \
-e PORT=5057 \
-e WORKSPACE_DIR=/workspace \
-v "$PWD/workdir:/workspace" \
mle_kit_mcp
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。