# lineai-mcp-server

An MCP server that feeds Lineai's software dependency data to your AI assistant, so it can tell what a code change will break.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 37
- Author: lineai-intelligence
- License: MPL-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lineai-intelligence/lineai-mcp-server
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/lineai-mcp-server

## What it does

Eight tools come with the server. Two handle impact: `lineai-method-impact` takes the method you are editing plus an optional `class` filter for ambiguous matches, and `lineai-database-impact` maps code against database entities — a column, table or view. The other six talk to Lineai's graph API: node search, dependency traversal from `seed_node_ids`, shortest-path explanation between two nodes, change-scope validation, owner lookup and a capabilities call.

Every tool accepts optional `workspace` and `materialized_view_id` arguments to scope a call. Leave both out and skip `LINEAI_WORKSPACE_NAME`, and the server falls back to the latest materialized view of its default workspace. MCP schema arguments allow snake_case aliases; request bodies to Lineai use camelCase keys.

Astral UV is required to run it, so `uv` has to be present before you connect anything. On MacOS `uvx` can fail to launch inside IDEs such as Cursor, and the workaround is cloning the repo and pointing `mcp.json` at `uv` with `--directory` instead of `uvx`. Lineai credentials go into `LINEAI_SERVER_HOST`, `LINEAI_USERNAME`, `LINEAI_PASSWORD` and `LINEAI_WORKSPACE_NAME`; the server cannot authenticate without them.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `LINEAI_SERVER_HOST`, `LINEAI_USERNAME`, `LINEAI_PASSWORD`, `LINEAI_WORKSPACE_NAME`, `LINEAI_DEBUG_MODE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env LINEAI_SERVER_HOST=<LINEAI_SERVER_HOST> --env LINEAI_USERNAME=<LINEAI_USERNAME> --env LINEAI_PASSWORD=<LINEAI_PASSWORD> --env LINEAI_WORKSPACE_NAME=<LINEAI_WORKSPACE_NAME> --env LINEAI_DEBUG_MODE=<LINEAI_DEBUG_MODE> --transport stdio lineai-mcp-server -- uvx lineai-mcp-server
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lineai-mcp-server <command>

### Codex

**Platform CLI**
```bash
codex mcp add lineai-mcp-server --env LINEAI_SERVER_HOST=<LINEAI_SERVER_HOST> --env LINEAI_USERNAME=<LINEAI_USERNAME> --env LINEAI_PASSWORD=<LINEAI_PASSWORD> --env LINEAI_WORKSPACE_NAME=<LINEAI_WORKSPACE_NAME> --env LINEAI_DEBUG_MODE=<LINEAI_DEBUG_MODE> -- uvx lineai-mcp-server
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lineai-mcp-server <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "lineai-mcp-server": {
            "command": "uvx",
            "args": [
                "lineai-mcp-server"
            ],
            "env": {
                "LINEAI_SERVER_HOST": "<LINEAI_SERVER_HOST>",
                "LINEAI_USERNAME": "<LINEAI_USERNAME>",
                "LINEAI_PASSWORD": "<LINEAI_PASSWORD>",
                "LINEAI_WORKSPACE_NAME": "<LINEAI_WORKSPACE_NAME>",
                "LINEAI_DEBUG_MODE": "<LINEAI_DEBUG_MODE>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lineai-mcp-server <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "lineai-mcp-server": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "lineai-mcp-server"
            ],
            "env": {
                "LINEAI_SERVER_HOST": "<LINEAI_SERVER_HOST>",
                "LINEAI_USERNAME": "<LINEAI_USERNAME>",
                "LINEAI_PASSWORD": "<LINEAI_PASSWORD>",
                "LINEAI_WORKSPACE_NAME": "<LINEAI_WORKSPACE_NAME>",
                "LINEAI_DEBUG_MODE": "<LINEAI_DEBUG_MODE>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lineai-mcp-server <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e LINEAI_SERVER_HOST=<LINEAI_SERVER_HOST> -e LINEAI_USERNAME=<LINEAI_USERNAME> -e LINEAI_PASSWORD=<LINEAI_PASSWORD> -e LINEAI_WORKSPACE_NAME=<LINEAI_WORKSPACE_NAME> -e LINEAI_DEBUG_MODE=<LINEAI_DEBUG_MODE> lineai-mcp-server uvx lineai-mcp-server
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lineai-mcp-server <command>

## When to use it
- find which call sites break after editing a method
- trace how a code change touches database columns and tables
- locate the owner of a node in the dependency graph
- explain the path between two nodes before a refactor
- assess risk for a proposed change from seed nodes

## Example prompts
- Assess the impact of changing the `calculateTotal` method in `OrderService`
- Which tables and columns does this change touch?
- Explain the shortest path between `from_node_id` and `to_node_id` in the dependency graph

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
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
