Ollama MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ollama_generate_codeB | Generate code using Ollama. Use this for writing new functions, classes, or code snippets. Provide detailed requirements and context. |
| ollama_explain_codeB | Explain how code works using Ollama. Use this to understand complex code sections, algorithms, or patterns. |
| ollama_review_codeC | Review code for issues, bugs, or improvements using Ollama. Use this for code quality checks and suggestions. |
| ollama_refactor_codeC | Refactor code to improve quality, readability, or structure using Ollama. |
| ollama_fix_codeB | Fix bugs or errors in code using Ollama. Provide the broken code and error details. |
| ollama_write_testsC | Generate unit tests for code using Ollama. |
| ollama_general_taskC | Execute any general coding task using Ollama. Use this for tasks that don't fit other categories. |
| ollama_review_fileB | Review a file by path using Ollama. The MCP server reads the file directly, reducing token usage. |
| ollama_explain_fileB | Explain a file by path using Ollama. The MCP server reads the file directly, reducing token usage. |
| ollama_analyze_filesC | Analyze multiple files together using Ollama. Useful for understanding relationships between files. |
| ollama_generate_code_with_contextC | Generate code using Ollama with context from existing files. Reads reference files to understand patterns. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
The file-path variants (review_file, explain_file, analyze_files) and code-input variants (review_code, explain_code) overlap conceptually, forcing the agent to choose based on input format rather than intent. ollama_general_task is a catch-all that overlaps with every other tool, and generate_code vs generate_code_with_context differ only by context depth.
All tools share the ollama_ prefix and snake_case verb_noun pattern (fix_code, review_code, refactor_code, generate_code_with_context). The only deviation is ollama_general_task, which uses an adjective+noun rather than a verb, and the file/code suffix pairs are predictable enough to read clearly.
11 tools is a well-scoped size for a code-assistance server, and most map to a distinct coding workflow (fix, test, review, explain, refactor, generate, analyze). The one arguably redundant entry is the generic catch-all, which is a minor overlap rather than bloat.
The surface covers the core coding lifecycle: generation, explanation, review, refactoring, bug fixing, test writing, and multi-file analysis. Minor gaps exist around documentation generation, diff/patch handling, and model management, but agents can route those through the general task tool.