Ollama MCP Server
Universal MCP server for Ollama - Works with ANY IDE or application that supports Model Context Protocol (MCP). Compatible with Cursor IDE, Claude Desktop, Cline, and all MCP-compatible clients. Provides tools to list models, chat, generate text, and mana
context tax
queued
security
queued
cold start
queued
freshness
Stale9mo ago
Install Ollama MCP server
Install in Claude Code
claude mcp add ollama-m-mehdi14 -- npx -y @muhammadmehdi/ollama-mcp-serverInstall in Cursor
{
"mcpServers": {
"ollama-m-mehdi14": {
"command": "npx",
"args": [
"-y",
"@muhammadmehdi/ollama-mcp-server"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"ollama-m-mehdi14": {
"command": "npx",
"args": [
"-y",
"@muhammadmehdi/ollama-mcp-server"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"ollama-m-mehdi14": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@muhammadmehdi/ollama-mcp-server"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"ollama-m-mehdi14": {
"command": "npx",
"args": [
"-y",
"@muhammadmehdi/ollama-mcp-server"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Freshness
Stale — last maintenance signal 9mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-01-28 · 9mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
no data · official registry
FAQ
›How do I install the Ollama MCP server in Claude Code?
Run: claude mcp add ollama-m-mehdi14 -- npx -y @muhammadmehdi/ollama-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Ollama require an API key?
No required environment variables are declared in its published metadata.
›Can I use Ollama as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Ollama in the official MCP registry?
No. It was indexed from npm.
Alternatives to Ollama
Other ai & llm tools MCP servers.