MCP servers · Ollama · MCP server
Connect Windsurf to Ollama
One line gives Windsurf your Ollama account as tools: 8 endpoints, generate text, chat completion, create embedding, called with your own connection. No key in the prompt, a receipt for every call, revoke Windsurf's access alone any time.
Three steps
- Create a free 0n3 account and connect Ollama. Paste a key or sign in; it lands in your vault, encrypted.
- Install 0n3 into Windsurf. The mcp_config.json block.
- Ask Windsurf: whoami. Then: "Generate in Ollama".
Write it yourself · ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"0n3": {
"serverUrl": "https://0n3.app/mcp",
"headers": {
"Authorization": "Bearer <your 0n token>"
}
}
}
}The line above carries a placeholder; 0n3.app/install mints a real key named for Windsurf and fills it in.
What Windsurf can then do in Ollama
Generate text · Generate text completions with local models (Llama, Mistral, etc.)1
Generate
POST /api/generateChat completion · Multi-turn chat with local models1
Chat completion
POST /api/chatCreate embedding · Create text embeddings locally1
Create an embedding
POST /api/embedModels · List, pull, inspect, and delete local models4
List models
GET /api/tagsShow model
POST /api/showPull model
POST /api/pullDelete a model
DELETE /api/deleteMore · Everything else this app exposes.1
List running
GET /api/psOllama in other AI clients
Claude Code + OllamaMCP server + skillClaude (desktop & claude.ai) + OllamaconnectorChatGPT + Ollamaconnector · GPT actionCodex CLI + OllamaMCP serverGemini CLI + OllamaMCP serverCursor + OllamaMCP serverVS Code (Copilot) + OllamaMCP server
