🦙 ollama-mcpo-adapter
@tappi287
关于 🦙 ollama-mcpo-adapter
Adapter to expose MCPO, the MCP-to-OpenAPI proxy server, tools in Ollama-compatible format
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"ollama-mcpo-adapter": {
"command": "uvx",
"args": [
"mcpo",
"--port",
"5090",
"--config",
"/path/to/mcp_config.json"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is ollama-mcpo-adapter?
ollama-mcpo-adapter is a Python package that connects to a MCPO (MCP-to-OpenAPI proxy) server and lists its exposed MCP tools as Ollama-compatible function definitions, enabling tool calling from Ollama models.
How to use ollama-mcpo-adapter?
Install with pip install ollama-mcpo-adapter. Then create an OllamaMCPOAdapter instance pointing to a running MCPO server (or launch one with MCPOService) and call list_tools_ollama() to get tool definitions. Pass these tools to an Ollama chat request and use call_tools_from_response() to execute tool calls.
Key features of ollama-mcpo-adapter
- Connects to an existing MCPO instance via host and port
- Optionally launches a MCPO server programmatically with
MCPOService - Discovers MCP tools exposed through OpenAPI and converts them to Ollama tool format
- Reliable server name discovery with a provided MCP config path
- Supports Windows via
WIN_NODEJS_NPX_PATHenvironment variable
Use cases of ollama-mcpo-adapter
- Exposing file system, time, or any MCP server tools to Ollama for function calling
- Building AI assistants that call external tools via MCP without switching paradigms
- Prototyping and testing Ollama models with real-world tool invocations
FAQ from ollama-mcpo-adapter
What dependencies does ollama-mcpo-adapter require?
Python 3.8+ and the ollama Python package for sending tool-calling requests.
Where does the MCP configuration live?
You provide the MCP config as a JSON dictionary or file path when using MCPOService; the OllamaMCPOAdapter also accepts an optional config_path for reliable server name discovery.
What about Windows compatibility?
Set the environment variable WIN_NODEJS_NPX_PATH to the full path of npx.cmd if the default npx path is not found.
Can I use ollama-mcpo-adapter without starting my own MCPO server?
Yes, point the adapter to an already running MCPO instance by specifying its host and port.
Is the adapter secure?
It communicates with MCPO over HTTP; consider network security and authentication if MCPO is exposed publicly (not detailed in the README).
AI 与智能体 分类下的更多 MCP 服务器
meGPT - upload an author's content into an LLM
adriancoCode to process many kinds of content by an author into an MCP server
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
MCP Manager for Claude Desktop
zueaisimple web ui to manage mcp (model context protocol) servers in the claude app
Perplexity MCP Server
DaInfernalCoderA Model Context Protocol (MCP) server for research and documentation assistance using Perplexity AI. Won 1st @ Cline Hackathon
Unreal Engine Generative AI Support Plugin
prajwalshettydevUnreal Engine plugin for LLM/GenAI models & MCP UE5 server. OpenAI GPT-5, Deepseek R1, Claude Opus/Sonnet, Gemini 3, Grok 4, Alibaba Qwen, Kimi, ElevenLabs TTS, Inworld, OpenRouter, Groq, GLM, Ollama, Local, Meshy, Tripo, Hunyuan3D, Rodin, fal, Dashscope, Seedream. NPC AI, agenti
评论