MCPHost logo

MCPHost

by dictybase-docker

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

View on GitHub

Last updated: N/A

What is MCPHost?

MCPHost acts as a host in the MCP client-server architecture, allowing LLMs to access external tools, maintain consistent context, and execute commands safely. It provides a command-line interface for interacting with LLMs and MCP servers.

How to use MCPHost?

Install MCPHost using go install github.com/mark3labs/mcphost@latest. Configure it by setting up environment variables for Anthropic or Ollama, and configuring the ~/.mcp.json file for MCP server connections. Then, use the mcphost command with flags to specify the model and interact with the configured MCP servers.

Key features of MCPHost

  • Interactive conversations with Claude 3.5 Sonnet or Ollama models

  • Support for multiple concurrent MCP servers

  • Dynamic tool discovery and integration

  • Tool calling capabilities

  • Configurable MCP server locations and arguments

  • Consistent command interface across model types

  • Configurable message history window

Use cases of MCPHost

  • Interacting with databases through LLMs using MCP servers

  • Accessing file systems using LLMs through MCP servers

  • Automating tasks using LLMs and external tools

  • Building custom LLM-powered applications

FAQ from MCPHost

What is MCP?

Model Context Protocol (MCP) is a client-server architecture designed to facilitate interaction between Language Models and external tools.

What models are supported by MCPHost?

MCPHost currently supports Claude 3.5 Sonnet and any Ollama-compatible model with function calling support. The application also supports OpenAI models like GPT-4.

How do I configure MCPHost to use an MCP server?

Configure the ~/.mcp.json file with the command and arguments required to run your MCP server. Ensure the server is MCP-compliant.

What are the benefits of using MCPHost?

Benefits include a unified interface for interacting with multiple models, dynamic tool discovery, and secure access to external resources.

Where can I find MCP-compatible servers?

Reference implementations can be found in the MCP Servers Repository.