woollama
woollama is an MCP and OpenAI-compatible router that orchestrates AI clients with multiple backends (like Ollama, Anthropic) and MCP tools, enabling seamless composition of models, tools, and recipes.
README
woollama
Web Over Ollama (and Llamas). An MCP + OpenAI router for AI desktops.
📖 Documentation: woollama.readthedocs.io
woollama sits between AI clients (Cursor, the OpenAI SDK, Claude Desktop, cosmic-fabric, anything that speaks OpenAI or MCP) and AI backends (Ollama, Anthropic, fabric, lackpy, filesystem MCPs, anything that speaks OpenAI or MCP). It composes them into orchestrated calls without inventing a new protocol.
┌─────────────────────┐
│ AI clients │
│ (any OpenAI or │
│ MCP client) │
└──────────┬──────────┘
│
┌──────────────────┴───────────────────┐
│ woollama │
│ OpenAI server + MCP server │
│ ─────────────────────────────── │
│ routes models, tools, executors │
│ composes patterns + tools + models │
│ into named recipes │
└──────────────────┬───────────────────┘
│
┌──────────────────┴───────────────────┐
│ │
┌───┴────┐ ┌────┴────┐
│ MCP │ tools, prompts, resources │ OpenAI │ inference
│ tool │ │ compat │
│ servers│ │ backends│
└────────┘ └─────────┘
fabric-mcp, lackpy, Ollama, Anthropic,
filesystem, git, … vLLM, llama.cpp, …
Status
Python prototype — multi-backend router, both surfaces live. woollama works end-to-end as:
- an OpenAI-compatible server:
/v1/chat/completions(pass-through and hidden chat-loop orchestration of recipes, both withstream:true→ OpenAI SSE),/v1/models,/v1/tools, and a stateful surface —/v1/responses+/v1/conversations(OpenAI Responses/Conversations shape; see below); - an MCP server to its own clients — over stdio (
woollama mcp) and over Streamable HTTP at/mcp, mounted on the same port as/v1/*. It re-exports every discovered downstream tool (namespaced, withoutput_schema) plus achatverb that emits live tool-progress notifications — i.e. it's an MCP aggregator.
It routes inference across multiple backends by <provider>/<model> —
ollama (local), anthropic, openai, groq, together, openrouter, and
any OpenAI-compatible endpoint you add in inferencers.toml (e.g.
self-hosted vLLM) — plus claude-code/<model>, a keyless path to Claude via the
local CLI (tool-less, or as an executor that runs a recipe's allow-listed
MCP tools itself — tool delegation). Config is file-driven (mcp.json,
recipes.toml, inferencers.toml).
Stateful conversations route handles; backends own the state — woollama
never stores transcripts in its own system. Two state-owning backends:
claude-resume (claude --resume, for claude-code models; keyless, the Claude
session owns the bytes) and managed-agents (Anthropic's Managed Agents, for
claude-agent models; ANTHROPIC_API_KEY, Anthropic hosts the session — and
exposes the transcript, so /v1/conversations/{id}/items works). Models with no
state-owning backend (ollama/cloud/recipe) are stateless — the caller owns
history (store:false). Long-lived MCP
connections. Served on both a Unix socket ($XDG_RUNTIME_DIR/woollama.sock,
mode 0600 — the default for local MCP clients) and an ephemeral loopback TCP
port; never 0.0.0.0 without explicit opt-in.
Not production-ready. Current status and what's next live in
docs/roadmap.md.
Implementation note: woollama will be a Rust program at v1.0. The Python in
src/woollama/is a prototype used to iterate the architecture quickly. The Rust port lands when the design surface is stable. Seedocs/rust-transition.mdfor the explicit transition criteria.
See docs/architecture.md for the full target design and
docs/build-log.md for the slice-by-slice history.
Quick taste
The router is OpenAI-compatible, so any OpenAI client can drive it:
import openai
c = openai.OpenAI(base_url="http://127.0.0.1:<port>/v1", api_key="x")
# Pass-through to Ollama
r = c.chat.completions.create(
model="ollama/qwen3:14b-iq4xs",
messages=[{"role": "user", "content": "Hi"}],
)
# Orchestrated: a recipe (system prompt + tools + model), transparent to the
# client. The chat-loop happens inside woollama; client sees only the final answer.
r = c.chat.completions.create(
model="woollama/streamer",
messages=[{"role": "user", "content": "Please count to 4."}],
)
woollama serves on two transports at once: a Unix socket at
$XDG_RUNTIME_DIR/woollama.sock (mode 0600 — the default for local MCP clients,
since a connectable socket can spend the router's API keys) and an ephemeral
loopback TCP port written to $XDG_RUNTIME_DIR/woollama.addr for clients to
discover. The <port> above is that ephemeral port. Same pattern as a local
fabric --serve instance.
Install (development)
git clone https://github.com/<you>/woollama
cd woollama
uv sync # creates .venv and installs deps
uv run woollama # starts the router; prints its address
In a second shell:
# Discover the address
cat "${XDG_RUNTIME_DIR:-/tmp}/woollama.addr"
# Then point an OpenAI client at it (see Quick taste above).
Tests & lint
uv run --extra dev pytest # hermetic suite (live tests are opt-in: -m integration)
uv run ruff check . # lint — the CI gate
CI (.github/workflows/ci.yml) runs both on every push to main and every PR.
For the same lint gate locally on commit, opt into the pre-commit hook:
uv tool install pre-commit && pre-commit install
Lint only — the project does not use ruff format (lines are hand-wrapped,
E501 is ignored), so there is no formatter step in either gate.
Design principles
- Two standards, neither extended. MCP for tool/prompt/resource discovery and execution; OpenAI chat-completions for the inference primitive. woollama is a router between them.
- Local-only, ephemeral by default. Random loopback port, persisted
address file for discovery, never
0.0.0.0without explicit opt-in. The router holds API keys and routes to local resources — it should not be LAN-reachable. - The model namespace is the universal addressing scheme. Raw inferencers
(
<provider>/<model>, e.g.ollama/X,anthropic/X,claude-code/X) and full recipes (woollama/<recipe>) are all addressable through OpenAI's standardmodelfield. No new wire format. - woollama owns routing, not inference or tools. It uses other people's inference engines (Ollama, Anthropic, …) and other people's tool servers (any MCP server — filesystem, git, lackpy, …). It composes them.
- she talks to llamas.
What works today
- OpenAI surface:
/v1/models,/v1/chat/completions(pass-through + recipe orchestration, both withstream:true→ OpenAI SSE),/v1/toolsintrospection - Stateful surface:
/v1/responses(stateless subset + stateful) and/v1/conversations(create/list/get/delete, plusitemswhere the backend exposes its transcript). woollama routes conversation handles; backends own state (woollama never stores transcripts itself) —claude-resumeforclaude-codemodels,managed-agents(Anthropic Managed Agents) forclaude-agentmodels; models with no state-owning backend are stateless (store:false) - Multi-backend routing by
<provider>/<model>: ollama, anthropic, openai, groq, together, openrouter,claude-code, + any OpenAI-compatible endpoint viainferencers.toml - Tool delegation: a
claude-coderecipe with tools runs as an executor — Claude owns the agentic loop and calls the recipe's allow-listed MCP tools itself (per-recipe--mcp-config+--allowedToolscontainment) - MCP server side: stdio (
woollama mcp) and Streamable HTTP at/mcpon the same port — recipes as prompts, achatverb (with live tool-progress notifications), and every downstream tool re-exported with itsoutput_schema(aggregator) - File-driven config (
mcp.json,recipes.toml,inferencers.toml), multi- MCP-server discovery + unified tool registry, long-lived MCP connections - Recipe allow-list enforced as a security boundary (in-loop AND in delegation); served on a Unix socket + loopback TCP, address discovery file; CI (ruff + hermetic suite, 3.11/3.12)
Not yet (next on the roadmap)
- The live, interactive Claude-in-tmux session backend (a separate Rust session
driver) and the interactive
requires_actionpath — gated on spikes that need a real terminal - cosmic-fabric actually consuming the conversations surface (the last v1.0 gate)
- The Rust v1.0 port
Full scorecard, ordering, and pending verifications:
docs/roadmap.md.
Origin
woollama is the production-grade rewrite of an architecture co-designed in cosmic-fabric, which remains a frontend (and will use woollama as its router engine). The design docs that brought woollama here:
docs/architecture.md— the model/tool/executor router designdocs/naming.md— how we landed on this name
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。