MCP 方差对数
Agentic 工具用于查找对话结构中的统计变化,并将异常事件记录到 SQLite 数据库中。该系统基于模型上下文协议 (MCP) 构建,旨在与 Claude Desktop 或其他兼容 MCP 的客户端配合使用。
要求
Python ≥3.10
中孔蛋白≥1.2.0
SQLite3
UV(Python 包安装程序和环境管理器)
快速入门
添加到 Claude 桌面配置(Windows 上为%APPDATA%\Claude\claude_desktop_config.json
):
添加到 Claude Desktop 偏好设置:
用法
自动记录示例
数据框视图
文本 2 SQL
详细安装
确保安装了 Python 3.10+ 和 UV。
使用以下方法之一安装 UV:
克隆并安装:
配置Claude桌面:
添加到claude_desktop_config.json
:
配置位置:
Windows:
%APPDATA%\Claude\claude_desktop_config.json
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Linux:
~/.config/Claude/claude_desktop_config.json
工具
监控
log-query
:跟踪对话模式高:常见互动(未记录)
中等:不寻常的模式(已记录)
低:关键事件(优先记录)
询问
read-logs
:通过过滤查看日志read_query
:执行 SELECT 查询write_query
:执行 INSERT/UPDATE/DELETEcreate_table
:创建表list_tables
:显示所有表describe_table
:显示表结构
位于与安装相关的data/varlog.db
。
架构
故障排除
数据库访问
错误:“无法连接到数据库”
检查文件权限
验证配置中的路径
确保
/data
目录存在
安装问题
错误:“没有名为‘mcp’的模块”
运行:
uv pip install mcp>=1.2.0
错误:“未找到 UV 命令”
安装 UV:
curl -LsSf https://astral.sh/uv/install.sh | sh
配置
错误:“无法启动 MCP 服务器”
验证 config.json 语法
检查路径分隔符(在 Windows 上使用 \)
确保 UV 位于你的系统 PATH 中
贡献
分叉存储库
创建功能分支
提交拉取请求
执照
麻省理工学院
支持
问题: GitHub 问题
local-only server
The server can only run on the client's local machine because it depends on local resources.
Agentic 工具用于查找对话结构中的统计变化,并将异常事件记录到 SQLite 数据库中。该系统基于模型上下文协议 (MCP) 构建,旨在与 Claude Desktop 或其他兼容 MCP 的客户端配合使用。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through SQLite. This server enables running SQL queries, analyzing business data, and automatically generating business insight memos.Last updated -68,255MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to track events, page views, user signups, set user properties, and track revenue in Amplitude analytics.Last updated -97MIT License
- -securityFlicense-qualityA Model Context Protocol server that allows AI models to log and retrieve contact events with various authorities (police, fire, medical, etc.) with rate limiting and persistent storage via Supabase.Last updated -1
- -securityFlicense-qualityA Model Context Protocol desktop extension that allows Claude to query and interact with custom SQL databases in real-time during conversations.Last updated -