MCPHub LabRegistrypdovhomilja/nextcrm-app
pdovhomilja

pdovhomilja/nextcrm app

Built by pdovhomilja โ€ข 566 stars

What is pdovhomilja/nextcrm app?

NextCRM โ€” Open-source CRM built with Next.js 16, React 19, PostgreSQL, Prisma 7, and shadcn/ui. CRM, projects, invoicing, documents, email client & AI features.

How to use pdovhomilja/nextcrm app?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add pdovhomilja/nextcrm app using the following command: npx @modelcontextprotocol/pdovhomilja-nextcrm-app 4. Restart the client and verify the new tools are active.
๐Ÿ›ก๏ธ Scoped (Restricted)
npx @modelcontextprotocol/pdovhomilja-nextcrm-app --scope restricted
๐Ÿ”“ Unrestricted Access
npx @modelcontextprotocol/pdovhomilja-nextcrm-app

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

pdovhomilja/nextcrm app FAQ

Q

Is pdovhomilja/nextcrm app safe?

Yes, pdovhomilja/nextcrm app follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is pdovhomilja/nextcrm app up to date?

pdovhomilja/nextcrm app is currently active in the registry with 566 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for pdovhomilja/nextcrm app?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<a href="https://nextcrm.app/"> <h1 align="center">NextCRM</h1> </a> <p align="center"> <img alt="OG" src="public/images/opengraph-image.png" /> </p> <p align="center"> NextCRM is an open-source CRM built with Next.js 16, React 19, TypeScript, PostgreSQL (Prisma 7), and shadcn/ui. Features CRM, project management, document storage, email client, AI-powered features, vector search, and MCP server for AI agent access. </p> <p align="center"> <a href="https://twitter.com/nextcrmapp"> <img alt="X (formerly Twitter) URL" src="https://img.shields.io/twitter/url?url=https%3A%2F%2Ftwitter.com%2Fnextcrmapp"> </a> <a href="https://github.com/pdovhomilja/nextcrm-app/blob/main/LICENSE"> <img alt="GitHub License" src="https://img.shields.io/github/license/pdovhomilja/nextcrm-app"> </a> </p> <p align="center"> <a href="#online-demo"><strong>Introduction</strong></a> ยท <a href="#whats-new"><strong>What's New</strong></a> ยท <a href="#tech-stack--features"><strong>Tech Stack + Features</strong></a> ยท <a href="#roadmap"><strong>Roadmap</strong></a> ยท <a href="#installation"><strong>Installation</strong></a> ยท <a href="#repo-activity"><strong>Repo activity</strong></a> ยท <a href="#license"><strong>License</strong></a> ยท <a href="https://discord.gg/dHyxhTEyUb"><strong>Discord</strong></a> </p> <br/>

Online Demo

You can try it here demo.nextcrm.io, login via Google account or create new user and password.


What's New

๐Ÿ“‹ CRM Activities โ€” Full Activity Tracking (NEW)

All 5 CRM entity detail pages (Accounts, Contacts, Leads, Opportunities, Contracts) now have an Activities tab with a live paginated feed of interactions:

  • Activity types โ€” Notes, Calls, Emails, Meetings, Tasks
  • Create / edit / delete โ€” inline Sheet form on every CRM entity detail page
  • Paginated feed โ€” compound cursor pagination with createdAt + id for stable ordering
  • Linked records โ€” activities attach to multiple entities via crm_ActivityLinks (e.g. a call can reference both a Contact and an Opportunity)
  • Real-time revalidation โ€” server actions revalidate the correct path after every mutation

๐Ÿ•ต๏ธ Audit Log & History โ€” Full Change Trail (NEW)

Every CRM entity (Accounts, Contacts, Leads, Opportunities, Contracts) now tracks its full change history:

  • History tab โ€” per-entity timeline of all field changes, shown on every detail page with AuditTimeline + AuditEntry components
  • Soft delete โ€” records are never hard-deleted; deletedAt column preserves data while hiding it from normal queries
  • Admin audit log โ€” /admin/audit-log shows a global filterable table of every change across all entities, with restore support for soft-deleted records
  • Diff engine โ€” diffObjects utility computes before/after diffs and stores structured JSON in the audit record

๐Ÿง  AI Enrichment โ€” E2B Sandboxed Agent + Flexible API Key Management (NEW)

Target and Contact enrichment now runs inside an E2B cloud sandbox โ€” a full Linux environment with a real browser (Chrome) โ€” replacing the previous Firecrawl API path:

  • Real-browser research โ€” the agent navigates JS-heavy sites, LinkedIn public profiles, and paginated results that a simple API call cannot reach
  • LLM tool-use loop โ€” Claude Sonnet 4.6 drives the research with tools: browser_open, browser_snapshot, browser_click, browser_extract, web_search
  • C-level contact discovery โ€” given only a company name, the agent finds all discoverable C-level contacts and creates crm_Target_Contact records automatically
  • Context-aware strategy โ€” agent skips research it doesn't need (e.g. already has a website โ†’ skips domain discovery)
  • Confidence scoring โ€” fields below 0.6 confidence are discarded; only empty target fields are overwritten
  • 5-minute timeout per target โ€” partial results are applied even if the agent times out
  • Fan-out โ€” after company enrichment, each discovered contact is enriched independently via a separate Inngest job

