Seq MCP Server
Seq MCP 服务器
用于 Seq API 端点的 MCP 服务器,用于与您的日志记录和监控系统进行交互。该服务器通过模型上下文协议 (Model Context Protocol) 提供对 Seq API 功能的全面访问。
功能
工具
信号管理
get_signals- 获取带有过滤选项的信号按所有者 ID 过滤
过滤共享/私有信号
支持部分匹配
事件管理
get_events- 获取带有丰富过滤选项的事件按信号 ID 过滤
自定义过滤表达式
可配置的事件数量(最多 50 个)
灵活的时间范围选项
日期范围过滤
警报管理
get_alert_state- 获取警报的当前状态
资源
信号列表
signals- 列出所有带有详细信息的共享信号信号 ID
标题
描述
共享状态
所有者信息
Related MCP server: Overwatch MCP
配置
该服务器需要以下环境变量:
SEQ_BASE_URL(可选):您的 Seq 服务器 URL(默认为 'http://localhost:8080')SEQ_API_KEY(必需):您的 Seq API 密钥
seq-ops 技能
此仓库包含一个用于 Seq 日志分析和事故调查的 Claude 技能。一旦连接了 MCP 服务器,该技能将引导 Claude 完成结构化调查(健康检查、事故分类、部署后监控),并生成一致且可操作的报告。
安装技能:
# From the releases page, download seq-ops.skill, then:
claude skill install seq-ops.skill或者直接从该仓库安装:
npx skills add ahmad2x4/mcp-server-seq当您询问诸如“早晨健康检查”、“生产环境出问题了”、“检查超时的日志”或“调查 PPSR 集成”之类的问题时,该技能会自动激活。
与 Claude Code 一起使用
运行以下命令以添加服务器:
claude mcp add --transport stdio \
--env SEQ_BASE_URL=http://localhost:5341 \
--env SEQ_API_KEY=your-api-key \
seq -- npx -y mcp-seq要与您的团队共享配置,请使用 --scope project 标志(保存到 .mcp.json):
claude mcp add --transport stdio --scope project \
--env SEQ_BASE_URL=http://localhost:5341 \
--env SEQ_API_KEY=your-api-key \
seq -- npx -y mcp-seqWindows 用户: 将
npx -y mcp-seq替换为cmd /c npx -y mcp-seq以避免“Connection closed”错误。
通过在 Claude Code 中运行 /mcp 来验证服务器是否已连接。
与 Claude Desktop 一起使用
添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"seq": {
"command": "npx",
"args": ["-y", "mcp-seq"],
"env": {
"SEQ_BASE_URL": "your-seq-url",
"SEQ_API_KEY": "your-api-key"
}
}
}
}开发
安装依赖:
npm install构建服务器:
npm run build用于自动重新构建的开发模式:
npm run dev运行测试:
npm run test-script时间范围选项
get-events 工具支持以下时间范围选项:
1m- 最近 1 分钟15m- 最近 15 分钟30m- 最近 30 分钟1h- 最近 1 小时2h- 最近 2 小时6h- 最近 6 小时12h- 最近 12 小时1d- 最近 1 天7d- 最近 7 天14d- 最近 14 天30d- 最近 30 天
安装
通过 npm 全局安装:
npm install -g mcp-seq或者直接使用 npx —— 无需安装(如上面的配置示例所示)。
调试
由于 MCP 服务器通过 stdio 进行通信,调试可能具有挑战性。该服务器为所有操作实现了适当的错误处理和日志记录。您可以运行测试脚本来验证功能:
npm run test-script类型安全
该服务器通过以下方式实现了全面的类型安全:
用于静态类型检查的 TypeScript
用于运行时类型检查的 Zod 模式验证
适当的错误处理和响应格式化
Available Tools
3 toolsget-alertstateD
Inputs: no named parameters.
get-eventsB
Retrieve and analyze a list of event filtered by parameters. Use this tool when you need to:
Investigate events that are being logged in the SEQ server
Details of each event is a structured log and can provide usefull information
Events could be information, error, debug, or critical
Analyze error patterns and frequencies
Inputs: signal, filter, count, fromDateUtc, +2 more.
get-signalsD
Inputs: ownerId, shared, partial.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The tools appear to target different aspects of a Seq server (alert state, events, signals), but with only one description available for 'get-events', it's unclear how 'get-alertstate' and 'get-signals' differ in purpose. This creates some ambiguity, though the distinct names suggest separate functions.
All three tools follow a consistent 'get-[noun]' naming pattern using kebab-case, which is predictable and readable. There are no deviations in style or verb usage across the tool set.
With only 3 tools, this server feels under-scoped for a logging/monitoring domain like Seq, which typically involves more operations such as creating alerts, filtering logs, or managing signals. The count is too low to cover the apparent scope effectively.
The tool set is severely incomplete for a Seq server, lacking essential operations like creating or updating alerts, sending logs, or configuring signals. Only read-only 'get' operations are provided, which will limit agents to passive monitoring without the ability to interact or modify the system.
Maintenance
Related MCP Connectors
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
Analytics and debugging for your MCP server — explore usage and sessions, then root-cause errors.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
MCP server for the Seline Analytics API
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server for retrieving and filtering logs from Mezmo with a quota-conscious design and intelligent defaults. It enables users to discover and query logs by application, level, and custom time ranges to streamline debugging while minimizing API usage.1-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables querying logs and metrics from Graylog, Prometheus, and InfluxDB 2.x. It provides tools for executing Lucene log searches, PromQL queries, and Flux queries directly within MCP-compatible clients.MIT
- FlicenseBqualityBmaintenanceMCP server that integrates with Sumo Logic's API to perform log searches, data discovery, metrics queries, and monitoring.1522 npm-
- AlicenseNot gradedqualityDmaintenanceMCP server for querying structured logs from Datalust Seq, providing tools to search logs, retrieve recent errors, fetch events, and check health.MIT