MCPHost logo

MCPHost

by mark3labs

MCPHost is a CLI application that allows Large Language Models (LLMs) to interact with external tools using 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 is a CLI host application that enables Large Language Models (LLMs) to interact with external tools through the Model Context Protocol (MCP). It acts as a bridge between LLMs and external tools, providing a unified interface for accessing diverse capabilities.

How to use MCPHost?

To use MCPHost, first install Go 1.23 or later and then install the application using go install github.com/mark3labs/mcphost@latest. Configure MCP servers in the ~/.mcp.json file or specify a custom location using the --config flag. Use the CLI with flags such as --model to specify the LLM to use (e.g., ollama:qwen2.5:3b). Interact with the LLM and connected tools through the command line, using interactive commands like /help, /tools, and /quit.

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 for both model types

Use cases of MCPHost

  • Interacting with databases using natural language

  • Accessing and manipulating filesystems via LLMs

  • Integrating LLMs with custom tools and APIs

  • Creating AI-powered assistants with access to external knowledge

FAQ from MCPHost

What is the Model Context Protocol (MCP)?

MCP is a protocol that allows LLMs to interact with external tools and data sources.

Which LLMs are supported by MCPHost?

MCPHost currently supports Claude 3.5 Sonnet and any Ollama-compatible model with function calling support.

How do I configure MCP servers?

MCP servers are configured in the ~/.mcp.json file. You can specify the command and arguments for each server.

How do I specify the model to use?

Use the --model flag (or -m) followed by the model name in the format provider:model, for example ollama:llama2

Where can I find MCP-compatible servers?

Check out the MCP Servers Repository for examples and reference implementations.