IndiaMART MCP Server
Click on "Install 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., "@IndiaMART MCP ServerFetch leads from yesterday"
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.
š®š³ IndiaMART MCP Server
A fully functional Model Context Protocol (MCP) server that connects Claude AI to IndiaMART's Lead Management API. Fetch, search, analyze, and manage your IndiaMART buyer leads using natural language.
ā” Quick Install (60 seconds)
git clone https://github.com/Techmatic-sys/indiamart-mcp-server.git
cd indiamart-mcp-server
pip install -r requirements.txtThen add to your Claude Desktop config and you're done. Full setup below.
Related MCP server: Salesforce MCP Server
⨠Features
10 MCP Tools ā 8 read tools + 2 write tools for complete CRM
Pull Leads ā Fetch leads from IndiaMART for any date range
Pipeline Management ā Track leads through sales stages (new ā won)
Notes ā Attach private notes to leads for context
Real-time Webhook ā Receive leads instantly via IndiaMART's Push API
Local Database ā All leads stored in SQLite for fast offline access
Analytics ā Get stats by city, product, and date
Search ā Find leads by keyword in product or message
Export CSV ā Export leads for spreadsheets and reporting
Draft Replies ā Generate professional buyer replies instantly
Input Validation ā Pydantic schemas prevent malformed queries
Retry Logic ā Exponential backoff on API failures
Claude Desktop Ready ā Plug-and-play config included
š Prerequisites
Python 3.10+ (Download)
IndiaMART Seller Account with Lead Manager access
IndiaMART CRM API Key (see below)
Claude Desktop (optional, for AI-powered lead management)
š Installation
1. Clone or Download
git clone https://github.com/Techmatic-sys/indiamart-mcp-server.git
cd indiamart-mcp-server2. Create Virtual Environment (recommended)
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate3. Install Dependencies
# MCP server only (lightweight, 4 packages)
pip install -r requirements.txt
# Full SaaS web app (includes FastAPI, uvicorn, etc.)
pip install -r requirements-saas.txt4. Configure Environment
# Copy the example env file
cp .env.example .env # Linux/macOS
copy .env.example .env # Windows
# Edit .env with your credentialsš How to Get Your IndiaMART API Key
Log in to IndiaMART Seller Dashboard
Go to Lead Manager ā Settings (āļø icon)
Navigate to CRM Integration or API Settings
Generate or copy your CRM API Key (
glusr_crm_key)Note your GLID (Global Login ID) from your account profile
Paste both values into your
.envfile
Note: The API key gives access to your leads. Keep it secret!
ā¶ļø Running the MCP Server
# Standard run (Claude Desktop starts this automatically)
python mcp_server.py
# Check version
python mcp_server.py --version
# Health check (verify DB connectivity)
python mcp_server.py --healthš„ļø Connecting to Claude Desktop
1. Locate Claude Desktop Config
OS | Path |
Windows |
|
macOS |
|
Linux |
|
2. Add the MCP Server
{
"mcpServers": {
"indiamart": {
"command": "python",
"args": ["mcp_server.py"],
"cwd": "/ABSOLUTE/PATH/TO/indiamart-mcp-server",
"env": {
"INDIAMART_API_KEY": "your_crm_api_key_here",
"INDIAMART_GLID": "your_glid_here"
}
}
}
}Replace cwd with your actual path:
Windows:
"C:\\Users\\YourName\\indiamart-mcp-server"macOS:
"/Users/yourname/indiamart-mcp-server"Linux:
"/home/yourname/indiamart-mcp-server"
3. Restart Claude Desktop
Close and reopen Claude Desktop. You should see the IndiaMART tools available in the tools menu.
š¤ Connecting to Claude Code
Option 1: CLI (Recommended)
claude mcp add indiamart -- python /ABSOLUTE/PATH/TO/indiamart-mcp-server/mcp_server.pyThen set your environment variables:
# In your shell profile or before launching Claude Code
export INDIAMART_API_KEY="your_crm_api_key_here"
export INDIAMART_GLID="your_glid_here"Option 2: Manual Config
Add to your .claude/settings.json (project-level) or ~/.claude/settings.json (global):
{
"mcpServers": {
"indiamart": {
"command": "python",
"args": ["/ABSOLUTE/PATH/TO/indiamart-mcp-server/mcp_server.py"],
"env": {
"INDIAMART_API_KEY": "your_crm_api_key_here",
"INDIAMART_GLID": "your_glid_here"
}
}
}
}Replace the path with your actual absolute path to mcp_server.py.
Verify Connection
Once connected, ask Claude Code:
"Sync my latest IndiaMART leads"
"Show me leads from the last 24 hours"
"What are my lead statistics?"
š¦ Connecting to OpenClaw
OpenClaw is a self-hosted AI agent platform. Your IndiaMART leads become a native skill in OpenClaw, accessible from any interface OpenClaw supports.
1. Find your OpenClaw config file
OS | Path |
Linux/macOS |
|
Windows |
|
2. Add the IndiaMART skill
Open the config and add under skills.mcpServers:
{
skills: {
mcpServers: {
indiamart: {
command: "python",
args: ["mcp_server.py"],
cwd: "/absolute/path/to/indiamart-mcp-server",
env: {
INDIAMART_API_KEY: "your_crm_api_key_here",
INDIAMART_GLID: "your_glid_here"
}
}
}
}
}See
openclaw-config-example.json5at the repo root for a ready-to-copy template.
3. Restart the OpenClaw gateway
openclaw gateway restart4. Verify it loaded
openclaw status --all
# You should see "indiamart" listed with 10 toolsRemote OpenClaw (VPS / EC2)
Run the MCP server in SSE mode on your server:
python mcp_server.py --transport sse --host 0.0.0.0 --port 8000Then point your OpenClaw config to http://your-server-ip:8000.
š¬ Example Prompts
Prompt | What It Does |
"Show me all leads from the last 24 hours" | Syncs and displays recent leads |
"How many leads did I get this week and from which cities?" | Shows lead statistics |
"Search for leads asking about steel pipes" | Keyword search in product/message |
"Draft a reply for lead ID IML123456789" | Generates professional buyer reply |
"Move lead IML123 to qualified stage" | Updates pipeline stage |
"Add a note to lead IML123: Very interested in bulk order" | Attaches a note |
"Export all leads from January 2026 as CSV" | Exports leads in CSV format |
"Sync my latest IndiaMART leads" | Pulls latest leads into local DB |
š ļø Available MCP Tools (10 Total)
Read Tools (8)
Tool | Description |
| Fetch leads from IndiaMART for a date range |
| Get leads from the last N hours |
| Analytics: totals, by city, product, and date |
| Search leads by keyword |
| Full details of a specific lead |
| Draft a professional reply for a buyer |
| Export leads as CSV |
| Sync latest from IndiaMART to local DB |
Write Tools (2 ā NEW)
Tool | Description |
| Move leads through pipeline (new ā contacted ā qualified ā won/lost) |
| Attach private notes to leads for follow-up tracking |
š Project Structure
indiamart-mcp-server/
āāā š mcp_server.py ā SINGLE entry point
āāā š smithery.yaml ā Smithery.ai marketplace manifest
āāā š pyproject.toml ā Python package config
āāā š requirements.txt ā MCP only (5 packages)
āāā š requirements-saas.txt ā Web app deps
āāā š README.md ā This file
āāā š CHANGELOG.md ā Version history
āāā š LICENSE ā MIT License
āāā š .env.example ā Annotated credential guide
āāā š .gitignore ā Git ignore rules
āāā š docker-compose.yml ā Full stack Docker setup
ā
āāā š mcp_tools/ ā Core MCP Package
ā āāā __init__.py
ā āāā š§ tools.py ā 10 MCP tools with rich docstrings
ā āāā š schemas.py ā Pydantic validation + response types
ā āāā š http_client.py ā Resilient API client with retry
ā āāā š¾ database.py ā SQLite operations
ā āāā š auth.py ā API key helpers
ā āāā š³ Dockerfile ā MCP server Docker image
ā
āāā š saas/ ā SaaS Web App (FastAPI)
ā āāā ...
ā
āāā š tests/ ā Test suite
ā āāā conftest.py ā pytest fixtures
ā āāā test_tools.py ā Validation + integration tests
ā
āāā š .github/ ā CI/CD
ā āāā workflows/ci.yml
ā
āāā š docs/ ā Documentation
āāā tools.md
āāā examples.mdš§ Troubleshooting
"INDIAMART_API_KEY is not set"
Make sure you've created a
.envfile (not just.env.example)Check that the key is correct and not expired
Verify the
.envfile is in the project root directory
Claude Desktop doesn't show IndiaMART tools
Restart Claude Desktop completely (quit + reopen)
Check
claude_desktop_config.jsonfor syntax errors (valid JSON?)Verify the
cwdpath is correct andmcp_server.pyexists thereCheck Claude Desktop logs for MCP connection errors
Date format errors
Supported formats:
YYYY-MM-DD,DD-MM-YYYY,DD/MM/YYYY,DD-Mon-YYYYExample:
2026-01-15,15-01-2026,15-Jan-2026
š License
MIT License. Use freely for your business.
š¤ Contributing
Fork the repository
Create a feature branch:
git checkout -b feature/my-featureCommit changes:
git commit -m "Add my feature"Push:
git push origin feature/my-featureOpen a Pull Request
Built with ā¤ļø for Indian sellers on IndiaMART
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceIntegrates CRM data with AI agents to manage leads, track pipeline statistics, and search price catalogs via Supabase. It enables automated lead creation, stage updates, and history tracking through natural language commands.
- Flicense-qualityDmaintenanceEnables AI agents to perform secure Salesforce Lead management operations including CRUD actions, status updates, and idempotent syncing. It features TRD-compliant audit logging and OAuth 2.0 authentication to ensure reliable CRM interactions.
- AlicenseAqualityDmaintenanceEnables management of Kylas CRM lead operations, including creating leads, searching and filtering records, and resolving user, product, or pipeline IDs. It provides specialized tools for monitoring idle leads and accessing lead schema instructions through natural language.8MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to manage a real estate pipeline by adding, listing, getting, and updating leads through KPI DealFlow.49MIT
Related MCP Connectors
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
B2B lead generation, email verification, company enrichment, and agentic GTM Ops.
AI lead discovery, qualification, and outreach prep on your Leadbay account.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Techmatic-sys/Indiamart-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server