lumind-mcp
Enables AI agents to browse the Lumind service catalogue, check budgets, launch GEO/SEO scans, and retrieve reports with autonomous but capped spending.
README
lumind-mcp
Make Lumind a native tool for any AI agent.
lumind-mcp is a Model Context Protocol server that
exposes the Lumind agentic-commerce platform as a handful of clean tools. Plug it into an
AI agent (Claude Desktop, an IDE, a custom agent) with a capped agent key, and the agent
can, in its own tool language, browse the Lumind service catalogue, check how much budget
it has left, launch a GEO/SEO scan on a domain, and read back the structured report.
Why it exists
AI agents are great at deciding what to do but need safe, well-described tools to actually do it. Lumind already runs the work (GEO/SEO scans) and the billing. This MCP server is the adapter between the two: every action goes through the agent's capped LUM key, so the agent can spend autonomously but can never exceed the budget the human set. The result is hands-off agentic commerce with a hard spending ceiling.
How spending stays safe
- Every call carries the agent key (
lmd_agent_...), a key the human created with a total cap and a daily cap. lumind_run_scanis the only tool that spends LUM. It is money-first: budget is debited when the scan is accepted, before any report is produced.- Budget failures come back as plain, actionable messages: insufficient LUM (402), cap reached or key revoked (403), daily cap reached (429).
- Pass an
idempotencyKeywhen retrying a scan so a retry never double-spends.
Tools
| Tool | What it does | Spends LUM? |
|---|---|---|
lumind_list_services |
List buyable services and their LUM cost. Call this first. | No |
lumind_wallet_balance |
Show balance, total/daily caps, spent and remaining budget. Check before spending. | No |
lumind_run_scan |
Launch a GEO/SEO scan on a domain (optional idempotencyKey). Returns scanId + reportToken. |
Yes |
lumind_get_report |
Fetch the structured JSON report for a scanId. |
No |
Install & build
Requires Node.js >= 18.
npm install
npm run build
Configuration
The server reads its configuration from the environment:
| Variable | Required | Default | Used by | Notes |
|---|---|---|---|---|
LUMIND_AGENT_KEY |
stdio only | , | stdio | Your capped agent key, form lmd_agent_.... Never hardcode it. Not used by the HTTP transport (each request carries its own key). |
LUMIND_API_BASE |
no | https://lumind.io |
both | Override to point at another Lumind environment. |
MCP_HTTP_PORT |
no | 8120 |
HTTP | TCP port the HTTP transport binds on 127.0.0.1. |
Use it in an MCP client
Add this to your MCP client config (e.g. claude_desktop_config.json), pointing args at the
built entrypoint:
{
"mcpServers": {
"lumind": {
"command": "node",
"args": ["/absolute/path/to/lumind-mcp/dist/index.js"],
"env": {
"LUMIND_AGENT_KEY": "lmd_agent_xxxxxxxxxxxxxxxx",
"LUMIND_API_BASE": "https://lumind.io"
}
}
}
}
After npm run build you can also run it directly:
LUMIND_AGENT_KEY=lmd_agent_xxxx node dist/index.js # stdio transport
Use it remotely over HTTP
The same four tools are also served over a remote Streamable HTTP endpoint, so any MCP client that supports remote servers can connect to a single URL with its own capped agent key , no local subprocess needed.
The key travels in each request's Authorization header (never a server env var), so one
HTTP server safely serves many isolated clients at once. Each request gets a fresh, stateless
session.
{
"mcpServers": {
"lumind": {
"type": "http",
"url": "https://mcp.lumind.io/mcp",
"headers": {
"Authorization": "Bearer lmd_agent_xxxxxxxxxxxxxxxx"
}
}
}
}
If the dedicated mcp.lumind.io host is not yet live, use the fallback path on the main
domain instead:
"url": "https://lumind.io/mcp"
Run the HTTP transport yourself:
npm run build
MCP_HTTP_PORT=8120 LUMIND_API_BASE=https://lumind.io node dist/http.js # binds 127.0.0.1
HTTP smoke test
A minimal MCP initialize against the local endpoint (replace the key with a real one):
curl -s -X POST http://127.0.0.1:8120/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Authorization: Bearer lmd_agent_xxxx" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"smoke","version":"0.0.0"}}}'
A healthy server replies 200 with an SSE data: line carrying the initialize result
(serverInfo.name = "lumind-mcp"). A request without the Authorization header is rejected
with 401. There is also a plain GET /healthz returning {"status":"ok"}.
Develop & test
npm run dev # run from source over stdio (tsx)
npm run dev:http # run the HTTP transport from source (tsx)
npm run smoke # offline smoke test: checks tool registration + a mocked call, no network
Transport
- stdio (
dist/index.js), the standard way MCP clients spawn a local server as a subprocess. One capped key per process viaLUMIND_AGENT_KEY. - Streamable HTTP (
dist/http.js), a remote, multi-client endpoint. Each request brings its own agent key in theAuthorizationheader; sessions are stateless and isolated, so N instances run independently with no shared key or cross-request state.
License
MIT.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。