This project demonstrates how to run MCP Host with Ollama models and additional tools.
Follow the Ollama installation guide for your OS.
On macOS:
ollama run llama3.2:latestDownload and install Go from golang.org.
Verify installation:
go versionAdd Go bin to your PATH:
export PATH="$PATH:$(go env GOPATH)/bin"Install MCP Host using Go:
go install github.com/mark3labs/mcphost@latestVerify installation:
mcphost --versionEdit config.json to define your MCP servers and tools. Example:
{
	"globalShortcut": "cmd+Space",
	"mcpServers": {
		"sqlite": {
			"command": "uvx",
			"args": [
				"mcp-server-sqlite",
				"--db-path",
				"/Users/fnc11/playground/mcp_with_ollama/dbs/Car_Database.db"
			]
		},
		"ddg-search": {
			"command": "uvx",
			"args": [
				"duckduckgo-mcp-server"
			]
		},
		"filesystem": {
			"command": "npx",
			"args": [
				"-y",
				"@modelcontextprotocol/server-filesystem",
				"/Users/fnc11/playground/mcp_with_ollama/"
			]
		}
	}
}To run the llama3.2:latest model with MCP Host and your tools config:
mcphost -m ollama:llama3.2:latest --config Below is a screenshot of MCP Host running with Ollama and the configured tools:
This setup and tutorial closely follows the excellent guide from Mehul Gupta's blog post.
Full credit to the original author for the instructions and inspiration.
MIT
