Token导航 LogoToken导航TokenDH.com
Strata MCP logo
搜索检索未说明官方级别未说明来源级核验

Strata MCP

MCP Server

Strata-MCP是为AI代理设计的模型上下文协议服务器,提供存储、检索、搜索、删除、日志记录、分支管理、历史查询和状态检查等8种默认工具,适用于数据管理和版本控制场景。

工具数

8

提示词数

0

GitHub Stars

0

资源数

0
AI代理工具版本控制RustClaude数据管理Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

stratalab

提供方

stratalab

最后核验

2026/5/17 20:19

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

mcp地层

MCP(模型上下文协议)服务器 地层 数据库。

专为AI代理设计。默认情况下有8个意图驱动的工具——存储、调用、搜索、忘记、日志、分支、历史、状态。没有公开数据库概念。

安装

来源

git clone https://github.com/strata-ai-labs/strata-mcp.git
cd strata-mcp
cargo build --release

二进制文件将位于 target/release/strata-mcp.

快速开始

使用克劳德桌面

添加到您的 claude_desktop_config.json:

{
  "mcpServers": {
    "strata": {
      "command": "/path/to/strata-mcp",
      "args": ["--db", "/path/to/your/data", "--auto-embed"]
    }
  }
}

这为AI代理提供了8个具有自动语义搜索功能的工具。就这样

使用克劳德代码

添加到您的 .mcp.json:

{
  "mcpServers": {
    "strata": {
      "command": "/path/to/strata-mcp",
      "args": ["--db", ".strata", "--auto-embed"]
    }
  }
}

记忆中(短暂)

对于没有持久性的测试:

{
  "mcpServers": {
    "strata": {
      "command": "/path/to/strata-mcp",
      "args": ["--cache", "--auto-embed"]
    }
  }
}

命令行选项

strata-mcp [OPTIONS]

Options:
  --db 
       Path to the database directory
  --cache           Use an in-memory database (no persistence)
  --read-only       Open database in read-only mode
  --auto-embed      Enable automatic text embedding for semantic search
-v, --verbose     Enable debug logging to stderr
  -h, --help        Print help
  -V, --version     Print version

代理工具(默认--8个工具)

这些是AI代理看到的工具。意图驱动命名,不暴露数据库内部。

工具意图描述
strata_store“记住这一点”使用密钥存储数据。自动嵌入文本以进行语义搜索。
strata_recall“这里存储了什么?”按键检索数据。通过以下方式支持时间旅行 as_of.
strata_search“查找相关内容”在所有数据中进行自然语言搜索。混合关键字+语义。
strata_forget“删除此”按键删除数据。
strata_log“This happened”附加一个不可变事件。按类型排序、打上时间戳、分组。
strata_branch“独立工作”创建、切换、分叉、合并、差异、删除分支。
strata_history“发生了什么变化?”键的版本历史记录,或分支的时间范围。
strata_status“发生什么事了?”数据库信息、当前分支、自动嵌入状态。

对话示例

User: Store my preferences
Agent: [calls strata_store with key="preferences", value={"theme": "dark", "language": "en"}]

User: Find anything about themes
Agent: [calls strata_search with query="theme settings"]
→ Returns: [{key: "preferences", score: 0.92, snippet: "theme: dark"}]

User: Let me experiment with a new setup
Agent: [calls strata_branch with action="fork", name="experiment"]
Agent: [calls strata_branch with action="switch", name="experiment"]
Agent: [calls strata_store with key="preferences", value={"theme": "light", "language": "fr"}]

User: Actually, go back to the original
Agent: [calls strata_branch with action="switch", name="default"]
→ Original preferences are intact

User: What did preferences look like over time?
Agent: [calls strata_history with key="preferences"]
→ Returns all versions with timestamps

为什么是8个工具?

对26台MCP服务器(Qdrant、Neon、Supabase、MongoDB、Mem0等)的研究表明:

  • 10工具 =100%刀具选择精度
  • 30+工具 =精度降低
  • 光标 所有服务器上总共有40个MCP工具的硬限制

Strata的8个工具以Qdrant(2个工具,人工智能友好性的黄金标准)为蓝本,扩展了分支和时间旅行——Strata的独特优势。

克劳德代码技能

/strata 这项技能教会了Claude Code Strata是什么以及何时使用每种工具。当您提到存储、搜索、分支或持久化数据时,它会自动触发。

安装

将技能复制到您的项目或全局Claude Code配置中:

# Per-project (recommended)
mkdir -p .claude/skills/strata
cp /path/to/strata-mcp/.claude/skills/strata/SKILL.md .claude/skills/strata/

# Global (available in all projects)
mkdir -p ~/.claude/skills/strata
cp /path/to/strata-mcp/.claude/skills/strata/SKILL.md ~/.claude/skills/strata/

安装后,Claude Code将使用 /strata 在相关时自动调用,或者您可以直接使用 /strata [action or question].

只读模式

--read-only 如果使用,则所有写入操作都将被拒绝 ACCESS_DENIED 错误。 这对于与只应读取数据的AI代理安全共享数据库非常有用。

时间旅行

大多数读取操作都支持可选 as_of 参数(自纪元以来的微秒数) 用于查询历史数据。使用 strata_history 以发现可用的时间范围。

协议

服务器实现 主控程序 通过stdin/stdout上的JSON-RPC 2.0。

支持的方法:

  • initialize --初始化服务器
  • tools/list --列出可用工具
  • tools/call --执行工具
  • ping --健康检查

发展

# Run tests
cargo test

# Run with in-memory database
./target/release/strata-mcp --cache -v

# Test with a JSON-RPC request
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' | ./target/release/strata-mcp --cache

许可证

麻省理工学院

目录标签

目录标签

AI代理工具版本控制RustClaude数据管理本地部署语义搜索数据库协议

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

8

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP