Connects Claude to IndiaMART's Lead Management API with 10 tools covering the full CRM workflow. You can pull leads by date range, search by keyword across products and messages, track pipeline stages from new to won, attach notes, and export to CSV. The server maintains a local SQLite cache for offline access and includes webhook support for real-time lead ingestion. Ships with retry logic and Pydantic validation. Useful if you're managing IndiaMART buyer inquiries and want to triage, analyze, and draft replies conversationally instead of clicking through their web dashboard. Includes ready-to-use configs for Claude Desktop, Claude Code, and OpenClaw.
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.
git clone https://github.com/Techmatic-sys/indiamart-mcp-server.git
cd indiamart-mcp-server
pip install -r requirements.txt
Then add to your Claude Desktop config and you're done. Full setup below.
git clone https://github.com/Techmatic-sys/indiamart-mcp-server.git
cd indiamart-mcp-server
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
# MCP server only (lightweight, 4 packages)
pip install -r requirements.txt
# Full SaaS web app (includes FastAPI, uvicorn, etc.)
pip install -r requirements-saas.txt
# Copy the example env file
cp .env.example .env # Linux/macOS
copy .env.example .env # Windows
# Edit .env with your credentials
glusr_crm_key).env fileNote: The API key gives access to your leads. Keep it secret!
# 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
| OS | Path |
|---|---|
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
{
"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:
"C:\\Users\\YourName\\indiamart-mcp-server""/Users/yourname/indiamart-mcp-server""/home/yourname/indiamart-mcp-server"Close and reopen Claude Desktop. You should see the IndiaMART tools available in the tools menu.
claude mcp add indiamart -- python /ABSOLUTE/PATH/TO/indiamart-mcp-server/mcp_server.py
Then 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"
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.
Once connected, ask Claude Code:
OpenClaw is a self-hosted AI agent platform. Your IndiaMART leads become a native skill in OpenClaw, accessible from any interface OpenClaw supports.
| OS | Path |
|---|---|
| Linux/macOS | ~/.openclaw/openclaw.json |
| Windows | C:\Users\YourName\.openclaw\openclaw.json |
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.
openclaw gateway restart
openclaw status --all
# You should see "indiamart" listed with 10 tools
Run the MCP server in SSE mode on your server:
python mcp_server.py --transport sse --host 0.0.0.0 --port 8000
Then point your OpenClaw config to http://your-server-ip:8000.
| 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 |
| Tool | Description |
|---|---|
tool_get_leads_by_date | Fetch leads from IndiaMART for a date range |
tool_get_recent_leads | Get leads from the last N hours |
tool_get_lead_stats | Analytics: totals, by city, product, and date |
tool_search_leads | Search leads by keyword |
tool_get_lead_by_id | Full details of a specific lead |
tool_draft_reply | Draft a professional reply for a buyer |
tool_export_leads_csv | Export leads as CSV |
tool_sync_latest_leads | Sync latest from IndiaMART to local DB |
| Tool | Description |
|---|---|
tool_update_lead_stage | Move leads through pipeline (new → contacted → qualified → won/lost) |
tool_add_note | Attach private notes to leads for follow-up tracking |
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
.env file (not just .env.example).env file is in the project root directoryclaude_desktop_config.json for syntax errors (valid JSON?)cwd path is correct and mcp_server.py exists thereYYYY-MM-DD, DD-MM-YYYY, DD/MM/YYYY, DD-Mon-YYYY2026-01-15, 15-01-2026, 15-Jan-2026MIT License. Use freely for your business.
git checkout -b feature/my-featuregit commit -m "Add my feature"git push origin feature/my-featureBuilt with ❤️ for Indian sellers on IndiaMART
com.mcparmory/google-search
io.github.pipeworx-io/brave-search
marcopesani/mcp-server-serper
brave/brave-search-mcp-server
com.mcparmory/google-search-console
acamolese/google-search-console-mcp