Ollama MCP Server
Provides web search capabilities through DuckDuckGo's HTML endpoint, allowing the server to perform public web searches.
Provides integration with Ollama's local model server, enabling listing installed models, chatting, generating completions, creating embeddings, and inspecting model details.
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 Serverchat with llama3.1 and summarize the latest AI news"
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 Server
A local MCP server with a ChatGPT-style web interface for choosing and chatting with Ollama models.
What is included
server/mcp_server.py— MCP stdio server with 12 tools, three prompts, and anollama://modelsresource.server/web_tools.py— keyless public web search and readable webpage extraction.server/api.py— small HTTP bridge used by the browser, including NDJSON chat streaming.frontend/— responsive React/Vite ChatGPT-style interface.setup.ps1,run-ollama.ps1,run-backend.ps1,run-frontend.ps1— PowerShell launchers.
Related MCP server: Local-MCP-server
Quick start
Open three PowerShell terminals:
cd C:\Users\admin\Desktop\MCP_SERVER
.\setup.ps1If Ollama is not already running, start it in terminal 1:
cd C:\Users\admin\Desktop\MCP_SERVER
.\run-ollama.ps1Pull at least one model, for example:
ollama pull llama3.1Then start the backend and frontend:
# terminal 2
cd C:\Users\admin\Desktop\MCP_SERVER
.\run-backend.ps1
# terminal 3
cd C:\Users\admin\Desktop\MCP_SERVER
.\run-frontend.ps1Open http://127.0.0.1:5173. The model selector is populated from Ollama, so every installed model can be chosen without changing code.
MCP client configuration
For an MCP client that supports stdio servers, use:
{
"mcpServers": {
"ollama-local": {
"command": "C:\\Users\\admin\\Desktop\\MCP_SERVER\\.venv\\Scripts\\python.exe",
"args": ["-m", "server.mcp_server"],
"cwd": "C:\\Users\\admin\\Desktop\\MCP_SERVER"
}
}
}Available MCP tools are list_ollama_models, chat_with_ollama, generate_with_ollama, embed_text, inspect_ollama_model, web_search, scrape_url, calculate, convert, current_time, text_stats, and pretty_print_json.
Available user-invoked MCP prompts are research_topic, solve_math_problem, and summarize_webpage. The server also exposes the read-only ollama://models resource with JSON metadata.
web_search uses DuckDuckGo's HTML endpoint and scrape_url fetches public HTML pages. Both require internet access; local/private network addresses are blocked by the scraper.
The general-purpose tools are local and deterministic: calculate supports safe arithmetic, convert supports length/mass/volume/temperature, current_time supports IANA timezones, text_stats counts text structure, and pretty_print_json validates and formats JSON.
The browser chat binds the 10 safe helper tools from server/tool_registry.py to Ollama's tool-calling API. When a compatible model requests a calculation, web search, scrape, conversion, or other helper, the backend executes it and sends the result back to the model before returning the final answer. The two model-to-model helpers (chat_with_ollama and generate_with_ollama) remain MCP-only to prevent recursive calls.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This 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.
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Self-hosted AI prompt library: prompts, collections, tags, teams, chains. 29 MCP tools for agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables seamless integration between Ollama's local LLM models and MCP-compatible applications, supporting model management and chat interactions.131,144170AGPL 3.0
- FlicenseNot gradedqualityDmaintenanceEnables tool-calling LLMs to search the internet, capture website images, extract webpage text, and more via a local MCP server.15-
- FlicenseAqualityDmaintenanceProvides local LLMs with web search and page fetching capabilities via MCP, with a focus on OWASP security best practices.2-
- AlicenseNot gradedqualityCmaintenanceA containerized MCP bridge that lets local or cloud LLMs access your filesystem and perform web searches via Ollama and FastMCP.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Ri5h18/MCP_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server