Llama-Bridge
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Llama-BridgeImplement a recursive Fibonacci function in Python"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Llama-Bridge — Local LLM Delegation Server
An MCP server that lets your cloud model (Gemini / Claude) delegate implementation work to a local llama.cpp server, preserving precious cloud-model usage limits while maintaining high code quality through AI-powered code review.
Cloud Model → Plans & Reviews
↕ MCP
Local Model → Writes CodeQuick Start
1. Prerequisites
Python 3.11+
uv (recommended) or pip
A running llama.cpp server (see below)
2. Start your local llama.cpp server
# Example with llama-server
./llama-server -m your-model.gguf --port 8080
# Or with llama-cpp-python
pip install llama-cpp-python[server]
python -m llama_cpp.server --model your-model.gguf --port 80803. Run the Automated Installer
We provide an automated installer script that creates a virtual environment, installs the package and its dependencies, and automatically configures llama-bridge in your global Antigravity/Gemini configuration directory (~/.gemini/config/mcp_config.json on Linux/macOS):
python install.py4. Configure Global Model Instructions (Required)
To enable the cloud model to automatically use the local Llama-Bridge delegation tools across all workspaces:
Open the project-scoped .agents/AGENTS.md file.
Copy its entire content.
Paste the content into your global
GEMINI.mdinstructions file located at~/.gemini/GEMINI.md.
5. Custom Configuration (Optional)
The installer will set the default local server URL to http://localhost:8080. If you need to customize this, or set a custom API key, you can add environment variables to the "env" block in your global mcp_config.json or create a .env file in the project directory:
# Example .env settings:
LLAMA_BASE_URL=http://localhost:8080
LLAMA_REQUEST_TIMEOUT=1206. Verify
Restart Antigravity IDE. The cloud model should now have access to:
implement_codegenerate_testsrefactor_codefix_codegenerate_docscheck_local_model_health
Related MCP server: mcp-agent-review
Available Tools
Tool | Purpose | Inputs |
implement_code | Generate implementation from a spec | task_description, language, context, constraints |
generate_tests | Generate test code | code, language, framework, requirements |
refactor_code | Apply a specific refactor | code, language, refactor_description, constraints |
fix_code | Fix bugs from errors/feedback | code, language, errors, review_comments |
generate_docs | Generate documentation | code, language, style |
check_local_model_health | Check server availability | (none) |
Every code tool returns a consistent ToolResponse:
{
"success": true,
"code": "def hello(): ...",
"error": null,
"metadata": {
"tool": "implement_code",
"elapsed_seconds": 3.42,
"usage": {"prompt_tokens": 150, "completion_tokens": 89},
"warnings": []
}
}Configuration
All settings are configured via environment variables or a .env file:
Variable | Default | Description |
|
| llama.cpp server URL |
|
| Timeout in seconds |
|
| Default sampling temperature |
|
| Default token budget |
|
| Model identifier (usually ignored) |
Running Tests
uv run pytest tests/ -vHow It Works
The cloud model (Gemini/Claude in Antigravity IDE) acts as a senior engineer — it plans, delegates, and reviews. The local model acts as a fast junior engineer — it writes code quickly. The MCP server is the bridge between them.
Cloud model receives a user request
Cloud model breaks it into implementation tasks
Cloud model calls MCP tools to delegate coding
Local model generates implementation
Cloud model reviews the code
If issues found → calls
fix_codewith feedbackRepeat until code meets quality standards
Cloud model presents the final, reviewed code
This gives you practically unlimited coding capacity from the local model, with cloud-grade quality assurance from the review loop.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that offloads bulk coding tasks to local LLMs, allowing Claude Code to delegate repetitive work like boilerplate generation and code polishing while preserving its context for complex reasoning.Last updated101MIT
- Alicense-qualityCmaintenanceAn MCP server that provides agentic code review powered by OpenAI-compatible models, designed for use with Claude Code.Last updated1MIT
- Alicense-qualityCmaintenanceMCP server that lets Claude Code delegate mechanical tasks to a local LLM for summarization, classification, extraction, and drafting.Last updated209MIT
- Flicense-qualityCmaintenanceAn MCP server that lets a frontier planner (Claude Code) delegate mechanical code-generation subtasks to a local LLM served by llama-swap, to save frontier-model tokens.Last updated
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/shreyashp77/Llama-Bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server