MCP server · Audited from source
Ollama MCP server
by rawveg/ollama-mcpAGPL-3.0 licenceAudited 6 Oct 2026 · source 78471f5c7f0e
Is it safe? With care — CAUTION, grade B (89/100). It exposes 14 tools: 11 read, 2 write and 1 destructive. The audit recorded 11 findings (0 critical, 0 high, 2 medium, 8 low). Maintainer's description: An MCP Server for Ollama
Cite
Cite this page
ModelsAtlas. “Ollama MCP server (rawveg/ollama-mcp)”. Retrieved 6 Oct 2026. https://modelsatlas.com/mcp/rawveg/ollama
3 MCP servers are called Ollama. You are viewing rawveg/ollama-mcp. Compare all 3 →
- emgeee/mcp-ollama★ 34✓SAFE
- rawveg/ollama-mcp★ 174!CAUTION
- nighttrek/ollama-mcp★ 74!CAUTION
Trust audit
Audit 0.4.1 · full source read 6 Oct 2026
11 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkDeclared2 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | WARN 9 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
rawvegUser accountAccount type recorded when we read the repository. - PackagePublished on npm
ollama-mcpat version 2.1.0 - LicenceAGPL-3.0From the repository, as read at the audited commit.
- Last push53 days agoActivity of the repository when we read it.
- Source commit read78471f5c7f0eThe audit covers exactly this commit, read on 6 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory14 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (11)
Sorted by severity
MEDIUMNetwork egressnet.raw_ip · src/server.ts:23
host: process.env.OLLAMA_HOST || 'http://127.0.0.1:11434',
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
ollama_delete
- Why
- 1 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / pathfs.traversal · tests/integration/server.test.ts:45
const { createServer } = await import('../../src/server.js');- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/schemas/chat-input.test.ts:2
import { ChatInputSchema } from '../../src/schemas.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/tools/chat.test.ts:3
import { chatWithModel, toolDefinition } from '../../src/tools/chat.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/tools/chat.test.ts:4
import { ResponseFormat } from '../../src/types.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/tools/copy.test.ts:3
import { copyModel, toolDefinition } from '../../src/tools/copy.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:127
| `OLLAMA_HOST` | `http://127.0.0.1:11434` | Ollama server endpoint (use `https://ollama.com` for cloud) |
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:184
"OLLAMA_HOST": "http://127.0.0.1:11434",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, json2md, markdown-table, ollama, zod, @types/node, @vitest/coverage-v8, typescript
- Why
- 9 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
INFOPrompt injectionprompt.authority_framing · README.md:23
- 🔧 **14 Comprehensive Tools** - Full access to Ollama's SDK functionality
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
14 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
ollama_delete | destructive | Delete a model from local storage. Removes the model and frees up disk space. |
ollama_create | write | Create a new model with structured parameters. Allows customization of model behavior, system prompts, and templates. |
ollama_push | write | Push a model to the Ollama registry. Uploads a local model to make it available remotely. |
get_weather | read | Get weather |
ollama_chat | read | Chat with a model using conversation messages. Supports system messages, multi-turn conversations, tool calling, and generation options. |
ollama_copy | read | Copy a model. Creates a duplicate of an existing model with a new name. |
ollama_embed | read | Generate embeddings for text input. Returns numerical vector representations. |
ollama_generate | read | Generate completion from a prompt. Simpler than chat, useful for single-turn completions. |
ollama_list | read | List all available Ollama models installed locally. Returns model names, sizes, and modification dates. |
ollama_ps | read | List running models. Shows which models are currently loaded in memory. |
ollama_pull | read | Pull a model from the Ollama registry. Downloads the model to make it available locally. |
ollama_show | read | Show detailed information about a specific model including modelfile, parameters, and architecture details. |
ollama_web_fetch | read | Fetch a web page by URL using Ollama\ |
ollama_web_search | read | Perform a web search using Ollama\ |
Install
Package version 2.1.0 · audited commit 78471f5
Read the findings first. The most severe is Network egress (medium) at src/server.ts.
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 2.1.0. The audit covers commit 78471f5 only.
claude mcp add ollama-mcp --env OLLAMA_API_KEY=${OLLAMA_API_KEY} -- npx -y [email protected]{
"mcpServers": {
"ollama-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"OLLAMA_API_KEY": "${OLLAMA_API_KEY}"
}
}
}
}The command pins the package version recorded in the source (2.1.0); the audit covers commit 78471f5c7f0e. Transport: stdio. Reads this environment variable: OLLAMA_API_KEY. Give it the narrowest token it needs.
Audit history
- !CAUTION B 89 / 100
First audit ·
78471f5c7f0e
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/rawveg/ollama/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Ollama MCP server
What is the Ollama MCP server?
What tools does Ollama expose?
Is Ollama safe to connect to an agent?
What credentials does Ollama need?
How does Ollama run?
How current is this page?
Which Ollama MCP server is the right one?
Sources
- rawveg/ollama-mcp on GitHub — the source we read, its licence, stars and activityObserved · 6 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit 78471f5c7f0eObserved · 6 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Ollama MCP server?
- What tools does Ollama expose?
- Is Ollama safe to connect to an agent?