API keys are managed through a 3-tier priority system so the app runs without any keys in .env:

ENV variable  โ†’  Admin system-wide  โ†’  User profile
(highest)                              (lowest)
  • Admin panel (/admin/llm-keys) โ€” set system-wide keys for OpenAI, Firecrawl, Anthropic, and Groq. Keys are encrypted at rest (AES-256-GCM).
  • Profile settings (/profile?tab=llms) โ€” users configure their own keys as a fallback.
  • Graceful degradation โ€” enrichment buttons show an informative dialog when no key is available at any tier.

Migration note: The old openAi_keys table is replaced by the new ApiKeys table. Run pnpm prisma migrate deploy to apply the migration.


๐Ÿค– MCP Server โ€” AI Agent Access to CRM Data (NEW)

NextCRM now ships with a built-in Model Context Protocol server, letting AI agents (Claude, Cursor, custom agents) read and write CRM data directly.

25 tools across 5 CRM modules โ€” Accounts, Contacts, Leads, Opportunities, Targets:

  • list_* โ€” paginated list scoped to the authenticated user
  • get_* โ€” single record by ID
  • search_* โ€” full-text substring search
  • create_* โ€” create new records
  • update_* โ€” partial update by ID

Authentication: Generate Bearer tokens (nxtc__...) from your profile page. Tokens are SHA-256 hashed โ€” the raw value is shown only once and never stored.

Connect your MCP client:

{
  "mcpServers": {
    "nextcrm": {
      "url": "https://your-nextcrm.com/api/mcp/sse",
      "headers": { "Authorization": "Bearer nxtc__your_token_here" }
    }
  }
}

Both SSE (/api/mcp/sse) and HTTP (/api/mcp/http) transports are supported.


๐Ÿ” Vector Search + Semantic Similarity (NEW)

CRM records (Accounts, Contacts, Leads, Opportunities) are automatically embedded using OpenAI text-embedding-3-small via Inngest background jobs.

  • Unified search โ€” combines keyword (full-text) + semantic (pgvector cosine similarity) results in a single grouped UI
  • Find Similar โ€” every CRM detail page has a "Find Similar" button that surfaces semantically related records across the same module
  • Backfill โ€” Inngest function to embed all existing records on demand
  • Auto-embed โ€” new and updated records are embedded automatically

Powered by pgvector (PostgreSQL extension) with HNSW indexes for fast approximate nearest-neighbor search.


๐ŸŽฏ CRM Targets (NEW)

New Targets module for managing sales targets and target lists โ€” full CRUD, detail view, list management, and MCP tools included.


๐Ÿ”Ž Unified Search (NEW)

Global search across all CRM entities from a single search bar โ€” grouped results by entity type, loading skeleton, collapsible sections, and combined keyword + semantic scoring.


Tech Stack + Features

Frameworks

  • Next.js 16 โ€“ React framework for building performant apps with the best developer experience (App Router)
  • next-auth 4.x โ€“ Handle user authentication with ease with providers like Google, GitHub, and Credentials
  • Prisma 7.5 โ€“ TypeScript-first ORM for PostgreSQL
  • React Email 2.x โ€“ Versatile email framework for efficient and flexible email development

Platforms

  • PostgreSQL 17+ โ€“ Powerful open-source relational database with pgvector extension for AI embeddings
  • Resend โ€“ A powerful email framework for streamlined email development together with react.email
  • UploadThing + S3-compatible storage (DigitalOcean Spaces) โ€“ for document file storage
  • Inngest โ€“ Background job queue for async embedding and AI workflows

AI & MCP

  • OpenAI API โ€“ text-embedding-3-small for vector embeddings; GPT for project management assistant
  • Anthropic API โ€“ Claude Sonnet 4.6 drives the E2B enrichment agent tool-use loop
  • Vercel AI SDK 6.x โ€“ Unified AI interface
  • pgvector โ€“ PostgreSQL vector extension for similarity search (HNSW indexes)
  • E2B โ€“ Cloud sandboxes with real Chrome browser for AI-driven web research and contact enrichment
  • MCP Server โ€“ 25 CRM tools via @vercel/mcp-adapter, Bearer token auth, SSE + HTTP transports

Data fetching

  • SWR โ€“ React Hooks library for remote data fetching
  • Axios โ€“ Promise based HTTP client for the browser and node.js
  • Server Actions โ€“ for server side data fetching and mutations
  • TanStack React Table โ€“ for data tables and server/client side data fetching

