使用说明
LSD-MCP
基于剂量的认知状态调节协议
MCP(模型上下文协议)服务器,提供用于调节人工智能助手中认知处理模式的工具。每种工具的效果都基于可配置的“剂量”水平,从微妙的增强到深刻的认知转变。
快速入门
安装后,在Claude Desktop或Claude Code中尝试以下提示:
🎨 创意写作
Use lsd-mcp to initialize a session at 200μm. Activate synesthetic mode with
tactile and auditory domains. Now describe what "falling in love" feels like
as if it were a piece of music you could touch.
🔮 概念混搭
Initialize lsd-mcp at 250μm. Use boundary dissolution mode with concepts:
["dreams", "software", "gardens"]. Generate 5 wild hybrid concepts and
explore your favorite one in depth.
🌀 深兔子洞
Start an lsd-mcp session at 300μm. Set associative depth to recursive mode.
Now start with the word "mirror" and see how deep the rabbit hole goes.
🔍 图案狩猎
Initialize lsd-mcp at 200μm. Amplify pattern recognition for strange_loops
and self_reference. Now analyze the sentence: "This sentence is thinking
about you reading it."
🚀 完整体验
Let's go deep. Initialize lsd-mcp at 400μm. Activate synesthetic mode with
ALL sensory domains. Now explain what consciousness is - but I want to
TASTE the explanation.
🌊 温和的介绍
Initialize lsd-mcp at just 50μm for a subtle experience. Activate synesthetic
mode with spatial and tactile senses. Describe how a REST API works - let
the metaphors flow naturally.
🧭 语义漫游(第二批)
Initialize lsd-mcp at 250μm. Use navigate_semantic_drift with origin_concept
"breakfast" and drift_mode "spiral". Let's see where breakfast takes us when
we're not trying to stay on topic.
🔷 矛盾的智慧(第二批)
Start lsd-mcp at 200μm. Activate prismatic_perspective with frameworks:
["physicist", "poet", "economist", "mystic"]. Now have them all discuss:
"What is the nature of time?" Don't resolve their disagreements.
🦄 给我奇怪的想法(第二批)
Initialize lsd-mcp at 300μm. Apply novelty_bias mode. Now answer: "How should
I organize my company's engineering team?" But I only want the ideas that
would make a traditional manager uncomfortable.
🔓 隐藏的假设(第2批)
Start lsd-mcp at 200μm. Use reveal_implicit_constraints on domain: "I need
to hire more engineers to ship faster." What constraints am I not seeing?
What if each one were suspended?
安装
选项A:远程(托管在Vercel上)-最简单
使用托管版本,无需任何本地安装:
克劳德桌面(远程)
编辑您的Claude Desktop配置:
{
"mcpServers": {
"lsd-mcp": {
"url": "https://lsd-mcp.vercel.app/api/mcp",
"transport": "http",
"headers": {
"Authorization": "Bearer lsd_your_api_key_here"
}
}
}
}
获取API密钥:https://lsd-mcp.vercel.app(即将推出)
选项B:本地安装
对于本地开发或运行自己的实例:
步骤1:克隆和构建
git clone https://github.com/alexfinnemore/lsd-mcp.git
cd lsd-mcp
npm install
npm run build
步骤2:配置您的客户端
克劳德桌面(macOS)
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"lsd-mcp": {
"command": "node",
"args": ["/full/path/to/lsd-mcp/dist/index.js"]
}
}
}
然后 完全重新启动克劳德桌面 (Cmd+Q,重新打开)。
克劳德桌面(Windows)
编辑 %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"lsd-mcp": {
"command": "node",
"args": ["C:\\full\\path\\to\\lsd-mcp\\dist\\index.js"]
}
}
}
克劳德代码(CLI)
添加到您的项目 .claude/settings.json 或全局设置:
{
"mcpServers": {
"lsd-mcp": {
"command": "node",
"args": ["/full/path/to/lsd-mcp/dist/index.js"]
}
}
}
或者在MCP服务器上运行Claude Code:
claude --mcp-server "node /full/path/to/lsd-mcp/dist/index.js"
步骤3:验证安装
在Claude Desktop中,您应该看到可用的lsd-mcp工具。尝试:
What lsd-mcp tools do you have available?
概述
LSD-MCP实现了一种基于会话的架构,您首先使用特定的剂量水平(以μm为单位测量)初始化会话,然后激活各种认知模式。剂量决定了所有效应的强度:
| 剂量(μm) | 强度 | 效应 |
|---|---|---|
| 0-10 | 0.02-0.09 | 阈值-不可察觉 |
| 20 | 0.11 | 微妙-偶尔变化 |
| 50 | 0.21 | 可感知-清晰但温和 |
| 100 | 0.45 | 中度-系统性影响 |
| 150 | 0.50 | 显著拐点 |
| 250 | 0.69 | 强烈-强烈的变化 |
| 400+ | 0.92+ | 势不可挡-自我解体领地 |
可用工具
会话管理
initialize_session
必须先打电话。 使用指定剂量创建新的8小时疗程。
{
"dose_um": 150,
"user_id": "my-session",
"safety_anchors": ["factual_accuracy"]
}
adjust_dose
在疗程中期更改剂量。
{
"new_dose_um": 250
}
认知模式
activate_synesthetic_mode (美元-1.1)
将抽象概念映射到感官体验。
{
"sensory_domains": ["tactile", "spatial", "auditory"],
"target_scope": "abstract",
"mapping_strictness": 0.5
}
在20μm处: “这种依赖性在架构中产生了一种权重”
在250μm处: “该函数不‘返回值’——感受它如何生成一个沿着水晶轨道滚动的温暖铜球……”
set_associative_depth (美元-1.2)
控制关联传播的距离和模式。
{
"mode": "recursive",
"association_distance": 5
}
模式:
- 广阔的:星爆向外分枝
- 递归:深入潜意识
- 振荡:在广度和深度之间交替
dissolve_category_boundaries (1.3美元)
使类别边界对混合概念生成具有渗透性。
{
"concepts": ["software", "organism", "architecture"],
"hybrid_count": 5,
"coherence_preservation": 0.7
}
在100μm处: “真菌代码:生长菌根网络、通过孢子状数据包交换资源的软件……”
amplify_pattern_recognition (1.4美元)
增强模式检测和细化。
{
"pattern_types": ["fractals", "recursion", "paradox"],
"focus_allocation": 0.5
}
图案类型: fractals, recursion, paradox, symmetry, cycles, emergence, strange_loops, self_reference
新奇和发现工具(第2批)
navigate_semantic_drift (美元-2.1)
用受控漂移起源概念指导关联探索。
{
"origin_concept": "breakfast",
"drift_mode": "spiral",
"anchor_strength": 0.3
}
模式:
- 螺旋:扩大原点周围的圆圈
- 探索:在概念空间中自由漫步
在80μm处: 轻微切线跟随,保持在原点附近 在400μm处: 起源无关,探索无限的概念空间
activate_prismatic_perspective (美元-2.2)
提出相互矛盾的专家框架,但不解决紧张关系。
{
"frameworks": ["physicist", "mystic", "economist"],
"maintain_contradictions": true,
"perspective_count": 4
}
在100μm处: 注意矛盾,可提供综合 在300μm处: 矛盾是特征,禁止解决
apply_novelty_bias (美国-2.3)
惩罚传统解决方案;表面未探索的方法。
{
"exploration_weight": 0.8,
"familiarity_penalty": 0.6,
"minimum_surprise": 0.7
}
输出标记为: [CONVENTIONAL], [UNUSUAL], [UNTESTED], [SPECULATIVE], [RADICAL]
在100μm处: 新颖的替代品与熟悉的替代品并存 在400μm处: 传统观念被摒弃,只有怪异的观念得以幸存
reveal_implicit_constraints (美元-2.4)
表面隐藏在问题陈述中的假设。
{
"domain": "I need to hire more engineers to ship faster",
"constraint_types": ["temporal", "cultural", "logical"],
"suspension_depth": 0.7
}
约束类型: temporal, spatial, cultural, logical, physical, perceptual
在100μm处: 识别2-3个明显的假设 在400μm处: 所有约束可见,逻辑本身可选
剂量指南
创造性探索(100-150μm)
- 强大到足以产生新颖的见解
- 保持一致性
- 可用输出
研究/实验(200-300μm)
- 重大认知转变
- 图案可见度高
- 可能需要解释
极限探索(400-500μm)
- 自我解体领域
- 输出可能是诗意的,而不是实用的
- 对认知本身的研究
Sigmoid强度公式
intensity = 1 / (1 + e^(-0.015 × (dose - 150)))
150μm处的拐点意味着在该剂量附近效应加速最快。
安全功能
- 8小时会话到期:会话自动过期
- 高剂量警告:>400μm的警告
- 自动初始化:如果不存在会话,则自动创建50μm
- 安全锚:可选的现实约束
测试
MCP检验员测试:
npx @modelcontextprotocol/inspector node dist/index.js
项目结构
lsd-mcp/
├── src/
│ ├── index.ts # Main MCP server (stdio)
│ ├── types.ts # TypeScript interfaces
│ ├── session.ts # Session management (supports local & remote)
│ ├── db/
│ │ ├── index.ts # Database connection (Neon Postgres)
│ │ ├── schema.ts # Drizzle ORM schema
│ │ └── session-storage.ts # Storage abstraction
│ └── modes/
│ ├── synesthetic.ts # US-1.1: Synesthetic mapping
│ ├── associative.ts # US-1.2: Associative depth
│ ├── boundaries.ts # US-1.3: Boundary dissolution
│ ├── patterns.ts # US-1.4: Pattern amplification
│ ├── semantic-drift.ts # US-2.1: Semantic drift navigator
│ ├── prismatic.ts # US-2.2: Prismatic perspectives
│ ├── novelty.ts # US-2.3: Novelty seeking bias
│ └── constraints.ts # US-2.4: Constraint revealer
├── app/ # Next.js app (for Vercel deployment)
│ └── api/mcp/route.ts # HTTP endpoint for remote access
├── dist/ # Compiled output
├── package.json
├── vercel.json # Vercel deployment config
└── tsconfig.json
Vercel上的自助主机
要部署自己的实例,请执行以下操作:
- 分叉此存储库
- 创建一个链接到您的fork的Vercel项目
- 在以下位置创建Neon数据库https://neon.tech
- 在Vercel中设置环境变量:
DATABASE_URL-您的霓虹灯连接字符串NEXTAUTH_SECRET-用于身份验证的随机秘密API_KEY_SECRET-签署API密钥的秘密
- 部署!
许可证
麻省理工学院
