mcphost

MCPHost is a CLI application enabling LLMs like Claude 3.5 Sonnet and Ollama to interact with external tools via the Model Context Protocol, supporting dynamic tool integration and consistent context.

772
54

MCPHost

MCPHost is a CLI application that enables Large Language Models (LLMs) to interact with external tools using the Model Context Protocol (MCP). It supports Claude 3.5 Sonnet and Ollama models.

MCPHost acts as a host in the MCP architecture, managing connections between LLMs and MCP servers, which provide context, tools, and capabilities. This allows models to access external resources, maintain context, and execute commands safely.

Key features include interactive conversations, support for multiple MCP servers, dynamic tool discovery, tool calling, configurable server locations, a consistent command interface, and a configurable message history window.

To use MCPHost, you need Go 1.23+, an Anthropic API key (for Claude), a local Ollama installation, and MCP-compatible tool servers. Configuration is done via a ~/.mcp.json file, specifying commands and arguments for each MCP server. MCPHost supports various models using the --model flag. Contributions are welcome under the MIT License.

Repository

MA
mark3labs

mark3labs/mcphost

Created

December 8, 2024

Updated

March 28, 2025

Language

Go

Category

AI