LSD MCP Server
LSD MCP 服务器

只需通过 Claude MCP 向 LSD 提供链接,即可立即从网站直接收集大量高质量信息。
您将看到 Claude 连接到互联网并且:
编写 LSD SQL
自我纠正的 LSD SQL
运行连接到云浏览器的 LSD SQL
演示
以下是实际操作的演示:

我们给克劳德做了迷幻药LSD(迷幻药)治疗,现在它真的有效了。YouTube上有一个更长的视频
Related MCP server: MCP-Python
内容
快速入门
依赖项
要运行 MCP 服务器,您需要安装Python和uv 。要使用 MCP 服务器,您需要下载Claude 桌面应用程序或其他 MCP 客户端。
要使用 LSD,您需要注册并创建 API 密钥,以便您的查询仅与您的帐户私下关联。您可以使用 Google 帐户免费进行此操作。
给克劳德迷幻药
将此存储库克隆到您的计算机上
$ git clone https://github.com/lsd-so/lsd-mcp.git
$ cd lsd-mcp使用
LSD_USER(包含您在 LSD 上拥有帐户的电子邮件)和LSD_API_KEY包含您从个人资料页面获取的 API 密钥)更新.env文件中的值。
LSD_USER=<your_email_here>
LSD_API_KEY=<api_key_from_your_profile_page>给克劳德服用 LSD
$ uv run mcp install app.py**注意:**每次运行mcp install时,如果您第一次需要更新claude_desktop_config.json ,则需要记住在每次安装 MCP 服务器时更新uv的路径。
重新启动 Claude 桌面应用程序,现在,Claude 应该能够在 LSD 上做一些迷幻的事情。
克劳德吸食迷幻药
如果这是您在聊天会话中第一次想让 Claude 使用 LSD,因为我们不够受欢迎,不会被 Anthropic 的爬行所吸引,您需要首先利用我们的自定义提示,该提示将在我们的文档中提供作为帮助的一部分。

如果您对它的工作原理感兴趣,请参阅write_lsd_sql函数,但它只是归结为我们添加到 SCAN 关键字中的一个方便的规则,使开发人员或 LLM 能够在 markdown 中检索我们语言的文档(如果您想自己运行它)。
SCAN https://lsd.so/docs/database/language无法启动 MCP 服务器

如果您在启动 Claude 桌面时遇到类似以下消息的错误消息:
Failed to start MCP server: Could not start MCP server LSD: Error: spawn uv ENOENT首次运行 MCP 服务器
如果这是您第一次在计算机上使用 MCP 服务器,那么为了纠正上面显示的错误,请按照 添加文件系统 MCP 服务器步骤下的说明创建 Claude 桌面可以参考的claude_desktop_config.json文件。
缺少可执行文件
此外,如果您从未在计算机上执行过任何与Postgres相关的事情,那么您可能会遇到包含以下内容的错误消息:
Error: pg_config executable not found.要修复此问题,只需使用可用的包管理器将postgres安装到您的计算机上即可。如果您使用的是 Mac,则可以使用 brew 进行安装。
$ brew install postgres路径不完整
否则,也许除了上面显示的问题之外,在存储claude_desktop_config.json的位置(如果您在 Mac 上运行,则为~/Library/Application Support/Claude/claude_desktop_config.json ),修改mcpServers -> LSD下的command键的值以包含运行uv的完整路径(如果您还不知道它是什么,请在终端中运行which uv )。
{
"mcpServers": {
"LSD": {
- "command": "uv",
+ "command": "/Users/your_mac_name/.local/bin/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"psycopg2-binary",
"mcp",
"run",
"/Users/y/testing-mcp/lsd-mcp/app.py"
]
}
}
}完成后,重新启动 Claude 桌面,问题应该就能解决了。如果没有解决,请提交问题。
什么是 MCP?
MCP 是模型上下文协议 (MCP)的缩写,它在Claude与计算机可访问接口(例如文件系统或Web API)之间提供了一个通信层。如果说 LLM 的限制因素在于它脱离了“现实世界”,因为它只是一个文本生成模型,那么 MCP 则允许用户和开发者将 Claude 变为现实。
LSD 是什么?
LSD SQL 是一种 Web 领域特定语言 (DSL) ,它使开发人员能够将互联网连接到应用程序,就像连接Postgres 兼容数据库一样。它并非提出新的语义网本体或构建新的互联网,而是提供一种基于现有语言的动态声明式语言。
LSD 的设计目标是浏览器而非架构,它支持强大的并行处理,同时保留了即时表的简单性,这意味着您无需事先运行 CREATE TABLE 语句即可直接获取数据。立即免费注册 Google 帐户,开始查询互联网!
以下是使用 LSD 进行操作的示例,首次运行大约需要 30 秒
接触
如果您有任何疑问,请联系 pranav at lsd dot。
锻造工艺
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 LSD MCP 服务器:
npx -y @smithery/cli install @lsd-so/lsd-mcp --client claudeAvailable Tools
4 toolsrun_lsdC
Runs LSD SQL using user credentials in .env
Inputs: lsd_sql_code (required).
search_tripsC
Returns a list of objects with LSD trips available to the user and what each of them do.
Inputs: query (required).
use_tripC
Invokes a trip on LSD based on its identifier using the [ACCORDING TO] keywords.
Inputs: trip_identifier (required).
view_lsdC
"Returns a URL to a page where the user can view results as well as a visual playback of LSD SQL evaluation
Inputs: lsd_sql_code (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools have mostly distinct purposes: run_lsd executes SQL queries, search_trips lists available trips, use_trip invokes a specific trip, and view_lsd provides a URL for viewing results. However, run_lsd and use_trip could be slightly ambiguous since both involve executing LSD operations, but their descriptions clarify that run_lsd is for SQL queries while use_trip is for invoking trips, preventing major confusion.
The tool names follow a consistent verb_noun pattern (e.g., run_lsd, search_trips, use_trip, view_lsd), all using snake_case with clear action verbs. There are no deviations in style, making them predictable and readable, though the pattern is simple and not highly structured.
With 4 tools, the count is well-scoped for the LSD MCP server's purpose of interacting with LSD trips and SQL. Each tool serves a distinct function (executing, searching, invoking, and viewing), and there are no redundant or missing tools that would make the set feel too thin or bloated.
The tool set covers core operations for LSD interactions: executing SQL (run_lsd), discovering trips (search_trips), using trips (use_trip), and viewing results (view_lsd). However, there are notable gaps such as no update or delete operations for trips, and no tools for managing user credentials or handling errors, which could limit agent workflows in more complex scenarios.
Related MCP Connectors
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
The Dappier MCP server connects LLMs and AI agents to real-time, rights-cleared, proprietary data from trusted sources across various domains. It provides specialized knowledge through real-time web search, financial stock market and crypto data access, AI-powered content recommendations from premium publishers, and structured outputs with sub-300ms response times, enabling AI systems to respond to current events and trends.
Hosted PostgreSQL MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseBqualityDmaintenanceA server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.1311MIT
- FlicenseNot gradedqualityDmaintenanceA server that enables interaction with PostgreSQL, MySQL, MariaDB, or SQLite databases through Claude Desktop using natural language queries.1-
- AlicenseBqualityDmaintenanceA server that integrates with Claude Desktop to enable real-time web research capabilities, allowing users to search Google, extract webpage content, and capture screenshots directly from conversations.3MIT
- AlicenseNot gradedqualityDmaintenanceA server that enables AI assistants like Claude to safely run Python code and access websites, processing data for better AI understanding while providing helpful error messages.3GPL 3.0