Introduction
AI coding assistants know a lot of languages, but they may not know KScript, or the version you have. kscript mcp gives them these docs, so they write KScript from the reference of the version you have installed instead of guessing.
kscript mcp is a Model Context Protocol server. Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI and most other assistants can use it. It runs on your computer and works offline. It is built from the same guides and language catalog as kscript docs and the editor, so all three always agree.
The KScript extension for VS Code finds the server for you. For other assistants, add it once, and the assistant starts it when it needs it:
| Command | What it does |
|---|---|
claude mcp add kscript -- kscript mcp | Claude Code. |
For docs an assistant reads without a server, made from your own code, see Coding agents (kscript agents).
Running the server
Assistants start kscript mcp themselves, talking to it on stdin and stdout. You may also choose the syntax its examples use, or serve it over HTTP:
| Command | What it does |
|---|---|
kscript mcp | The server on stdin and stdout: assistants start it themselves. |
kscript mcp --syntax xml | Show examples as XML instead of .kscript. |
kscript mcp --http | Serve on http://localhost:4181/mcp instead. |