MCP Host CLI
@VyacheslavVanin
关于 MCP Host CLI
Local http server that proxies requests o LLMs and uses mcp-servers if needed
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-http-host": {
"command": "uv",
"args": [
"run",
"main.py"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Host CLI?
It is a FastAPI server for chat interactions with LLMs, using OpenAI-compatible providers. It is configured via environment variables and CLI arguments, and supports tool approval workflows.
How to use MCP Host CLI?
Configure via environment variables (e.g., LLM_API_KEY, LLM_MODEL) or CLI arguments (e.g., --model, --port). Start the server using uv run main.py with desired options. Send requests to endpoints like POST /user_request and POST /approve.
Key features of MCP Host CLI
- FastAPI server for chat interactions with LLMs
- Configurable via environment variables and CLI arguments
- Supports OpenAI-compatible providers (e.g., OpenRouter)
- Tool approval workflow with request/response endpoints
- Streaming mode and retry on LLM errors
Use cases of MCP Host CLI
- Building a backend for chat interfaces with LLMs
- Integrating LLM chat with tool approval mechanisms
- Running a local or remote LLM chat server with OpenAI-compatible API
FAQ from MCP Host CLI
How do I configure the LLM model?
Use the LLM_MODEL environment variable or the --model CLI argument. Default is qwen2.5-coder:latest.
How do I provide the API key?
Set the LLM_API_KEY environment variable or use the --api-key-file CLI argument pointing to a file with the key.
What LLM providers are supported?
Only openai provider is supported, but the base URL can be changed (default OpenRouter).
How do I approve a tool call?
Send a POST request to /approve with request_id and approve boolean in the JSON body.
Where are debug messages logged?
If --debug-messages is enabled, logs are written to /tmp/llm-requester.messages.log.
开发工具 分类下的更多 MCP 服务器
Code Index MCP
johnhuang316A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
Golf
golf-mcpProduction-Ready MCP Server Framework • Build, deploy & scale secure AI agent infrastructure • Includes Auth, Observability, Debugger, Telemetry & Runtime • Run real-world MCPs powering AI Agents
MCP Unity Editor (Game Engine)
CoderGamesterModel Context Protocol (MCP) plugin to connect with Unity Editor — designed for Cursor, Claude Code, Codex, Windsurf and other IDEs
Unity MCP (Server + Plugin)
IvanMurzakAI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for fr
JetBrains MCP Proxy Server
JetBrainsA model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
评论