Skip to main content
Glama

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 with stream: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, with output_schema) plus a chat verb 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. Today the one state-owning backend is claude-resume (claude --resume, for claude-code models; the Claude session owns the bytes). 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. See docs/rust-transition.md for 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

  1. 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.

  2. Local-only, ephemeral by default. Random loopback port, persisted address file for discovery, never 0.0.0.0 without explicit opt-in. The router holds API keys and routes to local resources β€” it should not be LAN-reachable.

  3. 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 standard model field. No new wire format.

  4. 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.

  5. she talks to llamas.

What works today

  • OpenAI surface: /v1/models, /v1/chat/completions (pass-through + recipe orchestration, both with stream:true β†’ OpenAI SSE), /v1/tools introspection

  • Stateful surface: /v1/responses (stateless subset + stateful) and /v1/conversations (create/list/get/delete). woollama routes conversation handles; backends own state (woollama never stores transcripts itself) β€” claude-resume for claude-code models; 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 via inferencers.toml

  • Tool delegation: a claude-code recipe 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 + --allowedTools containment)

  • MCP server side: stdio (woollama mcp) and Streamable HTTP at /mcp on the same port β€” recipes as prompts, a chat verb (with live tool-progress notifications), and every downstream tool re-exported with its output_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_action path β€” 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 design

  • docs/naming.md β€” how we landed on this name

License

MIT β€” see LICENSE.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/teaguesterling/woollama'

If you have feedback or need assistance with the MCP directory API, please join our Discord server