home / mcp / kylas crm mcp server lead only
A Python MCP server enabling lead operations for Kylas CRM through standard MCP clients with lead creation, search, and lookups.
Configuration
View docs{
"mcpServers": {
"akshaykylas94-mcp": {
"command": "python",
"args": [
"-m",
"kylas_crm_mcp"
],
"env": {
"KYLAS_API_KEY": "YOUR_API_KEY",
"KYLAS_BASE_URL": "https://api.kylas.io/v1"
}
}
}
}You can run the Kylas CRM MCP Server for lead operations to create, search, and manage leads along with resolving related data such as users, products, and pipelines. This MCP server enables any compatible MCP client to interact with Kylas CRM through a defined set of endpoints, making lead workflows efficient and centralized.
You will run the MCP server locally or in a container and connect to it with any MCP client (such as Cursor or Claude Desktop). The server exposes functions to create leads, search and filter leads, fetch field instructions, and look up related data like users, products, and pipelines. Use the client to issue calls that correspond to the available tools: get lead field instructions, create a lead with dynamic context fields, search leads by multiple criteria, and resolve owner or created-by users, product IDs, and pipeline stages.
Prerequisites you need before installing the MCP server:
Install the MCP server package in editable mode or fetch it from PyPI:
pip install -e .
# or from PyPI after publishing
pip install kylas-crm-mcpConfigure your environment with your Kylas API key and optional base URL. You will need these values when starting the server.
# Example environment setup (values to be replaced by your own)
export KYLAS_API_KEY=YOUR_API_KEY
export KYLAS_BASE_URL=https://api.kylas.io/v1Run the server as a standard MCP stdio server using Python. The server runs and communicates with MCP clients through standard input and output.
python -m kylas_crm_mcp
# or when developing from the repository root
python main.pyYou can run the MCP server in Docker by setting the API key through an environment variable.
docker build -t kylas-crm-mcp .
docker run -e KYLAS_API_KEY=your_key -i kylas-crm-mcpIf you are actively developing, you can install development dependencies and run tests to validate changes.
pip install -e ".[dev]"
pytestLicense information is available in the project repository and should be consulted for permissible use and distribution.
Fetch the lead schema including standard and custom fields, plus available picklist IDs.
Create a new lead using dynamic fields sourced from the user context.
Filter and search leads using multiple criteria to refine results.
Resolve user names to IDs for fields like owner or created by.
Resolve product names to IDs for associating products with leads.
Resolve pipelines and get their stages for open, closed, or won leads.
Retrieve the stages within a given pipeline to classify lead progress.
Find leads with no activity for a specified number of days.