mcp-perfex-crm
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-perfex-crmlist all overdue invoices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Perfex CRM - High-Performance MCP Server for Perfex CRM
๐ฏ Overview
MCP Perfex CRM is a high-performance Model Context Protocol (MCP) server that provides direct and optimized access to Perfex CRM's MySQL database. This project offers a high-performance alternative to traditional REST APIs, with focus on code quality, security, and maintainability.
โ Current Status - v1.0.0-stable
14 functional modules with 186+ tested tools covering comprehensive Perfex CRM functionality
Zero warnings in ESLint and TypeScript
Complete CI/CD with GitHub Actions
Robust type system implemented
Complete API documentation
Related MCP server: mysql-mcp-server
๐ Features
๐ฅ Performance: Direct MySQL access, 10-100x faster than REST API
๐ก๏ธ Security: Prepared statements, input validation, read-only connections
๐ Modular: Extensible architecture with independent modules
๐งช Tested: Jest testing framework with growing coverage
๐ Documented: Complete API documentation with examples
๐ CI/CD: Automated pipeline with quality gates
๐ฆ Available Modules
Core (100% Functional)
Customers - Complete customer management
Estimates - Estimates and proposals
Invoices - Complete invoice management with payments and statistics (8 tools)
Leads - Lead management, conversion, and lifecycle tracking (9 tools)
Projects - Project management
Tasks - Task control
Contracts - Contract management
Payments - Payment processing
Expenses - Expense control
Tickets - Complete support system with delete/export tools
Reporting
Financial Reporting - Advanced financial reports
Resource Management - Resource management
Timesheets - Time tracking
Utilities
Subscriptions - Subscription management
Credit Notes - Credit notes
๐ ๏ธ Installation
Option 1: NPM Installation (Recommended)
npm install -g mcp-perfex-crmOption 2: Local Installation
# Clone repository
git clone https://github.com/YOUR_USERNAME/mcp-perfex-crm
cd mcp-perfex-crm
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit .env with your MySQL settings
# Compile project
npm run build
# Run tests
npm testโ๏ธ Configuration
1. Database Configuration
# .env
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=perfex_readonly
MYSQL_PASSWORD=your_password
MYSQL_DATABASE=perfex_crm
# Log optimization for production
LOG_LEVEL=error
NODE_ENV=production
ENABLE_AUDIT_LOG=false2. N8N Integration
MCP Perfex CRM is fully compatible with N8N for workflow automation:
# Install as N8N tool
npm install -g mcp-perfex-crm
# Or use in N8N Docker
FROM n8nio/n8n:latest
RUN npm install -g mcp-perfex-crmN8N Workflow Example:
{
"nodes": [
{
"parameters": {
"command": "mcp-perfex-crm",
"options": {
"env": {
"MYSQL_HOST": "your-db-host",
"MYSQL_USER": "readonly_user",
"MYSQL_PASSWORD": "secure_password",
"MYSQL_DATABASE": "perfex_crm"
}
}
},
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [250, 300],
"id": "perfex-crm-tool"
}
]
}3. Claude Desktop Integration
{
"mcpServers": {
"mcp-perfex-crm": {
"command": "mcp-perfex-crm",
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "perfex_readonly",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "perfex_crm"
}
}
}
}For local installation:
{
"mcpServers": {
"mcp-perfex-crm": {
"command": "node",
"args": ["/path/to/mcp-perfex-crm/dist/index.js"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "perfex_readonly",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "perfex_crm"
}
}
}
}๐ Usage
Example: List Customers
// Via MCP
const result = await use_mcp_tool({
server_name: "mcp-perfex-crm",
tool_name: "get_customers",
arguments: {
limit: 10,
active: true
}
});Example: Create Project
const result = await use_mcp_tool({
server_name: "mcp-perfex-crm",
tool_name: "create_project",
arguments: {
name: "New Website",
client_id: 123,
start_date: "2025-02-01",
billing_type: "fixed_rate",
project_cost: 5000
}
});๐งช Development
# Development mode with hot reload
npm run dev
# Run linter
npm run lint
# Format code
npm run format
# Run tests with coverage
npm run test:coverage
# Production build
npm run build๐ Code Quality
โ TypeScript: Robust type system
โ ESLint: Zero warnings, strict configuration
โ Prettier: Consistent formatting
โ Jest: Configured testing framework
โ GitHub Actions: Automated CI/CD
โ Optimized Logging: Production configuration with minimal context impact
๐ Security
All queries use prepared statements
Input validation on all tools
Read-only connections by default
Audit logs for sensitive operations
Masks for sensitive data in logs
๐ค Contributing
Contributions are welcome! Please:
Fork the project
Create a feature branch (
git checkout -b feature/AmazingFeature)Commit your changes (
git commit -m 'Add some AmazingFeature')Push to the branch (
git push origin feature/AmazingFeature)Open a Pull Request
Code Standards
Follow the configured TypeScript/ESLint style
Add tests for new functionality
Keep documentation updated
Zero warnings is mandatory
๐ Roadmap
v1.0.1 (February 2025)
Enhanced error handling
Performance metrics dashboard
Automated documentation generation
Extended test coverage
v1.1.0 (Q1 2025)
Test coverage >80%
Complete TypeScript strict mode
Webhook support
Intelligent caching
v1.2.0 (Q2 2025)
Analytics dashboard
Batch operations
GraphQL gateway
Enhanced multi-tenant support
๐ Documentation
API Reference - Complete API documentation
Type System - Type system guide
CI/CD Setup - Pipeline configuration
Contributing - Contribution guide
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐จโ๐ป Author
Emanuel Almeida
GitHub: @YOUR_USERNAME
LinkedIn: Emanuel Almeida
Email: your.email@example.com
๐ Acknowledgments
Anthropic team for the Model Context Protocol
Perfex CRM community
All contributors
๐ Performance Benchmarks
Operation | REST API | MCP Direct | Improvement |
Get Customers (100) | 2.3s | 0.23s | 10x faster |
Create Project | 1.8s | 0.18s | 10x faster |
Complex Query | 5.2s | 0.52s | 10x faster |
๐๏ธ Architecture
mcp-perfex-crm/
โโโ src/
โ โโโ modules/ # Business logic modules
โ โโโ tools/ # MCP tools implementation
โ โโโ types/ # TypeScript definitions
โ โโโ utils/ # Utility functions
โ โโโ connections/ # Database connections
โโโ tests/ # Test suites
โโโ docs/ # Documentation
โโโ examples/ # Usage examplesโญ If this project helped you, please consider giving it a star!
๐ Ready to supercharge your Perfex CRM integration? Get started now!
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for SmartAgent CRM: leads, tasks, sales pipelines, property listings
Unified MCP server for 70+ eCommerce platforms: products, orders, customers, and more.
API-first CRM for LLMs - contacts, companies, deals and activities over a native MCP server.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA high-performance MCP server that enables AI assistants to safely interact with MySQL databases through secure CRUD operations, schema inspection, and parameterized queries with built-in SQL injection prevention.1-
- AlicenseNot gradedqualityDmaintenanceA production-ready MCP server for MySQL database operations, providing secure HTTP endpoints for read-only queries, performance analysis, and server monitoring.109 npm18MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server for ERPNext providing generic, doctype-agnostic access to any ERPNext document type with robust permission controls, audit logging, and enterprise-grade security.MIT
- AlicenseNot gradedqualityCmaintenanceA comprehensive MCP server that connects AI systems to GoHighLevel CRM, providing 269+ tools for contact management, messaging, calendar, sales, and automation.10 npmMIT