# Madar MCP server

> Builds a local repository graph for JavaScript and TypeScript to provide specific source code and symbol lookups for coding agents.

- Repository: https://github.com/mohanagy/madar
- Page: https://hostedmcp.org/servers/mohanagy/madar
- Transport: stdio
- Stars: 21
- License: MIT
- Latest version: 0.40.0-beta.1

## Install

### Claude Code

```sh
claude mcp add madar -- npx -y @lubab/madar
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "madar": {
      "command": "npx",
      "args": [
        "-y",
        "@lubab/madar"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "madar": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@lubab/madar"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"madar","type":"stdio","command":"npx","args":["-y","@lubab/madar"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "madar": {
      "command": "npx",
      "args": [
        "-y",
        "@lubab/madar"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add madar -- npx -y @lubab/madar
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.madar]
command = "npx"
args = ["-y", "@lubab/madar"]
```

### Gemini CLI

```sh
gemini mcp add -s user madar npx -- -y @lubab/madar
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "madar": {
      "command": "npx",
      "args": [
        "-y",
        "@lubab/madar"
      ]
    }
  }
}
```

## Tools (1)

- `retrieve`: Return the smallest deterministic evidence path for a TypeScript or JavaScript codebase question.

## FAQ

### Does Madar require an API key?

No, Madar graph generation runs locally and does not require an API key.

### What languages does Madar support for function lookup?

Madar builds a local repository graph specifically for JavaScript and TypeScript function lookup by file and symbol.

### Can Madar modify my source code?

No, the Madar command does not change your existing source code.
