mcp-glm-kimi-ollama
Provides tools for interacting with a local Ollama instance, enabling private, offline, zero-cost inference with models such as qwen3:8b.
Click on "Deploy 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., "@mcp-glm-kimi-ollama analyze this image and describe what you see"
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.
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) |
| free forever | daily Q&A, translation, code gen |
Kimi (Moonshot) |
| ¥15 credit on signup | vision ( |
Ollama (local) |
| free, offline | privacy, batch, mechanical tasks |
Related MCP server: openai-mcp
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-mcp3. 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-mcpDevelopment
npm install
npm testDocs
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
Available Tools
14 toolskimi_agentC
Autonomous agent for complex multi-step tasks using Kimi K2.5.
Inputs: prompt (required), timeout, workFolder.
kimi_edit_fileB
Find-and-replace edit in a file (exact string match).
Inputs: path (required), new_string (required), old_string (required), workFolder.
kimi_fetch_urlB
Fetch a URL and return its text content (HTML stripped).
Inputs: url (required), workFolder.
kimi_globB
Find files matching a glob pattern.
Inputs: pattern (required), workFolder.
kimi_grepC
Search for regex patterns in files.
Inputs: pattern (required), glob, path, workFolder.
kimi_read_fileA
Read a text file. Returns file content up to limit lines.
Inputs: path (required), limit, offset, workFolder.
kimi_read_mediaC
Analyze images using Moonshot vision API.
Inputs: path (required), prompt, workFolder.
kimi_researchB
Analyze a codebase or answer questions using 128K context.
Inputs: question (required), context, workFolder.
kimi_reviewC
Code review for bugs, security issues, and performance.
Inputs: path (required), focus, workFolder.
kimi_shellA
Execute a shell command. Returns stdout, stderr, and exit code.
Inputs: command (required), timeout, workFolder.
kimi_testC
Generate or improve tests for a source file.
Inputs: path (required), framework, workFolder.
kimi_thinkB
Extended step-by-step reasoning for complex problems.
Inputs: problem (required), context, workFolder.
kimi_web_searchC
Search the web and return AI-summarized results.
Inputs: query (required), workFolder, max_results.
kimi_write_fileB
Create or overwrite a file with given content.
Inputs: path (required), content (required), workFolder.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools target distinct actions (read, write, edit, search, shell, web, media). The AI tools (think, research, agent) have some overlap in reasoning, but their descriptions clearly differentiate: think for step-by-step reasoning, research for codebase analysis, agent for autonomous multi-step execution. One or two pairs (think/research) could be confused if an agent isn't careful.
All tools share a 'kimi_' prefix, providing a strong sense of consistency. However, while many follow verb_noun (read_file, write_file, fetch_url), others are single nouns (glob, grep, shell, agent). This mix of verb and noun forms is a minor inconsistency, though the overall pattern remains readable.
With 14 tools, the server is well within the ideal 3-15 range. Each tool serves a distinct function from file operations to shell, web, media, and AI reasoning, so the count feels appropriately scoped without being overwhelming.
The toolset covers a broad range of operations: file read/write/edit/search, shell execution, web search/fetch, media analysis, and AI-based reasoning/review/testing/agentic tasks. There are no obvious dead ends; for example, file deletion can be handled via shell. The surface is comprehensive for a general-purpose assistant.
Maintenance
Related MCP Connectors
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
MCP server for AI dialogue using various LLM models via AceDataCloud
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- FlicenseBqualityDmaintenanceA lightweight MCP server that provides a unified interface to various LLM providers including OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama.6734-
- AlicenseNot gradedqualityBmaintenanceMCP server that bridges ChatGPT Plus/Pro to Claude Code, enabling chat, deep research, and image generation via your own account.52 PyPI51MIT
- AlicenseNot gradedqualityDmaintenanceA universal MCP server for spawning agents with any OpenAI-compatible LLM, supporting cloud and local models, and integrating with Claude Code, OpenCode, and Codex CLI.61 PyPIMIT
- AlicenseAqualityDmaintenanceMCP server bridging Claude Code to local llama.cpp. Run local LLMs alongside Claude for experimentation, testing, and cost-effective inference.1913 npm1MIT