1. Conduid
  2. Data
  3. linw1995/nvim-mcp
MCP server · Data

linw1995/nvim-mcp

A Model Context Protocol (MCP) server that provides seamless integration with Neovim instances, enabling AI assistants to interact with your editor through connections and access diagnostic information via structured resources.

Unclaimed Apache-2.0 data
69Good

Scored 7 days ago · breakdown

About linw1995/nvim-mcp

linw1995/nvim-mcp is an MCP server published by linw1995 in the Data category: a Model Context Protocol (MCP) server that provides seamless integration with Neovim instances, enabling AI assistants to interact with your editor through connections and access diagnostic information via structured resources.

The repository has 73 stars and 15 forks, with the last commit 7 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/linw1995/nvim-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about linw1995/nvim-mcp

Powered by Claude · Grounded in docs

I know everything about linw1995/nvim-mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.7.2v0.7.2
v0.7.1v0.7.1
v0.7.0v0.7.0
v0.6.0v0.6.0
v0.5.0v0.5.0

README

Neovim MCP Server

codecov GitHub Actions Workflow Status

A Model Context Protocol (MCP) server that provides seamless integration with Neovim instances, enabling AI assistants to interact with your editor through connections and access diagnostic information via structured resources. Supports both stdio and HTTP server transport modes for different integration scenarios.

Features

  • Multi-Connection Support: Manage multiple concurrent Neovim instances
  • LSP Integration: Complete LSP workflow with code actions, hover, and diagnostics
  • Universal Document Identifier: Work with files by buffer ID, relative path, or absolute path
  • MCP Resources: Structured diagnostic data via connection-aware URI schemes
  • Multi-Transport Support: Both stdio and HTTP server transport modes
  • Dynamic Tool System ⚠️ (Experimental): User-extensible custom tools
  • Plugin Integration: Automatic setup through Neovim plugin

Installation

Use Cargo install from crates.io

cargo install nvim-mcp

Using Nix

This repository is a flake that exposes the server as its default package and app.

Run it directly, without installing anything:

nix run github:linw1995/nvim-mcp -- --version

Or install it imperatively into your profile:

nix profile install github:linw1995/nvim-mcp

Declarative setup with home-manager

The snippet below installs the Neovim plugin and the server binary, then registers it with Claude Code declaratively. No cargo install build step and no manual claude mcp add:

# flake.nix
inputs.nvim-mcp.url = "github:linw1995/nvim-mcp";
# home-manager module (inputs must be in scope)
{ pkgs, lib, inputs, ... }:
let
  nvim-mcp = inputs.nvim-mcp.packages.${pkgs.system}.default;
in
{
  programs.neovim = {
    enable = true;
    plugins = [
      (pkgs.vimUtils.buildVimPlugin {
        pname = "nvim-mcp";
        version = inputs.nvim-mcp.shortRev or "unstable";
        src = inputs.nvim-mcp;
      })
    ];
    extraLuaConfig = ''require("nvim-mcp").setup({})'';
  };

  # Requires home-manager's programs.claude-code module.
  programs.claude-code = {
    enable = true;
    mcpServers.nvim = {
      type = "stdio";
      command = lib.getExe nvim-mcp;
      args = [ "--connect" "auto" ];
    };
  };
}

This registers the nvim MCP server for every project, so you can skip the manual claude mcp add step below.

Tip: git spawns throwaway Neovim instances to edit commit, merge and rebase messages. If those load your full config they each call setup() and register an extra socket in the same git root. Guard the call so exactly one socket exists per repository:

local transient = false
for _, arg in ipairs(vim.fn.argv()) do
  if arg:match("COMMIT_EDITMSG$") or arg:match("MERGE_MSG$")
    or arg:match("git%-rebase%-todo$") or arg:match("TAG_EDITMSG$") then
    transient = true
  end
end
if not transient then
  require("nvim-mcp").setup({})
end

From Source

git clone https://github.com/linw1995/nvim-mcp.git && cd nvim-mcp
cargo install --path .

Usage Cases Collection

  • LSP Hover Translation (From #85)
  • Diagnostic Analysis and Code Fixes (From #10)
  • Smart Context Retrieval (From #86)
  • And more in Discussions

Quick Start

1. Setup Neovim Integration

With a plugin manager like lazy.nvim:

return {
    "linw1995/nvim-mcp",
    build = "cargo install --path .",
    opts = {},
}

2. Configure claude or other MCP clients

# Auto-connect to current project Neovim instances (recommended)
claude mcp add -s local nvim -- nvim-mcp --log-file . \
  --log-level debug --connect auto

# Analyze diagnostics in current Neovim instance
claude "analyze @nvim:nvim-diagnostics://"

Documentation

For detailed information, see:

Development

Basic development setup:

# Enter development shell
nix develop .

# Run tests
cargo test -- --show-output

# Build and run
cargo run -- --connect auto

See Development Guide for complete setup instructions, testing procedures, and contribution guidelines.

README fetched from the repository yesterday. The original is authoritative.

Questions

About linw1995/nvim-mcp

How do I install linw1995/nvim-mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is linw1995/nvim-mcp safe to use with an AI agent?

Its trust score is 69 out of 100 (good). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is linw1995/nvim-mcp still maintained?

Yes — the last commit was 7 days ago. The repository has 73 stars and 15 forks and 3 open issues.