Supports containerized deployment with a provided Dockerfile example for running the server in production environments
Supports environment variable configuration through .env files for storing Vtiger CRM credentials and server settings
Supports deployment behind Nginx as a reverse proxy, with configuration for WebSocket connections and health/info endpoints
Uses npm for package management and provides npm scripts for building, running, and developing the application
Supports deployment and process management through PM2, with configuration for running as an HTTP transport service
Provides full type safety for interacting with Vtiger CRM APIs, offering robust type checking for API requests and responses
Vtiger CRM MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with Vtiger CRM through its REST API. Supports both stdio and HTTP/WebSocket transports for local and remote usage.
Features
- Dual Transport Support: stdio for local usage, HTTP/WebSocket for remote access
- Complete Vtiger CRM API integration
- TypeScript support with full type safety
- Comprehensive CRUD operations
- Advanced querying and search capabilities
- Proper authentication handling
- Error handling and validation
- Health check and info endpoints
- CORS support for web clients
Installation
- Clone the repository
- Install dependencies:
- Configure environment variables:
- Build the project:
Usage
Option 1: Stdio Transport (Local/Process-based)
Option 2: HTTP Transport (Remote/Network-based)
Development Mode
Configuration
Environment Variables
Command Line Arguments
Remote Access Endpoints
When running with HTTP transport:
- WebSocket MCP Endpoint:
ws://your-server:3001/mcp
- Health Check:
http://your-server:3001/health
- Server Info:
http://your-server:3001/info
MCP Client Configuration
For Local MCP Clients (stdio)
For Remote MCP Clients (WebSocket)
Available Tools
vtiger_list_modules
: List all available modulesvtiger_describe_module
: Get module metadata and fieldsvtiger_create_record
: Create new recordsvtiger_retrieve_record
: Get specific records by IDvtiger_update_record
: Update existing recordsvtiger_delete_record
: Delete recordsvtiger_query
: Execute custom queriesvtiger_search
: Search across modulesvtiger_sync
: Get modified records
API Examples
Using the MCP Client (Programmatic)
Health Check
Response:
Server Info
Response:
Deployment
Docker Deployment
Create a Dockerfile
:
PM2 Deployment
Nginx Reverse Proxy
Security Considerations
- Network Security: When exposing via HTTP, ensure proper firewall rules
- HTTPS: Use HTTPS/WSS in production with proper SSL certificates
- Authentication: Consider adding authentication middleware for HTTP transport
- CORS: Configure CORS appropriately for your use case
- Rate Limiting: Implement rate limiting for production deployments
Monitoring
The server provides several monitoring endpoints:
/health
- Basic health check/info
- Server information and capabilities- Console logs for connection events and errors
Development
Troubleshooting
Common Issues
- Connection Refused: Check if the server is running and port is accessible
- Authentication Errors: Verify Vtiger credentials in
.env
- WebSocket Connection Failed: Ensure firewall allows WebSocket connections
- CORS Issues: Check CORS configuration for web clients
Debug Mode
Set DEBUG=1
environment variable for detailed logging:
This server cannot be installed
A Model Context Protocol server that provides tools for interacting with Vtiger CRM through its REST API.
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server implementation for interacting with Salesforce through its REST API.Last updated -410TypeScript
- -securityFlicense-qualityA Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.Last updated -462Python
- -securityAlicense-qualityA Model Context Protocol server implementation that wraps Harvest's REST API, enabling seamless interaction with Harvest's time tracking, client, project, and reporting features through MCP clients.Last updated -3PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that provides standardized interfaces for interacting with Ollama API, offering JSON responses, error handling, and intelligent guidance for LLM-based API calls.Last updated -PythonMIT License