UI

  • Tailwind CSS v4 โ€“ Utility-first CSS framework for rapid UI development
  • shadcn/ui โ€“ Re-usable components built using Radix UI and Tailwind CSS
  • Tremor โ€“ A platform for creating charts
  • Lucide React โ€“ Beautiful and consistent open-source icons

i18n

  • next-intl โ€“ Internationalization for Next.js โ€” English, Czech, German, Ukrainian

hero

Roadmap

  1. โœ… Docker version โ€” complete bundle to run NextCRM on-premise
  2. โœ… Upgrade to Next.js 16 โ€” running on Next.js 16 with React 19
  3. โœ… i18n / localization โ€” 4 languages (English, Czech, German, Ukrainian)
  4. โœ… Email client โ€” IMAP/SMTP email client built in
  5. โœ… PostgreSQL migration โ€” migrated from MongoDB to PostgreSQL 17+
  6. โœ… pgvector embeddings โ€” automatic semantic embeddings via Inngest + OpenAI
  7. โœ… Vector similarity search โ€” "Find Similar" on all CRM entity detail pages
  8. โœ… Unified search โ€” keyword + semantic search across all CRM modules
  9. โœ… CRM Targets module โ€” sales target and target list management
  10. โœ… MCP server โ€” 25 CRM tools for AI agent access via Bearer token auth
  11. โœ… AI enrichment โ€” E2B sandboxed agent (real browser + Claude Sonnet) for target/contact enrichment; C-level contact discovery; 3-tier API key management (ENV โ†’ admin โ†’ user)
  12. โœ… Audit log & history โ€” soft delete + full field-level change trail on all CRM entities; global admin audit log page
  13. โœ… CRM Activities โ€” notes, calls, emails, meetings, tasks linked to any CRM entity; paginated feed on all detail pages
  14. ๐Ÿ”„ More AI powered features โ€” daily summary of tasks and projects
  15. ๐Ÿ“‹ Email campaigns management โ€” integration with MailChimp and Listmonk
  16. ๐Ÿ“‹ Testing expansion โ€” Jest + Playwright coverage (contributions welcome!)
  17. ๐Ÿ”„ Fix all TypeScript any types โ€” ongoing cleanup

Emails

We use resend.com + react.email as primary email sender and email templates.

Reports

We use Tremor charts as a tool for creating charts in NextCRM

hero

Video (YouTube channel with functions showcase)

Youtube Channel </br> Invoice module (video)

Documentation

Available soon at: http://docs.nextcrm.io

Installation

<details><summary><b>Show instructions</b></summary>
  1. Clone the repository:

    git clone https://github.com/pdovhomilja/nextcrm-app.git
    cd nextcrm-app
    
  2. Install the preset:

    pnpm install
    
  3. Copy the environment variables to .env

    cp .env.example .env
    
    cp .env.local.example .env.local
    

    .env

    • You will need a PostgreSQL connection string for Prisma ORM
    • Example: DATABASE_URL="postgresql://user:pass@localhost:5432/nextcrm?schema=public"
    • Requires PostgreSQL 17+ with the pgvector extension enabled

    .env.local

    • NextAUTH - for auth
    • uploadthings - for storing files
    • openAI - for embeddings and project management assistant (optional โ€” can be set via admin panel instead)
    • Firecrawl - for contact/target enrichment (optional โ€” can be set via admin panel instead)
    • SMTP and IMAP for emails
    • Inngest - for background embedding jobs
    • EMAIL_ENCRYPTION_KEY - required for encrypting API keys stored in the database
  4. Init Prisma

     pnpm prisma generate
     pnpm prisma migrate deploy
    
  5. Import initial data from initial-data folder

    pnpm prisma db seed
    
  6. Run app on local

    pnpm run dev
    
  7. http://localhost:3000

</details>

Docker installation

Link to Docker HUB

<details> <summary><b>Show instructions</b></summary>
  1. Make sure you have docker and docker-compose installed

  2. Prepare .env and .env.local files

    .env (for Prisma URI string) and .env.local (all others ENVs) file inside docker folder
    
  3. build docker image

    docker build -t nextcrm .
    
  4. Run docker container

    docker run -p 3000:3000 nextcrm
    
  5. http://localhost:3000

</details>

Contact

www.dovhomilja.cz </br> <img alt="X (formerly Twitter) URL" src="https://img.shields.io/twitter/url?url=https%3A%2F%2Ftwitter.com%2Fdovhomilja">

Contributing

We are open to the NextCRM community contributions. Every contribution is welcome.

Issues

  • Open an issue if you find a bug or have a suggestion for improvements.

NextCRM Super heroes

<a href="https://github.com/pdovhomilja/nextcrm-app/graphs/contributors"> <img src="https://contrib.rocks/image?repo=pdovhomilja/nextcrm-app" /> </a>

Made with contrib.rocks.

Repo Activity

Alt

Star History

Star History Chart

License

Licensed under the MIT license.

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "pdovhomilja-nextcrm-app": { "command": "npx", "args": ["pdovhomilja-nextcrm-app"] } } }