
MCP服务器用于浏览、搜索和导出Cursor AI聊天记录。
概览
你现有的光标对话可能已经包含数月的决策、漏洞、修复和架构上下文。给一个支持MCP的助手一种方式去查找这些上下文——而不必事先用这个工具记录下来。 cursor-history-mcp 连接 Claude、Cursor 及其他 MCP 客户端与 Cursor-history 中的本地历史阅读器。跨工作区搜索对话文本、检查会话,或通过自然语言返回导出。 该服务器无需嵌入、索引服务或API密钥。助手的模型和网络需求是分开的;返回给客户端的历史记录可以发送给其模型提供者。 将你现有的对话转化为年度活动统计、编码主题和为助手提供的报告提示。这个内置的年度包功能属于光标历史工具集中的MCP包;代理仍然可以直接使用核心CLI或Node.js API访问历史。 “我们之前解决过这个认证漏洞吗?
概述(AI 翻译)
英文 |中文 |法语 |西班牙语
让你的AI搜索你的光标历史。
你现有的光标对话可能已经包含数月的决策、漏洞、修复和架构上下文。给一个支持MCP的助手一种方式去查找这些上下文——而不必事先用这个工具记录下来。
cursor-history-mcp 将 Claude、光标及其他 MCP 客户端连接到游标历史中的本地历史阅读器。跨工作区搜索对话文本、检查会话,或通过自然语言返回导出。
该服务器无需嵌入、索引服务或API密钥。助手的模型和网络需求是分开的;返回给客户端的历史记录可以发送给其模型提供者。
MCP 独有:年度回顾。 将您现有的对话转化为年度活动统计、编码主题和助理报告提示。该内置年度包功能属于 MCP 包中的光标历史工具集;代理仍可直接使用核心 CLI 或 Node.js API 访问历史。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Cursor History MCP
English | 中文 | Français | Español
Let your AI search your Cursor history.
Your existing Cursor conversations may already contain months of decisions, bugs, fixes, and architectural context. Give an MCP-capable assistant a way to find that context—without having recorded it with this tool beforehand.
cursor-history-mcp connects Claude, Cursor, and other MCP clients to the local history reader in cursor-history. Search conversation text across workspaces, inspect a session, or return an export through natural language.
No embeddings, indexing service, or API key is required by this server. Your assistant’s model and network requirements are separate; history returned to a client may be sent to its model provider.
MCP-exclusive: Year in Review. Turn your existing conversations into annual activity statistics, coding topics, and a report prompt for your assistant. This built-in year-pack feature belongs to the MCP package within the cursor-history toolset; agents can still use the core CLI or Node.js API directly for history access.
“Have we solved this authentication bug before? Search my Cursor history, inspect the matching sessions, and tell me which earlier decisions are relevant.”
Quick start · Year in Review · Storage support · Tools · Safety · CLI / Node.js companion
Quick start
Requires Node.js 20.x or 22.x–26.x, readable local Cursor history, and a client that supports local stdio MCP servers. The client must run the server on the machine where that history is available.
Version scope: these docs describe [email protected], powered by [email protected]. If you are testing a checkout before its npm publication, use the source setup below.
Client compatibility: the server uses MCP SDK 1.30.0. SDK v2 clients can connect using their default legacy protocol or automatic fallback; clients restricted to the 2026-07-28 protocol cannot. See SDK interoperability for the tested scope.
Configure the npm package
安装
npx -y [email protected]配置
{
"mcpServers": {
"cursor-history": {
"command": "npx",
"args": ["-y", "[email protected]"]
}
}
}