Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
llm-api-facade logo

llm-api-facade

RedJay

integrationsClaude Codeby JoshuaRamirez

Summary

Universal LLM facade MCP server - dual-layer information architecture abstracting any LLM backend (local or cloud) with typed extensions

Install to Claude Code

/plugin install llm-api-facade@RedJay

Run in Claude Code. Add the marketplace first with /plugin marketplace add JoshuaRamirez/claude-code-plugins if you haven't already.

README.md

llm-api-facade

An MCP server that provides a universal abstraction layer for interacting with any LLM backend -- local or cloud -- through a single, stable interface.

What It Does

One MCP server surface. Any LLM behind it. The consumer sends a generation request using a normalized vocabulary. The facade routes it to whichever backend is configured, translating parameters and response shapes as needed.

The architecture has two layers:

  • Layer 1 (Universal): Normalized types, provider-agnostic. Messages, content blocks, token usage, generation parameters, error taxonomy. Works without knowing which provider serves the request.
  • Layer 2 (Extensions): Structured, typed, discoverable provider-specific features. Cache control, safety settings, reasoning configuration, structured output guarantees, token breakdowns.

Quick Start

npm install
npm run build

The server communicates via stdio. Add it to your MCP client config:

{
  "mcpServers": {
    "server": {
      "command": "node",
      "args": ["/path/to/llm-api-facade/dist/index.js"]
    }
  }
}

Or install as a Claude Code plugin from the RedJay marketplace.

Provider Configuration

Providers auto-register when their env vars are set. Ollama is always on.

| Provider | Env Var | Adapter | |----------|---------|---------| | Ollama (local) | Always on | OpenAI-compat | | OpenAI | OPENAI_API_KEY | OpenAI-compat | | Anthropic | ANTHROPIC_API_KEY | Dedicated | | Google Gemini | GEMINI_API_KEY | Dedicated | | Cohere | COHERE_API_KEY | Dedicated | | Mistral | MISTRAL_API_KEY | OpenAI-compat | | xAI (Grok) | XAI_API_KEY | OpenAI-compat | | vLLM | VLLM_BASE_URL | OpenAI-compat | | LM Studio | LMSTUDIO_BASE_URL | OpenAI-compat | | llama.cpp | LLAMACPP_BASE_URL | OpenAI-compat |

MCP Tools

| Tool | Description | |------|-------------| | complete | Send messages to any LLM, receive a completion. Supports tools, structured output, all sampling parameters. | | stream_complete | Streaming variant. Returns accumulated chunks with usage. | | list_models | List configured providers. |

The Seam

The architecture enforces a clean boundary -- the seam -- between two zones:

  Consumer Side          |  THE SEAM  |          Provider Side

  Layer 1: Universal     | Normalizes |  Provider-specific SDKs
  Layer 2: Extensions    | Organizes  |  Native API formats
  Typed errors           |            |  Raw error responses
  Capability discovery   |            |  Feature negotiation

Layer 1 normalizes (many shapes into one). Layer 2 organizes (provider-specific features into typed, discoverable extensions). Infrastructure concerns (auth, retry, transport) never cross the seam.

Current State

Implemented and tested (50 scenarios across Ollama + OpenAI):

  • Text completion (batch and streaming)
  • All sampling parameters (temperature, top_p, frequency/presence penalty, seed, stop sequences)
  • Tool calling (single-turn, multi-turn with results, multiple tools, correct tool selection)
  • Structured output (JSON mode, JSON Schema with constrained output)
  • Content block model (TextBlock, ToolUseBlock, ToolResultBlock, ThinkingBlock, ImageBlock)
  • Error taxonomy (4 genera, 14 species)

Adapters (all 11 providers covered):

  • OpenAI-compatible adapter: Ollama, OpenAI, Mistral, xAI, vLLM, LM Studio, llama.cpp
  • Anthropic adapter: system-as-parameter, content blocks, role compression, named SSE streaming
  • Gemini adapter: parts-based content, "model" role, functionCall detection, API key in header
  • Cohere adapter: flat response, uppercase finish reasons, named SSE events

Not yet implemented:

  • Extension system (cache_control, safety_settings, reasoning_config, structured_output, token_details)
  • MCP resources (models://catalog, config://state, session://{id})
  • validate_request, estimate_tokens, get_model_info tools

Documentation

Documentation/
  Architecture/
    Principles.md              # 8 governing principles (dual-layer)
    DomainModel.md              # Universal concepts, behavioral contracts, the seam
    McpServerSpec.md             # MCP tools, resources, schemas, error codes (v0.3.0)
    OntologicalTaxonomy.md       # Categorical framework, cross-validated
    TypeSpecification.md         # Formal types, 48+ invariants, state machine
    SoftSpots.md                 # 13 resolved weak points with positions taken
    ToolCallingChoreography.md   # Multi-turn tool flows, 7-dimension provider divergence
    PositionPaper-*.md           # Facade as information architecture
    ExtensionCatalog.md          # 5 extensions with schemas and adapter tables
  Decisions/
    ADR-001 through ADR-007      # Architecture decision records
  Vendors/
    OpenAI, Anthropic, Gemini, Mistral/Cohere/xAI, Local Runtimes

License

MIT

Related plugins

Browse all →
ado-work-items logo

ado-work-items

RedJay

Azure DevOps work item management via CLI and REST API

Open plugin →
anki-connect logo

anki-connect

intellectronica-skills

This skill is for interacting with Anki through AnkiConnect, and should be used whenever a user asks to interact with Anki, including to read or modify decks, notes, cards, models, media, or sync operations.

Open plugin →
cellartracker-mcp logo

cellartracker-mcp

cellartracker-mcp

CellarTracker wine cellar management — MCP tools + skills for inventory, drinking recommendations, and purchase evaluation.

Open plugin →
gog-cli logo

gog-cli

intellectronica-skills

Use this skill whenever the user wants to operate Google Workspace from the command line with gog/gogcli, including Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Apps Script, Chat, Classroom, Contacts, Tasks, People, Groups, Admin, Keep, auth, configuration, scripting, or agent-safe Google automation. Prefer this skill for Google account/file/mail/calendar work when the user mentions gog, gogcli, Google CLI, Gmail search/send, Calendar events, Drive files, Docs/Sheets/Slides editing, Forms, Apps Script, Workspace admin, or command-line Google automation.

Open plugin →
notion-api logo

notion-api

intellectronica-skills

This skill provides comprehensive instructions for interacting with the Notion API via REST calls. This skill should be used whenever the user asks to interact with Notion, including reading, creating, updating, or deleting pages, databases, blocks, comments, or any other Notion content. The skill covers authentication, all available endpoints, pagination, error handling, and best practices.

Open plugin →
persql logo

persql

persql

Provision and query your own SQLite database from your agent — tables, SQL, branch a sandbox, publish typed HTTP endpoints. OAuth sign-in on first use; no API key, no signup form.

Open plugin →