mcp-glm-kimi-ollama
Provides three MCP servers for Claude Code to access free/low-cost LLM models: GLM (Zhipu), Kimi (Moonshot), and local Ollama, enabling chat, vision, and offline tasks via natural language.
README
mcp-glm-kimi-ollama
Free & low-cost LLM access for Claude Code — three MCP servers covering GLM (Zhipu), Kimi (Moonshot) and local Ollama models.
- 🆓 GLM — permanently-free
glm-4-flashvia the Zhipu China endpoint - 🎁 Kimi — Moonshot
kimi-k2.6(new accounts get a ¥15 credit) - 🖥️ Ollama — fully local, private, zero-cost models (e.g.
qwen3:8b)
All three run over stdio via Node.js — no Python or uv required (Windows users often find python is just a Store stub).
Why
Claude Code is powerful, but API costs add up. This project gives you three cheaper/offline "delegates" you can call from Claude Code:
| Provider | Model | Cost | Best for |
|---|---|---|---|
| GLM (Zhipu) | glm-4-flash |
free forever | daily Q&A, translation, code gen |
| Kimi (Moonshot) | kimi-k2.6 |
¥15 credit on signup | vision (kimi_read_media), deep reasoning |
| Ollama (local) | qwen3:8b |
free, offline | privacy, batch, mechanical tasks |
Quick start
1. Kimi MCP (patched for the China endpoint)
claude mcp add kimi -s user \
-e MOONSHOT_API_KEY=sk-xxx \
-- npx -y mcp-glm-kimi-ollama mcp-kimi
⚠️ Why the patch matters: the upstream
kimi-api-mcphardcodes the international endpointapi.moonshot.aiand a retired modelmoonshot-v1-128k. China-registered keys return 401 against the wrong host, and the old model no longer exists on the CN endpoint. This repo patches both (seesrc/kimi-server.mjs), defaulting toapi.moonshot.cn+kimi-k2.6.
2. GLM MCP (free)
claude mcp add glm -s user \
-e GLM_API_KEY=xxx.yyy \
-e GLM_BASE_URL=https://open.bigmodel.cn/api/anthropic \
-e GLM_OFFPEAK_MODEL=glm-4-flash \
-e GLM_PEAK_MODEL=glm-4-flash \
-e GLM_CHEAP_MODEL=glm-4-flash \
-e GLM_DELEGATE=on \
-- npx -y glm-mcp
3. Ollama MCP (local, optional)
winget install Ollama.Ollama
ollama pull qwen3:8b
claude mcp add ollama -s user -e ASK_OLLAMA_MODEL=qwen3:8b -- npx -y @ask-llm/ollama-mcp
Development
npm install
npm test
Docs
- docs/glm-mcp.md — GLM configuration details & troubleshooting
- docs/kimi-mcp.md — Kimi patch rationale, endpoints & models
- docs/ollama.md — local Ollama setup, incl. mirror download tips for mainland China
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.