CLI tool for LLMs to interact with external tools via Model Context Protocol (MCP)
Top 32.7% on sourcepulse
MCPHost is a CLI application designed to bridge Large Language Models (LLMs) with external tools and data sources via the Model Context Protocol (MCP). It serves as a host in the MCP client-server architecture, enabling LLMs to interact with tools, maintain consistent context, and execute commands safely. The project targets developers and researchers working with LLMs who need to integrate them with external functionalities.
How It Works
MCPHost acts as an intermediary, managing connections to MCP-compatible servers that expose tools. It supports a range of LLMs, including Anthropic Claude, Ollama models, Google Gemini, and OpenAI-compatible APIs. The core advantage lies in its unified interface for interacting with diverse LLM providers and its dynamic tool discovery, allowing LLMs to leverage external capabilities seamlessly.
Quick Start & Requirements
go install github.com/mark3labs/mcphost@latest
export ANTHROPIC_API_KEY='your-api-key'
). Configuration for MCP servers is managed via ~/.mcp.json
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project requires Go 1.23+, which may be a recent requirement for some development environments. While it supports various LLMs, specific model compatibility (e.g., function calling support for Ollama/Gemini) is dependent on the underlying LLM provider.
5 days ago
1 day