Connect Ollama to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.
Ask your agent in plain language. Each of these maps to a real tool on the server.
Use the generate text tool in Ollama
Use the create model tool in Ollama
Use the push model tool in Ollama
Use the generate embeddings tool in Ollama
Use the chat tool in Ollama
Use the list models tool in Ollama
Supported Tools
generate_text
Generate Text
Generate a text completion from a prompt using a specified model. Supports system prompts, multimodal inputs (base64 images for vision models), structured output via JSON schema, and reasoning/thinking output. Use this for single-turn text generation tasks.
create_model
Create Model
Create a new model from an existing model with custom system prompt, template, license, messages, parameters, or quantization settings.
push_model
Push Model
Upload a model to the Ollama model library. Requires an ollama.com account and appropriate authentication.
generate_embeddings
Generate Embeddings
Generate vector embeddings from text using a specified embedding model. Supports single or batch text inputs. Useful for semantic search, clustering, and retrieval-augmented generation (RAG) applications.
chat
Chat
Send a chat conversation to a model and get the next assistant message. Supports multi-turn conversations with message history, tool/function calling, multimodal inputs (images), structured outputs, and reasoning/thinking.
list_models
List Models
List available models on the Ollama server. Can list locally available models, currently running/loaded models, or both.
pull_model
Pull Model
Download a model from the Ollama model library. The model will be available locally after the pull completes.
show_model
Show Model
Retrieve detailed information about a specific model, including template, system prompt, parameters, license, capabilities, architecture details, and verbose metadata.
copy_model
Copy Model
Duplicate an existing model under a new name. Creates a copy of the source model that can be independently modified or used.
delete_model
Delete Model
Remove a model from the Ollama server. This permanently deletes the model and its data from local storage.
get_version
Get Version
Retrieve the Ollama server version for health and compatibility checks.
Enable Ollama in Metorial. In your Metorial portal, enable the Ollama MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
Sign in. Select Add and sign in to load Ollama tools.
Enable Ollama in Metorial. In your Metorial portal, enable the Ollama MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom MCP server. On ChatGPT web, open Plugins, select +, then Add custom MCP server.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>), choose OAuth and accept the risk notice.
Create and install the plugin. Select Create as a plugin, install it and sign in to load Ollama tools.
Enable Ollama in Metorial. In your Metorial portal, enable the Ollama MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add Metorial to your MCP config. Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
Sign in. Open Customize in the sidebar, find Metorial and sign in to load Ollama tools.
{
"mcpServers":{
"metorial":{
"url":"<your-magic-mcp-url>"
}
}
}
Enable Ollama in Metorial. In your Metorial portal, enable the Ollama MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server over HTTP. Add --scope user to use it in every project.
Sign in. Run /mcp, select Metorial and sign in to load Ollama tools.
claude mcp add --transport http metorial <your-magic-mcp-url>
Enable Ollama in Metorial. In your Metorial portal, enable the Ollama MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server and sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this config.
Check the connection. Type /mcp in Codex to see Metorial and its Ollama tools.
codex mcp add metorial --url <your-magic-mcp-url>
codex mcp login metorial
Run Ollama through the Metorial gateway
One governed layer for every app your agents reach, not a separate connector per tool.
Give Ollama and every other app to your whole team through one MCP gateway, behind your SSO.
Scope which teams and agents can use Ollama tools with role-based access control, and trace every call.
Prefer to run it yourself? Metorial is open source and self-hostable.
Run and manage large language models locally or via Ollama Cloud. Generate text completions, conduct chat conversations, create vector embeddings, and manage local or cloud model operations.
Frequently asked questions
Common questions about connecting Ollama to AI agents with Metorial.
How many tools does the Ollama MCP server have?
The Ollama MCP server exposes 11 tools, including Generate Text, Create Model, Push Model. Each one is governed and traced through Metorial.
Does the Ollama MCP server support triggers?
Ollama exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
Which AI clients can use the Ollama MCP server?
Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Ollama MCP server through the same Metorial URL.
How do I give only some teams access to Ollama?
Use role-based access control to decide which teams, users, and agents can use Ollama and which of its tools they can call.
Can I self-host the Ollama MCP server?
Yes. Metorial is open source, so you can run the Ollama MCP server yourself or use the hosted gateway.
Connect Ollama to production AI agents
See how Metorial gives your team governed access to Ollama, with tracing and security controls built in.