@lpm-registry/mcp-server
MCP server for the LPM package registry, enabling AI tools to search, browse source code, install packages, check quality, and more.
README
@lpm-registry/mcp-server
MCP (Model Context Protocol) server for the LPM package registry. Gives AI tools like Claude Code, Cursor, and other MCP-compatible agents access to search, browse source code, install packages, check quality, and more.
Quick Setup
If you have the LPM CLI installed, one command configures all your editors:
lpm mcp setup
This auto-detects Claude Code, Cursor, VS Code, Claude Desktop, and Windsurf, then writes the correct config to each. Authentication is handled via lpm login (stored in your OS keychain) — no tokens in config files.
If your CLI is configured to use a custom registry URL (for example local dev), lpm mcp setup automatically writes LPM_REGISTRY_URL into MCP config so editor-launched MCP processes hit the same registry.
Manual Setup
If you prefer manual configuration, add to your editor's MCP config:
Claude Code
{
"mcpServers": {
"lpm-registry": {
"command": "npx",
"args": ["-y", "@lpm-registry/mcp-server@latest"]
}
}
}
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"lpm-registry": {
"command": "npx",
"args": ["-y", "@lpm-registry/mcp-server@latest"]
}
}
}
VS Code (.vscode/mcp.json)
{
"servers": {
"lpm-registry": {
"command": "npx",
"args": ["-y", "@lpm-registry/mcp-server@latest"]
}
}
}
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"lpm-registry": {
"command": "npx",
"args": ["-y", "@lpm-registry/mcp-server@latest"]
}
}
}
Authentication
The server reads your token from the OS keychain (set by lpm login). No token in config files required.
Alternatively, set the LPM_TOKEN environment variable for environments without keychain access:
export LPM_TOKEN=lpm_your_token_here
Registry URL
Defaults to https://lpm.dev. Override with:
export LPM_REGISTRY_URL=https://your-registry.dev
For local development, copy .env.example to .env.local and set your local registry URL. These files are gitignored.
Available Tools
| Tool | Description | Auth | Cache |
|---|---|---|---|
lpm_search |
Search packages with natural language or structured filters | Optional | 5m |
lpm_package_info |
Get package metadata, install method, access model, and readme | Optional | 5m |
lpm_api_docs |
Get structured API docs — functions, classes, types, signatures | Optional | 5m |
lpm_llm_context |
Get LLM-optimized usage guide — quickStart, patterns, gotchas | Optional | 5m |
lpm_package_context |
Get complete package context in one call (pre-install evaluation) | Optional | 5m |
lpm_package_skills |
Get Agent Skills for building with an installed package | Optional | 5m |
lpm_docs |
Search or read LPM documentation (setup, CLI, publishing, etc.) | No | 30m |
lpm_browse_source |
Browse package source code remotely (last resort) | Yes | 5m |
lpm_add |
Add a package by extracting source files into the project | Yes | — |
lpm_install |
Install a managed dependency (JS → node_modules, Swift → Package.swift) | Yes | — |
lpm_audit |
Security audit — behavioral tags, AI findings, quality scores | Yes | — |
lpm_marketplace_info |
Marketplace pricing, licensing, and seat management | Optional | 5m |
lpm_quality_report |
Get quality score and 28-check breakdown | Optional | 5m |
lpm_search_owners |
Search for users or organizations by name | No | 5m |
lpm_packages_by_owner |
List packages published by a specific user or org | No | 5m |
lpm_pool_stats |
Get your Pool revenue earnings for the current month | Yes | 1h |
lpm_user_info |
Get authenticated user info, orgs, and usage | Yes | 5m |
Access Control
- Pool packages require a Pool subscription ($12/mo). Without one,
lpm_browse_source,lpm_add, andlpm_installreturn an error with subscription info. - Marketplace packages require a license purchase. Errors include a link to the package page.
- Public metadata (
lpm_package_info,lpm_search,lpm_quality_report) works without auth for public packages.
Troubleshooting
"No LPM token found"
Set the LPM_TOKEN environment variable in your MCP client configuration, or run lpm login first.
"Authentication required"
Some tools (lpm_browse_source, lpm_add, lpm_install) require authentication. Run lpm login or set LPM_TOKEN.
"Authentication failed"
Your token may be expired or revoked. Generate a new token at https://lpm.dev/dashboard/tokens or run lpm login.
"Cannot reach lpm.dev" Check your internet connection. If you're behind a proxy, ensure it allows HTTPS connections to lpm.dev.
"Package not found"
Verify the package name format: owner.package-name (e.g., alice.ui-kit).
"Rate limit exceeded" Source browsing is rate limited to 30 requests per minute. Wait and retry.
"Source browsing is currently disabled" The registry has temporarily disabled source browsing. Try again later.
"Response was truncated"
Use the path parameter with lpm_browse_source to request specific files or directories instead of the entire package.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。