Skip to main content
Glama
PieterVDMerwe

Ollama MCP Wrapper

Ollama MCP Wrapper

A Python-based Model Context Protocol (MCP) server wrapping local Ollama capabilities. This allows AI agents to interface with local language models, query tags, generate text, and execute tool-calling sequences under strict prompt injection static sanitization.

File Structure

├── .agents/             # Agent rules & skills
├── src/
│   └── ollama_wrapper/  # Package source
│       ├── __init__.py
│       ├── config.py    # Configuration defaults
│       ├── security.py  # Prompt injection scanner
│       └── server.py    # FastMCP server
├── tests/               # Pytest testing suites
└── pyproject.toml       # Python dependencies

Related MCP server: Ollama MCP Server

Setup & Running

Requirements

  • uv for Python environment management.

  • Ollama running locally (defaults to http://localhost:11434).

Running the Server

To run the server locally via standard I/O (STDIO):

$env:PYTHONPATH="src"
uv run python -m ollama_wrapper.server

Running Tests

To run the unit tests:

$env:PYTHONPATH="src"
uv run pytest
A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PieterVDMerwe/ollama-wrapper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server