Ollama MCP Wrapper
Wraps local Ollama capabilities for interacting with local language models, querying tags, generating text, and executing tool-calling sequences.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Ollama MCP Wrappergenerate a short story about a robot using llama3"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 dependenciesRelated MCP server: Ollama MCP Server
Setup & Running
Requirements
Running the Server
To run the server locally via standard I/O (STDIO):
$env:PYTHONPATH="src"
uv run python -m ollama_wrapper.serverRunning Tests
To run the unit tests:
$env:PYTHONPATH="src"
uv run pytestThis server cannot be installed
Maintenance
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