Nei MCP Server

nei mcp server

Local serverstdio

What is the Nei MCP server?

Connect Nei to Claude, Cursor or any other MCP client and it stops being a tab you switch to. nei mcp server. The nei mcp server is what makes that connection.

What the server does

nei mcp server

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • sync_nei_project — 强制从远程 NEI 平台同步最新的项目数据,并更新本地缓存。当怀疑本地数据不是最新,或需要获取最近刚刚变更的后端接口、数据模型信息时,应首先调用此工具。
  • search_interfaces_by_uri — 根据接口定义的 URI(接口路径)模糊搜索 NEI 项目中的接口资源。
  • search_interfaces_by_url — 根据 NEI 接口详情链接中的 pid 和 id 精确搜索接口资源,例如 http://nei.example.com/interface/detail/?pid=10135&id=13015。
  • search_interfaces_by_name — 根据接口名称模糊搜索 NEI 项目中的接口资源。
  • search_groups_by_name — 根据分组名称搜索 NEI 项目中的业务分组。

Credentials and setup notes

Configuration is passed through the environment: SERVER_URL, PROJECT_ID. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Nei's toolset — sync_nei_project, search_interfaces_by_uri, search_interfaces_by_url and 2 more — is a fair guide to whether it matches your workflow. It is maintained by leila-huang; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
sync_nei_project强制从远程 NEI 平台同步最新的项目数据,并更新本地缓存。当怀疑本地数据不是最新,或需要获取最近刚刚变更的后端接口、数据模型信息时,应首先调用此工具。
search_interfaces_by_uri根据接口定义的 URI(接口路径)模糊搜索 NEI 项目中的接口资源。
search_interfaces_by_url根据 NEI 接口详情链接中的 pid 和 id 精确搜索接口资源,例如 http://nei.example.com/interface/detail/?pid=10135&id=13015。
search_interfaces_by_name根据接口名称模糊搜索 NEI 项目中的接口资源。
search_groups_by_name根据分组名称搜索 NEI 项目中的业务分组。

How to install the Nei MCP server

## mcp 使用指南

    ```bash
    {
        "mcpServers": {
            "nei-mcp-server": {
                "command": "npx",
                "args": [
                    "-y",
                    "@leila329/nei-mcp-server"
                ],
                "env": {
                    "SERVER_URL": "xxx",
                    "PROJECT_ID": "xxx"
                }
            }
        }
    }

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
SERVER_URLEndpoint or connection string the server talks to.Yes
PROJECT_IDConfiguration value read at startup.Optional

Example prompts to try

  • Use Nei to sync nei project.
  • Use Nei to search interfaces by uri.
  • Use Nei to search interfaces by url.

Frequently asked questions

It connects Nei to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (sync_nei_project, search_interfaces_by_uri, search_interfaces_by_url, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Nei directly.