MCP Server for Seq's API endpoints for interacting with your logging and monitoring system. This server provides comprehensive access to Seq's API features through the Model Context Protocol.
get_signals- Fetch signals with filtering options- Filter by owner ID
- Filter shared/private signals
- Support for partial matches
get_events- Retrieve events with extensive filtering options- Filter by signal IDs
- Custom filter expressions
- Configurable event count (max 50)
- Flexible time range options
- Date range filtering
get_alert_state- Retrieve the current state of alerts
signals- List all shared signals with detailed information- Signal ID
- Title
- Description
- Sharing status
- Owner information
The server requires the following environment variables:
SEQ_BASE_URL(optional): Your Seq server URL (defaults to 'http://localhost:8080')SEQ_API_KEY(required): Your Seq API key
This repo includes a Claude skill for Seq log analysis and incident investigation. Once the MCP server is connected, the skill guides Claude through structured investigations — health checks, incident triage, post-deployment monitoring — and produces consistent, actionable reports.
Install the skill:
# From the releases page, download seq-ops.skill, then:
claude skill install seq-ops.skillOr install directly from this repo:
npx skills add ahmad2x4/mcp-server-seqThe skill automatically activates when you ask things like "morning health check", "something is broken in prod", "check the logs for timeouts", or "investigate the PPSR integration".
Run the following command to add the server:
claude mcp add --transport stdio \
--env SEQ_BASE_URL=http://localhost:5341 \
--env SEQ_API_KEY=your-api-key \
seq -- npx -y mcp-seqTo share the configuration with your team, use the --scope project flag (saves to .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 users: Replace
npx -y mcp-seqwithcmd /c npx -y mcp-seqto avoid "Connection closed" errors.
Verify the server is connected by running /mcp inside Claude Code.
Add to your 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"
}
}
}
}Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run devRun tests:
npm run test-scriptThe get-events tool supports the following time range options:
1m- Last minute15m- Last 15 minutes30m- Last 30 minutes1h- Last hour2h- Last 2 hours6h- Last 6 hours12h- Last 12 hours1d- Last day7d- Last 7 days14d- Last 14 days30d- Last 30 days
Install globally via npm:
npm install -g mcp-seqOr use directly with npx — no installation required (as shown in the configuration examples above).
Since MCP servers communicate over stdio, debugging can be challenging. The server implements proper error handling and logging for all operations. You can run the test script to verify functionality:
npm run test-scriptThe server implements comprehensive type safety using:
- TypeScript for static type checking
- Zod schema validation for runtime type checking
- Proper error handling and response formatting