MCP Ollama
A Model Context Protocol (MCP) server for integrating Ollama with Claude Desktop or other MCP clients.
Requirements
- Python 3.10 or higher
- Ollama installed and running (https://ollama.com/download)
- At least one model pulled with Ollama (e.g.,
ollama pull llama2)
Configure Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"ollama": {
"command": "uvx",
"args": [
"mcp-ollama"
]
}
}
}
Development
Install in development mode:
git clone https://github.com/yourusername/mcp-ollama.git
cd mcp-ollama
uv sync
Test with MCP Inspector:
mcp dev src/mcp_ollama/server.py
Features
The server provides four main tools:
list_models- List all downloaded Ollama modelsshow_model- Get detailed information about a specific modelask_model- Ask a question to a specified model
License
MIT
Metadata
Release files for mcp-ollama-fastmcp 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_ollama_fastmcp-0.1.4.tar.gz | 43.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_ollama_fastmcp-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.9 kB
Release files / mcp_ollama_fastmcp-0.1.4.tar.gz
| Download URL | mcp_ollama_fastmcp-0.1.4.tar.gz |
|---|---|
| Size | 43.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cec1fa6c143349a047f178b2a31a0297dc3f225820b73026909d79357912a12
|
|
BLAKE2b-256 checksum How to use checksums |
939de92a8093e97bb019bee97d403ad8a81a025d646009d9dfeb0dbdb2efdc2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / mcp_ollama_fastmcp-0.1.4-py3-none-any.whl
| Download URL | mcp_ollama_fastmcp-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f0647a9b3e619a6e6d73171cb9590cbb0bcbd63065437d8441d57dc723a6e2b
|
|
BLAKE2b-256 checksum How to use checksums |
9de6467b359f28eb41be2a5a85a85fbf2b608b6ce6dce91f170618d4474809c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|