NextCRM
The open-source, AI-native CRM you can self-host
Website · Docs (docs.nextcrm.app) · Demo · Discord · Roadmap
Why NextCRM
NextCRM is a CRM you run on your own server, with your data in your own PostgreSQL database. Next to the usual sales pipeline it covers the work around it: projects, invoices, documents and email. Your AI agents can work with the same data as your team, through a built-in MCP server and with the same permissions. It is MIT-licensed and built on Next.js, so you can read, change and extend all of it.
- MCP server for AI agents. Claude, Cursor or your own agent can read and update CRM records with a personal API token.
- AI enrichment. An agent in an E2B sandbox researches a company in a real browser, fills in missing fields and finds its contacts.
- Invoicing built in. Issue invoices from the accounts you already have in the CRM, without a separate billing tool.
- Self-host with one command.
docker compose upstarts the app, PostgreSQL with pgvector, MinIO and Inngest.
Features
- CRM: accounts, contacts, leads, opportunities, contracts, products, targets and target lists.
- Activities: notes, calls, emails, meetings and tasks, linked to any CRM record.
- Projects: Kanban boards with sections, tasks and due dates.
- Invoices: invoices, credit notes, proformas and receipts, with series, tax rates, multiple currencies, payments, PDF export and sending by email.
- Documents: file storage in MinIO or any S3-compatible bucket, opened through short-lived links after an access check.
- Email client: each user connects their own mailbox over IMAP/SMTP.
- Campaigns: email campaigns with templates, follow-up steps and scheduling.
- Reports: sales, leads, accounts, activity, campaign and user reports.
- Audit log: a change history on every CRM record and an admin log that can restore deleted records.
- Search: keyword and semantic (pgvector) search across the CRM, and "Find Similar" on detail pages.
- MCP server: tools for every CRM module over streamable HTTP (tools reference).
- Plugins: a plugin SDK, with bundled plugins for Odoo and OXO ERP sync, account protection and Czech ARES / EU VIES company lookup.
- Languages: English, Czech, German, Ukrainian and Norwegian.
Screenshots
Screenshots switch between light and dark with your GitHub theme.
|
Sales pipeline |
Invoices |
|
Invoice detail |
API tokens for AI agents |
|
Account detail with activities |
|
Quick start
git clone https://github.com/pdovhomilja/nextcrm-app.git
cd nextcrm-app
cp .env.docker .env # set ADMIN_EMAIL to an address you can read
docker compose up -d # then open http://localhost:3000
Sign-in is passwordless: the first admin gets a one-time code by email. Coolify: use the Docker Compose build pack with /docker-compose-coolify.yml.
Secrets, public URLs, first login without an email provider, volumes and upgrades are covered in Install with Docker Compose, Deployment and Upgrading. To run from source, see Local setup.
Connect your AI agent
Create a token in the app under Profile → Developer → API Tokens (tokens start with nxtc__), then add NextCRM to your MCP client:
{
"mcpServers": {
"nextcrm": {
"type": "http",
"url": "https://your-nextcrm.com/api/mcp/mcp",
"headers": { "Authorization": "Bearer nxtc__your_token_here" }
}
}
}
The server uses the Streamable HTTP transport at /api/mcp/mcp; the legacy SSE transport is not supported. The same Developer tab has a Download SKILL.md button with a Claude Code skill that documents every tool (source: public/SKILL.md). See the MCP guide and the tools reference.
Tech stack
| Area | Tools |
|---|---|
| App | Next.js (App Router), React, TypeScript, Tailwind CSS, shadcn/ui |
| Data | PostgreSQL with pgvector, Prisma, MinIO / S3 |
| Auth | Better Auth (email one-time codes, Google sign-in) |
| Jobs and email | Inngest, Resend, React Email |
| AI | Vercel AI SDK, OpenAI, Anthropic, E2B, Firecrawl, MCP via mcp-handler |
Documentation
docs.nextcrm.app has a user guide, an admin guide and a developer guide, plus references generated from the code (environment variables, roles, MCP tools, plugins). The source is in apps/docs. Release notes are in CHANGELOG.md.
Roadmap
Planned work and feature requests are tracked as GitHub issues labelled enhancement. Open an issue to propose something new, or vote on an existing one with a 👍.
Contributing
Contributions are welcome. Read CONTRIBUTING.md for the setup and the workflow, and look for good first issue labels. Everyone taking part follows the Code of Conduct.
Security
Please do not report vulnerabilities in public issues. Use Report a vulnerability on GitHub; details are in SECURITY.md.
Community
- Discord: questions and discussion
- X @nextcrmapp: release news
- YouTube: feature walkthroughs, for example the invoice module
- GitHub issues: bugs and feature requests
Contributors
Made with contrib.rocks.