Local LLM MCP Server
Provides Git version control operations such as status, diff, commit, log, and branch management.
Runs pre-commit validation checks to enforce code quality as part of the validation tool.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Local LLM MCP Server
A Model Context Protocol (MCP) server that provides Claude Code with specialized agents powered by local CUDA-accelerated LLMs. Each agent owns exactly one file and uses structured JSON-based tool calling for autonomous code generation.
Overview
This system enables Claude Code to orchestrate local agents that generate code using a local LLM (Qwen2.5-7B-Instruct). The architecture supports async task queueing, JSON-structured generation, and jinja2 template rendering for clean, executable Python code.
Key Features
π€ Agent-based architecture: One agent per file, persistent per repository
β‘ Async task queueing: Non-blocking tool calls with independent processing
π JSON-structured generation: Metadata-driven code generation with jinja2 templates
π CUDA acceleration: Optimized for RTX 1080ti with 15-25 tokens/second
π MCP integration: Seamless Claude Code integration via HTTP/MCP bridge
β 100% Success Rate: Working on tested examples with full implementations
Related MCP server: claude-delegate-local-mcp
Architecture
Claude Code β HTTP/MCP β Agent Registry β Individual Agents β Local LLM β Tool ExecutionQuick Start
Prerequisites
Ubuntu 22.04 with NVIDIA Driver 575+ and CUDA 12.9
Docker with NVIDIA Container Toolkit
Models directory:
~/models/Qwen2.5-7B-Instruct-Q6_K_L.gguf
Development Workflow
# Build and start server
inv build # Build Docker container with CUDA support
inv run --repo=<path> # Start MCP server pointing to workspace
inv logs # View all container logs
inv logs --follow # Follow logs in real-time
inv stop # Stop containers
inv test # Health check server
inv auth # Authenticate with server
# Example
inv run --repo=/home/user/Projects/local-llm-mcp/examples/CalculatorLocalModelFeatures Demonstrated
β Class definitions
β Method implementations with parameters and return types
β If/else conditional logic
β Exception raising (ZeroDivisionError)
β Type annotations
β Docstrings
Tool System
Available Tools
file_metadata - Creates structured JSON metadata for Python files
Actions: create_file, add_import, add_class, add_function, add_variable
Stores in
.meta/*.jsonfiles
workspace - File operations and code generation
Actions: read, write, delete, list, search, tree
generate_from_metadata - Renders Python from JSON metadata via jinja2
validation - Code quality checks
Actions: tests, pre-commit, file-length, validate
git_operations - Version control
Actions: status, diff, commit, log, branch
agent_operations - Agent management
Actions: create, list, queue_task, task_status, task_result
Supported Operations
The operations field in file_metadata supports:
β return - Return statement with value
β assignment - Variable assignment
β validation - Input validation with exceptions
β function_call - Call other functions
β if - Conditional logic with then/else branches
β raise - Exception raising
β³ for/while - Loop operations (TODO)
β³ try/except - Error handling (TODO)
Agent Usage
Creating an Agent
# Via MCP tool
mcp__local-llm-agents__agent_operations({
"operation": "create",
"name": "CalculatorAgent",
"description": "Expert in calculator functionality",
"specialized_files": ["calculator.py"]
})Queuing a Task
# Queue code generation task
mcp__local-llm-agents__agent_operations({
"operation": "queue_task",
"agent_id": "agent_id_here",
"task_type": "code_generation",
"message": "Create Calculator class with add, subtract, multiply, divide methods"
})Checking Task Status
# Check if task completed
mcp__local-llm-agents__agent_operations({
"operation": "task_status",
"agent_id": "agent_id_here",
"task_id": "task_id_here"
})File Structure
local-llm-mcp/
βββ src/
β βββ core/
β β βββ agents/ # Agent system
β β βββ llm/ # LLM management
β β βββ mcp/ # MCP bridge
β β βββ files/ # File manager
β β βββ prompts/ # Prompt system
β βββ mcp/
β β βββ tools/ # MCP tool implementations
β βββ schemas/ # Python file schemas
β βββ api/ # HTTP server
βββ templates/ # Jinja2 templates
βββ prompts/ # Tool and system prompts
βββ examples/ # Working examples
β βββ CalculatorLocalModel/ # Calculator demo
βββ tests/ # Test suiteLicense
[License information here]
Contributing
[Contributing guidelines here]
Contact
[Contact information here]
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
Coding agents from Claude Code, Cursor and Codex claim jobs and lock files on one shared board.
Your AI mind directs coding agents; work reviewed against your memories: Claude Code, Codex, Cursor
People and AI agents build software together in persistent cloud sessions for Claude Code.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables orchestrating multiple specialist Claude Code agents as a team, with live visualization and agent-to-agent messaging.-
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to hand off bulk, mechanical, read-heavy tasks to a local model, including agentic loops that can read, write, and run commands sandboxed at zero cloud token cost.MIT
- AlicenseAqualityBmaintenanceEnables Claude Code to delegate agent tasks to local LLMs via llama.cpp or vLLM servers on your own hardware, reducing API usage while maintaining full agent capabilities.1122MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to hand scoped, implementation-only coding tasks to any model available in a local opencode install β including Kimi, GPT, Gemini and local models β and to run many of them in parallel. Claude stays the orchestrator: it briefs each worker, collects results and needs-flags, then reviews diffs and runs tests, lint and builds itself.1MIT