# Nim Language Server

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 320 repo stars
- Author: nim-lang
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/nim-lang/langserver
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/nim-language-server

## What it 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.

## Install

### Claude Code (native platform)

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

## When to use it
- 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
- 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

## Similar
- [mcpls](https://affpapa.org/en/nevibecode/mcp/mcpls.md) — MCP server · ★ 85 repo stars
- [julia-lsp](https://affpapa.org/en/nevibecode/plugins/julia-lsp.md) — plugin · ★ 12 repo stars
- [lsp-setup](https://affpapa.org/en/nevibecode/skills/lsp-setup.md) — skill · 1100 installs
- [symbols](https://affpapa.org/en/nevibecode/mcp/symbols.md) — MCP server · ★ 5 repo stars
- [ty](https://affpapa.org/en/nevibecode/skills/ty.md) — skill · 3300 installs
- [nemotron-speech](https://affpapa.org/en/nevibecode/skills/nemotron-speech.md) — skill · 2100 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
