Slm Gate
MCP server by zenithfoundry Verified · npm:@zenithfoundry
Slm Gate runs small local models through Ollama to shrink large tool output before it reaches a paid cloud AI. It is for developers using coding assistants such as Claude Code or Cursor who want their plan usage to last longer.
Install Slm Gate
Built from the published package, never by AI.
claude mcp add slm-gate -- npx -y @zenithfoundry/slm-gateRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"slm-gate": {
"args": [
"-y",
"@zenithfoundry/slm-gate"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"slm-gate": {
"args": [
"-y",
"@zenithfoundry/slm-gate"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"slm-gate": {
"args": [
"-y",
"@zenithfoundry/slm-gate"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add slm-gate -- npx -y @zenithfoundry/slm-gate{
"mcpServers": {
"slm-gate": {
"args": [
"-y",
"@zenithfoundry/slm-gate"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add slm-gate npx -y @zenithfoundry/slm-gateGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the slm-gate block.
About
slm-gate is an MCP server and local gateway that shrinks large tool output, such as big files, long logs and command output, before a coding assistant sends it to a cloud AI. Two small local models, run on Ollama, do the shrinking. The source says it never answers a prompt itself. Every request still goes to the provider your tool uses, with your own login.
The MCP gate adds three tools: expand_elision returns cut lines, ask_elision answers questions about them locally, and find_existing lists code your repository already has. The model gate forwards shrunk requests and keeps a short conversation memory. Each gate writes token counts to a local ledger, which feeds slm-gate metrics and a dashboard. It is aimed at developers who use Claude Code, Codex, Cursor, Gemini CLI or Cline. It is free and MIT-licensed.
Written from the project's README and checked against it.
Tools it gives your assistant
expand_elisionGets the cut lines back from shrunk tool output.ask_elisionAnswers a question about cut lines using a local model.find_existingLists code your repository already has.
What you need
- Mac or Linux computer with 16 GB of RAM or more
- Node.js 22 or later
- Ollama installed and running
- A coding assistant such as Claude Code, Codex, Cursor, Gemini CLI or Cline
- Your own accounts with the AI providers you use
Try asking
- Use expand_elision to show the cut lines from that log output.
- Use ask_elision to find the error cause in the shrunk test output.
- Use find_existing to check whether this helper function already exists.
Good to know
- Designed for single-user, local use with your own accounts.
- Provided as is under the MIT License, without warranty of any kind.
- You are responsible for complying with the terms of any tool or model you connect.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Slm Gate
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
Slm Gate: common questions
Does slm-gate answer my prompts itself?
No. The source says it never answers a prompt itself. Every request still goes to the provider your tool uses, with your own login.
What data does slm-gate store?
Each gate writes one row per request to a local ledger with token counts, route and timings. The source says it never stores the text.
Which tools does slm-gate work with?
The source says it works with Claude Code, Codex, Cursor, Gemini CLI, Cline and any MCP client.
How do I install Slm Gate?
In Claude Code run claude mcp add slm-gate -- npx -y @zenithfoundry/slm-gate. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Slm Gate the official server?
Slm Gate is published by npm:@zenithfoundry from its verified domain in the official MCP Registry.
Is Slm Gate free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Slm Gate safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Slm Gate?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does Slm Gate work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
