Skip to main content
Glama
Mhdd-24

@mhdd_24/api-dependency-mcp

by Mhdd-24
README.md
# @mhdd_24/api-dependency-mcp

Map service-to-service API dependencies.

Same architecture as [@mhdd_24/sublime-mcp](https://github.com/Mhdd-24/Sublime-MCP).

**Full documentation:** [docs/WIKI.md](./docs/WIKI.md)

---

## How it works (30 seconds)

```
You (chat) → MCP client → api-dependency-mcp → API Dependency APIs / CLIs / local tools
```

---

## Prerequisites

| Requirement | Notes |
|-------------|--------|
| **Node.js 18+** | ESM TypeScript MCP server |
| **Credentials / CLIs** | See environment variables below |

---

## Install

### Option A — npm (after publish)

```bash
npm install -g @mhdd_24/api-dependency-mcp
```

### Option B — npx

```bash
npx @mhdd_24/api-dependency-mcp
```

### Option C — clone and build

```bash
git clone https://github.com/Mhdd-24/API-Dependency-MCP.git
cd API-Dependency-MCP
npm install
npm run build
node dist/index.js
```

---

## Configure Cursor

Edit `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "apidep": {
      "command": "npx",
      "args": ["-y", "@mhdd_24/api-dependency-mcp"],
      "env": {
        "PROJECT_ROOT": "..."
      }
    }
  }
}
```

**Local development:**

```json
{
  "command": "node",
  "args": ["/absolute/path/to/API-Dependency-MCP/dist/index.js"]
}
```

---

## Environment variables

| Variable | Description |
|----------|-------------|
| `PROJECT_ROOT` | Default project/repository root |

---

## Tools

| Tool | Description |
|------|-------------|
| `apidep_status` | Show API dependency scan root. |
| `apidep_scan` | Find hardcoded service URLs/clients. |
| `apidep_map` | Build a dependency map from service:endpoint lines. |

---

## License

ISC