MCP Gateway Overview

What is the MCP gateway, built-in tools, and architecture

MCP Gateway

VoidLLM is an MCP (Model Context Protocol) gateway. It exposes built-in management tools, proxies requests to external MCP servers, and provides access control, usage tracking, and session management - all through a single endpoint.

Why a gateway?

Without a gateway, every AI agent (Claude Code, Cursor, etc.) connects directly to every MCP server. Each connection needs its own auth, its own config, and there’s no visibility into what tools are being called.

With VoidLLM:

  • One endpoint per client - VoidLLM handles routing and auth to upstream servers
  • Scoped access control - grant access to MCP servers per org, per team, or globally
  • Tool call logging - every call tracked with metadata (server, tool, duration, status)
  • Session management - automatic initialization and session ID forwarding

Built-in Tools

VoidLLM ships with 6 management tools on /api/v1/mcp/voidllm:

ToolDescriptionMin Role
list_modelsModels with health statusmember
get_model_healthHealth for a specific model or deploymentmember
get_usageUsage stats for the caller’s orgmember
list_keysAPI keys visible to the callermember
create_keyCreate a temporary API keymember
list_deploymentsDeployment detailssystem_admin

External Servers

Register external MCP servers and proxy tool calls through VoidLLM. See Server Setup for configuration.

Code Mode

AI agents write JavaScript to orchestrate multiple tool calls in a single WASM-sandboxed execution. See Code Mode for setup.

IDE Integration

Connect Claude Code, Cursor, or Windsurf to VoidLLM’s MCP endpoints. See IDE Integration for step-by-step instructions.

Privacy

MCP tool calls follow the same zero-knowledge principle as the LLM proxy: VoidLLM logs metadata (server, tool name, duration, status) but never the tool call arguments or results. Tool call content passes through memory and is never written to disk.

Endpoints

EndpointPurpose
POST /api/v1/mcp/voidllmBuilt-in management tools
GET /api/v1/mcp/voidllmSSE transport (legacy clients)
POST /api/v1/mcp/:aliasExternal MCP server proxy
GET /api/v1/mcp/:aliasSSE transport for external servers
POST /api/v1/mcpCode Mode (list_servers, search_tools, execute_code)