Indiamart Mcp Server

io.github.Techmatic-sys由 GitHub 帳號 Techmatic-sys 發布v1.1.0更新於 Oct 24, 2026

Claude AI for IndiaMART leads - fetch, search, sync and track pipeline.

已驗證STDIO僅桌面資料與分析商業與電商

概覽

AI 產生的概覽

一個本機 MCP 伺服器,將 Claude 連接到 IndiaMART 的潛在客戶管理 API,讓助理擷取、搜尋、分析並更新買家潛在客戶。

可以做什麼
依日期範圍或最近數小時從 IndiaMART 擷取並同步潛在客戶,也可依 ID 查看單筆資料,並存入本機 SQLite 資料庫以便離線存取和依產品、留言關鍵字搜尋。顯示潛在客戶統計,包括總量以及依城市、產品和日期的分布,並可將資料匯出為 CSV。為買家草擬專業回覆。更新銷售流程階段(新名單、已聯絡、已確認、成交或流失),並為潛在客戶加上私人備註以便後續追蹤。
適用情境
適合管理買家潛在客戶的 IndiaMART 賣家,希望在 Claude Desktop、Claude Code 或相容的代理平台中以自然語言查詢、彙總和更新銷售流程,而不必登入賣家後台。
執行需求
以本機 Python 程序執行(需 Python 3.10+ 並安裝專案相依套件)。需要具備潛在客戶管理權限的 IndiaMART 賣家帳號,以及透過 INDIAMART_API_KEY 和 INDIAMART_GLID 環境變數提供的 CRM API 金鑰和 GLID。需要能存取 IndiaMART API 的網路。
安裝前請注意
CRM API 金鑰可存取你的潛在客戶資料,必須保密;它會在用戶端設定檔中以明文環境變數形式傳入。有兩個工具會寫入資料:變更潛在客戶的銷售階段和新增備註,因此會改動你在 IndiaMART 上的真實客戶紀錄。潛在客戶資料保存在本機 SQLite 資料庫中,可選的 SSE 模式還會把伺服器暴露在網路主機上。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Indiamart Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

🇮🇳 IndiaMART MCP Server

[Python 3.10+] [License MIT] [MCP Compatible] [CI] [Coverage]

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)

bash
git clone https://github.com/Techmatic-sys/indiamart-mcp-server.gitcd indiamart-mcp-serverpip install -r requirements.txt

Then add to your Claude Desktop config and you're done. Full setup below.


✨ 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

bash
git clone https://github.com/Techmatic-sys/indiamart-mcp-server.gitcd indiamart-mcp-server

2. Create Virtual Environment (recommended)

bash
python -m venv venv
# Windowsvenv\Scripts\activate
# macOS/Linuxsource venv/bin/activate

3. Install Dependencies

bash
# 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

4. Configure Environment

bash
# Copy the example env filecp .env.example .env    # Linux/macOScopy .env.example .env  # Windows
# Edit .env with your credentials

🔑 How to Get Your IndiaMART API Key

  1. Log in to IndiaMART Seller Dashboard
  2. Go to Lead Manager → Settings (⚙️ icon)
  3. Navigate to CRM Integration or API Settings
  4. Generate or copy your CRM API Key (glusr_crm_key)
  5. Note your GLID (Global Login ID) from your account profile
  6. Paste both values into your .env file

Note: The API key gives access to your leads. Keep it secret!


▶️ Running the MCP Server

bash
# Standard run (Claude Desktop starts this automatically)python mcp_server.py
# Check versionpython mcp_server.py --version
# Health check (verify DB connectivity)python mcp_server.py --health

🖥️ Connecting to Claude Desktop

1. Locate Claude Desktop Config

OSPath
Windows%APPDATA%\Claude\claude_desktop_config.json
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

2. Add the MCP Server

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:

  • 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)

bash
claude mcp add indiamart -- python /ABSOLUTE/PATH/TO/indiamart-mcp-server/mcp_server.py

Then set your environment variables:

bash
# In your shell profile or before launching Claude Codeexport 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):

json
{  "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

OSPath
Linux/macOS~/.openclaw/openclaw.json
WindowsC:\Users\YourName\.openclaw\openclaw.json

2. Add the IndiaMART skill

Open the config and add under skills.mcpServers:

json5
{  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.json5 at the repo root for a ready-to-copy template.

3. Restart the OpenClaw gateway

bash
openclaw gateway restart

4. Verify it loaded

bash
openclaw status --all# You should see "indiamart" listed with 10 tools

Remote OpenClaw (VPS / EC2)

Run the MCP server in SSE mode on your server:

bash
python mcp_server.py --transport sse --host 0.0.0.0 --port 8000

Then point your OpenClaw config to http://your-server-ip:8000.


💬 Example Prompts

PromptWhat 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)

ToolDescription
tool_get_leads_by_dateFetch leads from IndiaMART for a date range
tool_get_recent_leadsGet leads from the last N hours
tool_get_lead_statsAnalytics: totals, by city, product, and date
tool_search_leadsSearch leads by keyword
tool_get_lead_by_idFull details of a specific lead
tool_draft_replyDraft a professional reply for a buyer
tool_export_leads_csvExport leads as CSV
tool_sync_latest_leadsSync latest from IndiaMART to local DB

Write Tools (2 — NEW)

ToolDescription
tool_update_lead_stageMove leads through pipeline (new → contacted → qualified → won/lost)
tool_add_noteAttach 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 .env file (not just .env.example)
  • Check that the key is correct and not expired
  • Verify the .env file is in the project root directory

Claude Desktop doesn't show IndiaMART tools

  • Restart Claude Desktop completely (quit + reopen)
  • Check claude_desktop_config.json for syntax errors (valid JSON?)
  • Verify the cwd path is correct and mcp_server.py exists there
  • Check Claude Desktop logs for MCP connection errors

Date format errors

  • Supported formats: YYYY-MM-DD, DD-MM-YYYY, DD/MM/YYYY, DD-Mon-YYYY
  • Example: 2026-01-15, 15-01-2026, 15-Jan-2026

📄 License

MIT License. Use freely for your business.


🤝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit changes: git commit -m "Add my feature"
  4. Push: git push origin feature/my-feature
  5. Open a Pull Request

Built with ❤️ for Indian sellers on IndiaMART

來源:README.md,提交 d124c39

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分