# MCP Server

> Build and connect the MakerKit MCP server for AI-assisted development.

*Canonical: https://makerkit.dev/docs/nextjs-prisma/installation/mcp-server*

---

Build the MCP server with:

```bash
pnpm --filter "@kit/mcp-server" build
```

This guide is part of the [Next.js Prisma SaaS Kit installation](./overview).

## Built Entry Point

The built server path is:

```text
tooling/mcp-server/build/index.mjs
```

## Cursor Example

```json
{
  "makerkit": {
    "type": "stdio",
    "command": "node",
    "args": ["/absolute/path/to/project/tooling/mcp-server/build/index.mjs"]
  }
}
```

## Tool Coverage

The server currently registers tools and resources for:

- env
- dev
- db
- database resources
- emails
- mailbox
- translations
- migrations
- scripts
- run-checks
- status
- prerequisites
- deps-upgrade-advisor
- PRD management
- prompts
- components

See `tooling/mcp-server/src/index.ts` for the current source of truth.

## Common Pitfalls

- Build the server before pointing your editor at it.
- Use `index.mjs`, not `index.js`.
- Use an absolute path in editor configs.

---

**Previous:** [Running the Project](./running-the-project)
