Agent Cascade

•
4
•

Routes requests from Model Context Protocol clients to locally hosted large language models like Ollama or LM Studio.

Agent Cascade serves as a vital bridge, connecting Model Context Protocol (MCP) clients, such as Windsurf/Cascade, to local language models hosted via platforms like LM Studio or Ollama. This powerful server exposes a chat-completion tool, enabling developers to route AI requests directly to their own local models, bypassing reliance on external hosted APIs. It offers flexibility through configurable environment variables for the local model's base URL and default model, and even supports advanced patterns like self-reflection where a model can "ask itself" for sub-calls.

Características Principales

01Provides a `local_chat` MCP tool for chat completions
02Supports `local.chat` as a direct request handler for custom MCP methods
03Configurable base URL for local LM Studio/Ollama-compatible APIs
04Allows setting a default model for calls where none is specified
05Enables self-reflection and same-model sub-calls with controlled budgets
060 GitHub stars

Casos de Uso

01Integrating local LLMs (Ollama, LM Studio) with Windsurf/Cascade and other MCP clients
02Implementing self-ask or reflection patterns with local models for multi-step agent workflows
03Developing AI applications that leverage private or custom-tuned local language models