← All integrations

Ollama MCP server

8 operations0 webhooks

Local LLM runtime API for running open-source language models on your own infrastructure.

Try Ollama with your agent

Connect Ollama, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.

Using Corsair, show me what you can do in Ollama on my account, then run one read-only example and show me the result.

Runs once, when you ask

Ollama tools and triggers

Tools are what your agent can do in Ollama through Corsair's MCP server. Triggers are the Ollama events a routine can start from.

Models

  • List ModelsRead-only

    Tool to list all available Ollama models and their details. Use when you need to fetch installed models with metadata including name, size, last modified timestamp, digest, and format information.

    models.listModels

  • Show ModelRead-only

    Tool to show comprehensive information about an Ollama model. Use when you need to retrieve model details, parameters, template, license, or system prompt.

    models.showModel

  • VersionRead-only

    Tool to get the version of Ollama running locally. Use to check which version of Ollama is currently installed.

    models.version

Openai

  • Create Open Ai Chat CompletionWrite

    Tool to create OpenAI-compatible chat completions using Ollama models. Use when you need conversational AI responses with OpenAI API format compatibility.

    openai.createOpenAiChatCompletion

  • Create Open Ai CompletionWrite

    Tool to create OpenAI-compatible text completions using Ollama models. Use when you need text generation with OpenAI API format compatibility beyond chat-based interactions.

    openai.createOpenAiCompletion

  • List Open Ai ModelsRead-only

    Tool to list available models using OpenAI-compatible API format. Use when you need to retrieve locally available Ollama models with metadata following OpenAI's model list format.

    openai.listOpenAiModels

Chat

  • ChatWrite

    Tool to send a chat message with conversation history to Ollama. Use when you need to have a multi-turn conversation with an LLM model.

    chat.chat

  • GenerateWrite

    Tool to generate text responses from Ollama models with optional raw mode. Use raw=true to bypass prompt templating when you need full control over the prompt for debugging or custom processing. Note that raw mode will not return a context.

    chat.generate

Connect Ollama to Claude, ChatGPT or Cursor

  1. 1

    Connect Ollama in Corsair

    Add your Ollama API key or sign in with OAuth once in Corsair. Corsair stores the credential encrypted and makes the Ollama API calls for your agent, so it never goes into a prompt or a config file. Connect Ollama

    If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Ollama. On a ChatGPT personal plan, connect Ollama here first.

  2. 2

    Add Corsair's MCP server to your agent

    Every client uses the same address:

    https://mcp.corsair.dev/mcp
    Open Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.

    Codex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client

  3. 3

    Sign in and choose what needs your approval

    Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. None of Ollama's operations are destructive, so in the default Cautious mode they all run right away. Strict mode asks before each of its 4 writes, and Read mode allows reads only.

FAQ

Install corsair and @corsair-dev/ollama, add the Ollama plugin, and connect with an API key or OAuth. Then call methods like corsair.ollama.api.chat.chat() from your app. Corsair stores tokens, and keeps each tenant isolated.

Yes. Ollama supports an API key or OAuth. Use credentials or OAuth scopes that match what you automate. Create them in the Ollama developer console, then paste into Corsair or connect through managed auth in Hub.

Yes. One Corsair client can hit Ollama, GitHub, Notion, Stripe, and the rest. Trigger Ollama from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.

Teams use Corsair for local LLM runtime API for running open-source language models on your own infrastructure. Common builds include sync jobs, admin tooling, and agents that call Ollama APIs from your backend.

The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Ollama API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.

We maintain @corsair-dev/ollama in the open repo. When Ollama ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.

No. Corsair does not read your Ollama data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Ollama data on your behalf.

Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.

Yes. Put Ollama on a link in Strict mode and every write waits for your approval, while destructive actions are refused. None of the Ollama operations are destructive, so the default Cautious mode runs them all without asking. You can change a link's mode at hub.corsair.dev/me.