跳到正文
FunCoding

nextcrm-app

The open-source, AI-native CRM you can self-host. CRM, projects, invoicing, documents, email and an MCP server for AI agents. Next.js + PostgreSQL.

Star
746
分类
数据库
许可证
MIT
最近提交
2026年12月1日

NextCRM

The open-source, AI-native CRM you can self-host

Website · Docs · Demo · Discord · Roadmap

Latest release CI MIT license Discord GitHub stars

NextCRM

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 up starts 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 board

Sales pipeline

Invoice list

Invoices

Invoice detail

Invoice detail

API tokens for AI agents in the Developer tab

API tokens for AI agents

Account detail with activities

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

AreaTools
AppNext.js (App Router), React, TypeScript, Tailwind CSS, shadcn/ui
DataPostgreSQL with pgvector, Prisma, MinIO / S3
AuthBetter Auth (email one-time codes, Google sign-in)
Jobs and emailInngest, Resend, React Email
AIVercel 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

Contributors

Contributors

Made with contrib.rocks.

Star history

Star History Chart

License

MIT

同类 MCP Server

dbx

Query databases from AI agents using connections configured in DBX.

T8t8y2/dbx32k近 7 天新增 627 个 star

Windmill

Run Windmill scripts and flows and manage jobs, schedules, resources and variables.

WIwindmill-labs/windmill19k近 7 天新增 71 个 star

MCP Toolbox for Databases

MCP Toolbox for Databases enables your agent to connect to your database.

GOgoogleapis/mcp-toolbox17k近 7 天新增 78 个 star

nightingale

Open-source, self-hosted alerting for metrics, logs, and databases. Includes a built-in AI agent and MCP server.

CCccfos/nightingale14k近 7 天新增 8 个 star

mcp

Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.

KUkubeshark/kubeshark12k近 7 天新增 2 个 star

Nhost

Let your users work with their own data through an AI assistant, limited to what they can see.

NHnhost/nhost9.4k