Skip to main content
MCP server CX Codex

Nim Language Server — Claude Code MCP server: how to install

Nim Language Server gives coding agents symbol lookup and type resolution for Nim projects. The same binary also runs as an LSP server in an editor.

MIT ★ 320 updated 2026-10-24

Open on GitHub

What Nim Language Server does

An agent can ask this server where a Nim symbol is defined or what type it has, and can pull diagnostics for a file. That is the information an editor normally shows you. The same nimlangserver binary runs in two modes: LSP for editors and IDEs, MCP for agents such as Claude Code and GitHub Copilot.

Install it with nimble install -g nimlangserver. Check your toolchain first: nimble must be 0.16.1 or later, and nimsuggest must understand --v3, which means Nim 1.6+ or devel. Nim older than 1.6 is out.

What it helps with

  • find where a Nim symbol is defined
  • get diagnostics for a single .nim file
  • check the type of a variable or expression
  • orient an agent in unfamiliar Nim code
  • run the same server as LSP in your editor

Example prompts for the agent

  • Use Nim Language Server to find where main is defined
  • Show diagnostics for src/app.nim from nimlangserver
  • What type does config have in src/app.nim? Ask the Nim language server

How to install Nim Language Server

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Nim Language Server

How do I install Nim Language Server in Claude Code?

Run nimble install -g nimlangserver. It needs nimble 0.16.1 or newer and a nimsuggest that supports --v3.

What does Nim Language Server do?

It answers an agent's questions about a Nim project: where a symbol is defined, what type it has, and what diagnostics a file produces. The same nimlangserver also works as an LSP server in an editor.

How is Nim Language Server different from nimlsp?

nimlsp is another language server for Nim, with nimsuggest embedded in its binary. nimlangserver requires a nimsuggest that supports --v3.

Similar MCP servers

All MCP servers for Programming languages →

Project sponsors

Companies that keep this analytics open