MCP.so
Sign In

MCP Host

@intelligent-systems-lab

About MCP Host

Overview

What is MCP Host?

MCP Host is a Python implementation of a Model Context Protocol (MCP) host that connects to Ollama LLM backends and MCP servers, enabling LLMs to use tools from connected servers. It runs as a CLI application on any system with Python and Ollama.

How to use MCP Host?

Install Python and ensure Ollama is running locally or remotely. Create a JSON configuration file (default config.json) defining MCP servers and the Ollama provider, then run python mcp_host.py. During a session, type queries and use special commands like tools or exit.

Key features of MCP Host

  • Connects to any number of MCP-compatible servers
  • Supports both stdio and SSE transport types
  • Seamless integration with local Ollama models
  • Enables LLMs to execute tools from connected servers
  • Simple CLI with configuration via JSON file
  • Debug mode and message‑window control

Use cases of MCP Host

  • Extend a local Ollama LLM with live weather data from a weather server
  • Allow an LLM to interact with file systems or databases through MCP servers
  • Build a multi‑tool assistant that queries multiple remote APIs in one session
  • Prototype MCP server integrations without a full‑scale application

FAQ from MCP Host

What LLM providers does MCP Host support?

Currently only Ollama is supported as the LLM provider.

Can I connect to MCP servers over the network?

Yes, MCP Host supports SSE (Server‑Sent Events) transport for remote servers, configured with a URL.

What transport types are supported for MCP servers?

MCP Host supports both stdio (local subprocess) and sse (HTTP‑based) transports.

Is MCP Host free to use?

Yes, it is an open‑source Python project with no licensing fees. You only need to run your own Ollama instance.

How do I see which tools are available from connected servers?

During a chat session, type the special command tools to list all available tools. Use servers to list connected servers.

Comments

More Other MCP clients