Mcphost MCP Server

👉 **We recommend all users migrate to [Kit](https://github.com/mark3labs/kit).**

Local serverstdioGo

What is the Mcphost MCP Server?

👉 We recommend all users migrate to Kit.

The short version

MCPHost acts as a host in the MCP client-server architecture, where: - Hosts (like MCPHost) are LLM applications that manage connections and interactions - Clients maintain 1:1 connections with MCP servers - Servers provide context, tools, and capabilities to the LLMs

  • Interactive conversations with multiple AI models
  • Non-interactive mode — for scripting and automation
  • Script mode — for executable YAML-based automation scripts
  • Support for multiple concurrent MCP servers
  • Tool filtering — with allowedTools and excludedTools per server
  • Dynamic tool discovery and integration

What it needs from you

  • Go 1.23 or later - For OpenAI/Anthropic: API key for the respective provider - For Ollama: Local Ollama installation with desired models - For Google/Gemini: Google API key (see https://aistudio.google.com/app/apikey) - One or more MCP-compatible tool servers

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Mcphost MCP Server

{
  "mcpServers": {
    "filesystem": {
      "type": "local",
      "command": ["npx", "@modelcontextprotocol/server-filesystem", "${env://WORK_DIR:-/tmp}"],
      "environment": {
        "DEBUG": "${env://DEBUG:-false}",
        "LOG_LEVEL": "${env://LOG_LEVEL:-info}",
        "API_TOKEN": "${env://FS_API_TOKEN}"
      },
      "allowedTools": ["read_file", "write_file"],
      "excludedTools": ["delete_file"]
    },
    "github": {
      "type": "local",
      "command": ["docker", "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN=${env://GITHUB_TOKEN}", "ghcr.io/github/github-mcp-server"],
      "environment": {
        "DEBUG": "${env://DEBUG:-false}"
      }
    },
    "sqlite": {
      "type": "local",
      "command": ["uvx", "mcp-server-sqlite", "--db-path", "${env://DB_PATH:-/tmp/foo.db}"],
      "environment": {
        "SQLITE_DEBUG": "${env://DEBUG:-0}",
        "DATABASE_URL": "${env://DATABASE_URL:-sqlite:///tmp/foo.db}"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Go 1.23 or later - For OpenAI/Anthropic: API key for the respective provider - For Ollama: Local Ollama installation with desired models - For Google/Gemini: Google API key (see https://aistudio.google.com/app/apikey) - One or more MCP-compatible tool servers
VariableDescriptionRequired
DEBUGConfiguration value read at startup.Optional
LOG_LEVELConfiguration value read at startup.Optional
API_TOKENCredential the server authenticates with.Yes
SQLITE_DEBUGConfiguration value read at startup.Optional
DATABASE_URLEndpoint or connection string the server talks to.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
ANTHROPIC_API_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Mcphost to Configuration.”
  • “Use Mcphost to Security.”

Frequently asked questions

👉 **We recommend all users migrate to [Kit](https://github.com/mark3labs/kit).** Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.