Raynet CRM MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Raynet CRM MCP Server
A Model Context Protocol (MCP) server that provides seamless integration between Claude AI and Raynet CRM, enabling AI-powered CRM operations through natural language interactions.
v0.80.0 (2026-02-09): Mobile mode — 25 essential tools for field sales reps (default). Set TOOL_MODE=full for all 91 tools. See CHANGELOG.md.
Overview
This MCP server bridges Claude AI with the Raynet CRM system, allowing users to perform CRM operations through conversational interfaces like Claude Desktop, Telegram bots, or n8n workflows. Designed specifically for Polish-speaking teams with support for local business workflows.
Key Features
Natural Language CRM Operations: Manage companies, contacts, deals, activities, leads, products, offers, sales orders, and projects through conversational AI
Polish Language Support: Native Polish interface with proper diacritics handling
91 MCP Tools: Comprehensive coverage of CRM workflows including sales pipeline, quoting, and project management
Mobile Mode (default): 25 essential tools for field sales reps — reduces LLM context and focuses on field-relevant actions
Dual Transport: stdio (Claude Desktop) and HTTP/JSON-RPC (n8n, Telegram, remote deployment)
Bearer Token Auth: Secure HTTP transport with
MCP_API_KEYauthenticationEnterprise-Ready: Rate limiting, error handling, retry logic with exponential backoff
Claude Desktop Compatible: Works with Claude Desktop MCP configuration
Related MCP server: mcp-server-claude-chat
Available Tools (91 Total)
Companies (Firmy) - 6 Tools
Tool | Description |
| List companies with filters (state, role, rating, owner) |
| Search companies by name |
| Get detailed company information by ID |
| Create a new company record |
| Update company details |
| Delete a company |
Company Addresses (Adresy firm) - 5 Tools (NEW)
Tool | Description |
| List all addresses for a company |
| Add a new address to a company |
| Update an existing company address |
| Delete a company address |
| Set an address as the primary address |
Contacts (Kontakty) - 7 Tools
Tool | Description |
| List contacts with filters (company, owner) |
| Search contacts by name |
| Get contact details by ID |
| Create new contact |
| Update contact information |
| Delete a contact |
| Associate contact with company |
Contact Relationships (Relacje kontaktow) - 5 Tools (NEW)
Tool | Description |
| List all company relationships for a contact |
| Add a new company relationship to a contact |
| Update an existing contact-company relationship |
| Delete a contact-company relationship |
| Set a relationship as the primary one |
Products (Produkty) - 7 Tools (NEW)
Tool | Description |
| List products with filters (category, active status) |
| Search products by name or code |
| Get detailed product information |
| Create a new product |
| Update product details |
| Delete a product |
| Get product categories for filtering |
Deals (Szanse sprzedazy) - 8 Tools
Tool | Description |
| List deals with filters (status, company, owner, phase) |
| Search deals by name |
| Get deal details with relationships |
| Create new sales opportunity |
| Update deal status, value, probability |
| Change deal phase in sales process |
| Delete a deal |
| Get total pipeline value and statistics |
Offers (Oferty) - 9 Tools (NEW)
Tool | Description |
| List offers with filters (status, company, deal, owner) |
| Search offers by name |
| Get offer details including line items |
| Create a new offer/quote |
| Create offer with line items in one call |
| Update offer details and status |
| Delete an offer |
| Add a line item to an existing offer |
| Remove a line item from an offer |
Sales Orders (Zamowienia sprzedazy) - 10 Tools (NEW)
Tool | Description |
| List sales orders with filters |
| Search sales orders by name |
| Get sales order details including line items |
| Create a new sales order |
| Create sales order with line items |
| Convert an offer to a sales order |
| Update sales order details |
| Delete a sales order |
| Add a line item to a sales order |
| Remove a line item from a sales order |
Projects (Projekty) - 8 Tools (NEW)
Tool | Description |
| List projects with filters (status, company, owner) |
| Search projects by name |
| Get project details including participants |
| Create a new project |
| Update project details and status |
| Delete a project |
| Add a participant to a project |
| Remove a participant from a project |
Activities (Aktywnosci) - 9 Tools
Tool | Description |
| List activities (tasks, calls, meetings, emails) |
| Search activities by title |
| Get activity details by ID and type |
| Create new activity (Task/PhoneCall/Meeting/Email) |
| Update activity properties |
| Mark activity as completed |
| Delete an activity |
| Get today's scheduled activities |
| Get overdue activities |
Leads (Leady) - 9 Tools
Tool | Description |
| List leads with filters (status, phase, owner) |
| Search leads by name |
| Get lead details by ID |
| Create new lead |
| Update lead properties |
| Change lead phase |
| Delete a lead |
| Convert lead to company/contact/deal |
| Get lead statistics |
Enums (Slowniki) - 8 Tools
Tool | Description |
| Get company categories (KAM, AM, etc.) |
| Get company turnover ranges |
| Get deal categories (color-coded) |
| Get deal phases (sales process stages) |
| Get lead phases |
| Get contact/lead sources |
| Get available currencies |
| Get all lookup values at once |
Quick Start
Prerequisites
Node.js 18+ and npm
Raynet CRM account with API access
API credentials (username, API key, instance name)
Installation
# Clone the repository
git clone https://github.com/AiPulseInc/raynet-mcp-server.git
cd raynet-mcp-server
# Install dependencies
npm install
# Copy environment template
cp .env.example .env
# Configure your credentials
nano .envConfiguration
Create a .env file with your Raynet credentials:
# Required Configuration
RAYNET_INSTANCE_URL=https://app.raynet.cz/api/v2
RAYNET_INSTANCE_NAME=your-crm-instance
RAYNET_USERNAME=your-email@domain.com
RAYNET_API_KEY=your-api-key-here
# Server Configuration
PORT=3000
NODE_ENV=development
LOG_LEVEL=info
LOG_FORMAT=pretty
# Tool Mode: 'mobile' (25 tools, default) or 'full' (all 91 tools)
TOOL_MODE=mobile
# HTTP Transport Authentication (optional, for remote deployment)
# MCP_API_KEY=your-bearer-token-hereFinding Your Credentials
Instance URL: Choose based on your region:
Czech:
https://app.raynet.cz/api/v2Slovak:
https://app.raynetcrm.sk/api/v2International:
https://app.raynetcrm.com/api/v2
Instance Name: Your CRM instance identifier (found in your Raynet URL)
API Key: Generate in Raynet CRM under Settings -> API Keys
Running the Server
# Development mode (stdio transport — for Claude Desktop)
npm run dev
# Development mode (HTTP transport — for n8n, Telegram, remote)
npm run dev:http
# Production build
npm run build
# Start HTTP server (default, for deployment)
npm start
# Start stdio server (for Claude Desktop)
npm run start:stdioUsing with Claude Desktop
Add to your Claude Desktop MCP configuration (~/.config/claude/claude_desktop_config.json):
{
"mcpServers": {
"raynet": {
"command": "node",
"args": ["/path/to/raynet-mcp-server/dist/index.js"],
"env": {
"RAYNET_INSTANCE_URL": "https://app.raynet.cz/api/v2",
"RAYNET_INSTANCE_NAME": "your-instance",
"RAYNET_USERNAME": "your-email",
"RAYNET_API_KEY": "your-api-key"
}
}
}
}Mobile Mode (25 Tools for Field Sales Reps)
Set TOOL_MODE=mobile to expose only 25 essential tools optimized for reps working on mobile (Claude, Telegram, n8n). This reduces LLM context usage and focuses the AI on field-relevant actions.
{
"mcpServers": {
"raynet": {
"command": "node",
"args": ["/path/to/raynet-mcp-server/dist/index.js"],
"env": {
"TOOL_MODE": "mobile",
"RAYNET_INSTANCE_URL": "https://app.raynet.cz/api/v2",
"RAYNET_INSTANCE_NAME": "your-instance",
"RAYNET_USERNAME": "your-email",
"RAYNET_API_KEY": "your-api-key"
}
}
}
}Mobile tools include:
Area | Tools | What reps can do |
Companies (3) | search, get, create | Find & add companies |
Contacts (3) | search, get, create | Find & add contacts |
Deals (5) | list, search, get, create, update_phase | Manage pipeline |
Activities (5) | create, complete, today, overdue, search | Log & track work |
Leads (4) | search, get, create, convert | Capture & qualify leads |
Products (2) | search, get | Look up products/prices |
Offers (2) | create_with_items, get | Quick quoting |
Enums (1) | get_all_enums | Load all picklist values |
Not included in mobile mode: delete operations, address management, contact relationships, sales orders, projects, individual enum lookups, and bulk update operations. These remain available when TOOL_MODE=full.
Example Conversations (in Polish)
Creating a Company:
User: "Dodaj nowa firme TEST Sp. z o.o. z ocena A"
Assistant: [Uses raynet_create_company]
Response: "Utworzono firme TEST Sp. z o.o. (ID: 12345) z ocena A"Checking Pipeline:
User: "Jaka jest wartosc naszego pipeline?"
Assistant: [Uses raynet_get_pipeline_value]
Response: "Wartosc Pipeline
- Liczba aktywnych szans: 4
- Laczna wartosc: 42 000 zl
- Wartosc wazona: 21 000 zl"Creating an Offer:
User: "Stworz oferte dla firmy ABC z produktem X za 5000 zl"
Assistant: [Uses raynet_create_offer_with_items]
Response: "Oferta utworzona pomyslnie!
**Oferta ABC - Produkt X** (ID: 456)
- Status: Aktywna
- Wartosc: 5 000.00 PLN"Managing Projects:
User: "Pokaz aktywne projekty"
Assistant: [Uses raynet_list_projects with status filter]
Response: "Znaleziono 3 projektow:
**Wdrozenie CRM** (ID: 789)
- Status: Aktywny
- Firma: ABC Sp. z o.o.
- Okres: 2026-01-01 - 2026-03-31"Working with Leads:
User: "Pokaz statystyki leadow"
Assistant: [Uses raynet_get_lead_stats]
Response: "Statystyki Leadow
- Lacznie: 15
- Aktywne: 8
- Skonwertowane: 5
- Anulowane: 2"Project Structure
raynet-mcp-server/
├── src/
│ ├── index.ts # Entry point (stdio transport)
│ ├── server.ts # MCP server (stdio)
│ ├── server-http.ts # MCP server (HTTP/JSON-RPC)
│ ├── version.ts # Centralized version constant
│ ├── config/
│ │ └── env.ts # Environment configuration + Zod validation
│ ├── api/
│ │ ├── client.ts # Raynet API client (auth, retries, rate limiting)
│ │ ├── companies.ts # Companies service
│ │ ├── contacts.ts # Contacts service
│ │ ├── deals.ts # Deals service
│ │ ├── activities.ts # Activities service
│ │ ├── leads.ts # Leads service
│ │ ├── products.ts # Products service
│ │ ├── offers.ts # Offers service
│ │ ├── salesOrders.ts # Sales orders service
│ │ ├── projects.ts # Projects service
│ │ └── enums.ts # Enums/lookups service
│ ├── tools/
│ │ ├── index.ts # Tool registry, mobile filter, router
│ │ ├── companies.ts # Company & address MCP tools
│ │ ├── contacts.ts # Contact & relationship MCP tools
│ │ ├── deals.ts # Deal MCP tools
│ │ ├── activities.ts # Activity MCP tools
│ │ ├── leads.ts # Lead MCP tools
│ │ ├── products.ts # Product MCP tools
│ │ ├── offers.ts # Offer MCP tools
│ │ ├── salesOrders.ts # Sales order MCP tools
│ │ ├── projects.ts # Project MCP tools
│ │ └── enums.ts # Enum MCP tools
│ ├── utils/
│ │ ├── logger.ts # Winston logger with sensitive data redaction
│ │ └── errors.ts # Error classes with Polish messages
│ └── types/
│ └── index.ts # TypeScript types
├── tests/
│ └── unit/ # Unit tests (Vitest)
├── docs/
│ ├── RAYNET-API.md # API documentation
│ └── TEST_REPORT.md # Integration test results
├── .env.example # Environment template
├── CHANGELOG.md # Release history
├── TODO.md # Development roadmap
├── package.json
├── tsconfig.json
└── README.mdRate Limiting
The server implements rate limiting to comply with Raynet API limits:
Daily Limit: 24,000 requests per day
Concurrent Limit: Maximum 4 concurrent connections
Auto-Retry: Automatic retry with exponential backoff on 429 errors
Rate limit headers are tracked and logged with each request.
Security
Basic Auth: Every Raynet API request uses username + API key
Bearer Token Auth: HTTP transport protected by
MCP_API_KEYenvironment variableInstance Header:
X-Instance-Nameheader sent with every API callCredential Storage: All credentials via environment variables (never hardcoded)
Input Validation: Zod schemas validate all tool inputs before API calls
Log Redaction: Sensitive fields (API keys, tokens, passwords) automatically redacted from logs
HTTP Transport
For remote deployment (Railway, n8n, Telegram bots), the server provides an HTTP/JSON-RPC transport:
# Set authentication token
export MCP_API_KEY=your-secret-bearer-token
# Start HTTP server
npm startEndpoints:
Method | Path | Auth | Description |
|
| No | Server info (version, tool count) |
|
| No | Health check |
|
| Bearer | MCP JSON-RPC endpoint |
|
| Bearer | Session cleanup |
Example request:
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-secret-bearer-token" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'Development
# Build the project
npm run build
# Run unit tests
npm test
# Run tests in watch mode
npm run test:watch
# Type check
npm run type-check
# Lint
npm run lint
# Format code
npm run formatTesting
# Unit tests (Vitest)
npm test
# With coverage
npm run test:coverage
# Integration tests (requires Raynet credentials)
npm run test:integrationSee docs/TEST_REPORT.md for detailed integration test results.
Troubleshooting
Issue: "X-Instance-Name header missing"
# Ensure RAYNET_INSTANCE_NAME is set in .envIssue: "Rate limit exceeded (429)"
# Server auto-retries. Check daily usage (24,000 requests/day limit)Issue: "Connection timeout"
# Increase timeout in config or check network connectivityIssue: "Date format error"
# Raynet expects dates in YYYY-MM-DD HH:mm format, not ISO 8601License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Raynet CRM for the CRM platform and API
Anthropic for Claude AI and MCP protocol
Model Context Protocol community
Built for Polish CRM teams | Powered by Claude AI + MCP
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
CRM: Claude, ChatGPT or any MCP client works with records, inbox and company knowledge.
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.
Marketo MCP server for AI. 130 tools to operate Marketo from Claude, Cursor, or ChatGPT.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceFull-featured Pipedrive MCP server for Claude Desktop, enabling natural language control over deals, leads, persons, organizations, notes, activities, pipelines, and more via 34 tools and 7 prompts.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server enabling Claude chat, image analysis, live web search, and model listing through Anthropic's Messages API. Allows any MCP client to consult Claude as a tool via stdio JSON-RPC.-
- AlicenseNot gradedqualityBmaintenanceProvides MCP tools to interact with GoHighLevel CRM data, including contacts, conversations, call transcripts, broker lead overviews, pipelines/opportunities, and task creation. Supports both stdio and HTTP transports for local and remote use.ISC
- FlicenseAqualityCmaintenanceEnables local MCP clients like Claude Code and Codex CLI to interact with RD Station CRM data, including contacts, organizations, deals, pipelines, and users.16-