Design Engineer Logo
Visit Repo
Open Graph preview

MCP Host

A CLI host application that enables LLMs to interact with external tools

Site favicon
🔌 MCP Tools

Overview

MCPHost

Description: CLI host application enabling LLMs to interact with external tools through standardized protocols

Overview: MCPHost is a Go-based CLI application that serves as a host in client-server architecture, managing connections between Large Language Models (Claude 3.5 Sonnet and Ollama models) and external tools.

Category: Developer Tools / LLM Integration

Key Features:

  • Interactive conversations with Claude 3.5 Sonnet or Ollama models
  • Multiple concurrent server support
  • Dynamic tool discovery
  • Configurable message history
  • Unified command interface

Requirements:

  • Go 1.23+
  • Anthropic API key (for Claude)
  • Ollama installation (for local models)

Installation:

go install github.com/mark3labs/mcphost@latest

Configuration Example:

{
  "mcpServers": {
    "sqlite": {
      "command": "uvx",
      "args": ["mcp-server-sqlite", "--db-path", "/tmp/foo.db"]
    },
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
    }
  }
}

Usage Commands:

  • Model selection: mcphost -m [provider:model]
  • Interactive commands:
    • /help - Show available commands
    • /tools - List available tools
    • /servers - List configured servers
    • /history - Display conversation history
    • /quit - Exit application

Supported Models:

  • Claude 3.5 Sonnet (default)
  • OpenAI GPT-4
  • Ollama-compatible models

The application automatically creates a configuration file at ~/.mcp.json if none exists, and supports custom configuration paths via the --config flag.