Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By yusukensantav0.1.0MITIn 1 marketplace
Read-only MCP tools (analyze, summarize, review diff, suggest tests) that delegate to a local LLM through Ollama or any OpenAI-compatible server
Connected while the plugin is enabled; Claude calls their tools.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Ollama modelmodel
Model name as your backend knows it (for example qwen2.5-coder:7b on Ollama, or the model id shown by LM Studio)
stringdefault qwen2.5-coder:7b
API keyapi_key
Optional bearer token for the OpenAI-compatible server; leave empty if none
Sensitive
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
mcp, local-llm, ollama, openai-compatible, lm-studio, llama-cpp, code-review
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Backendbackend
ollama (native API) or openai (any OpenAI-compatible server such as LM Studio, llama.cpp, vLLM)
stringdefault ollama
Context tokenscontext_tokens
Context window the model is served with. Sets num_ctx for Ollama and how much source is sent
numbermin 1024default 8192
Ollama URLollama_base_url
Ollama API endpoint, used when the backend is ollama. Must be local or on a private network; source text is sent to it
stringdefault http://localhost:11434
OpenAI-compatible URLopenai_base_url
Base URL ending in /v1; used only when the backend is openai. Must be local or private
stringdefault http://localhost:1234/v1
Local LLMs as read-only coding assistants for Claude Code.
Local LLM Gateway exposes a small set of MCP tools that let Claude Code delegate bounded code-analysis tasks to a model running on your machine (or another endpoint you configure). It works with Ollama out of the box and with any server that speaks the OpenAI chat-completions API, such as LM Studio, llama.cpp, vLLM or LiteLLM.
Use Claude Code for orchestration and decision-making, and use the local model for focused, lower-cost work such as source summarization, code analysis, diff review, and test-case suggestions.
Status: Early-stage project. Review the limitations below and verify model-generated suggestions before relying on them.
Claude Code is useful as the primary coding agent, but sending every analysis task to a hosted model can consume tokens quickly. This project adds a separate local inference path without replacing Claude Code's normal authentication or workflow.
You
|
v
Claude Code ----------------------> Anthropic
|
| MCP (stdio)
v
Local LLM Gateway
|
| validated workspace files / Git diff
v
Local model server
(Ollama or OpenAI-compatible)
|
| analysis result
v
Local LLM Gateway ----------------> Claude Code
Claude Code remains the primary agent. It decides when to call an MCP tool, receives the result, and can use that result in its wider reasoning.
The MCP server reads files inside the configured workspace, applies input limits, and sends the selected text to the configured model endpoint. If the model server runs locally, inference is performed on your machine. If you point the endpoint (OLLAMA_BASE_URL or LOCAL_LLM_OPENAI_BASE_URL) at a remote host, the source text is sent to that host.
Claude Code uses its normal direct Anthropic login. This project does not extract, store, or proxy Claude Code subscription OAuth credentials through LiteLLM.
The optional LiteLLM configuration is an independent gateway for Ollama and providers configured with separately provisioned API credentials. It is not required for the MCP integration.
| MCP tool | Purpose | Behavior |
|---|---|---|
local_analyze(path, question) | Analyze source code against a specific question | Reads a file or directory within the workspace |
local_summarize(path) | Summarize source code | Summarizes purpose, symbols, dependencies, and uncertainties |
local_review_diff() | Review current unstaged Git changes | Reviews the output of git diff in the configured workspace |
local_generate_tests(path) | Suggest tests for source code | Returns test ideas and edge cases; does not create test files |
All tools are read-only. In particular, local_review_diff currently reviews unstaged tracked changes; staged changes and untracked files are not included.
The default backend is Ollama with the model qwen2.5-coder:7b. Model quality and inference speed depend on your hardware. A GPU with 6 GB VRAM may not fit the entire model; Ollama can use CPU/RAM offload, which may reduce generation speed.
The scripts below set up the default Ollama backend. For LM Studio, llama.cpp, vLLM or another OpenAI-compatible server, run setup and register-mcp as shown, skip install-models, and set the variables in Using another LLM server before launching Claude Code.
Run these commands from the repository root.
# Create the virtual environment and install the project
.\scripts\setup.ps1
# Download the default Ollama model (Ollama backend only)
.\scripts\install-models.ps1
# Register the MCP server for the current project workspace
.\scripts\register-mcp.ps1 -Workspace (Get-Location).Path
# Create the virtual environment and install the project
bash scripts/setup.sh
# Download the default Ollama model (Ollama backend only)
bash scripts/install-models.sh
# Register the MCP server for the current project workspace
bash scripts/register-mcp.sh "$PWD"
npx claudepluginhub yusukensanta/local-llm-gateway --plugin local-llmBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground