Seq MCP Server
About
Search and stream events from a Seq server.
Details
- Author
- willibrandon
- Categories
- Database, Other, Infrastructure, Search
Jump to
Setup
Install Seq MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/willibrandon/seq-mcp-server
Follow the installation instructions in the repository README, then restart your MCP client.
A Model Context Protocol (MCP) server that provides tools for searching and streaming events from Seq.
# Install dotnet tool install -g SeqMcpServer # Update to latest version dotnet tool update -g SeqMcpServer # Uninstall dotnet tool uninstall -g SeqMcpServer
- .NET 10.0 Runtime or SDK
- Seq server (local or remote)
- Valid Seq API key
# Clone the repository git clone https://github.com/willibrandon/seq-mcp-server cd seq-mcp-server # Setup development environment (fully automated) # PowerShell (Windows) ./scripts/setup-dev.ps1 # Bash (Linux/Mac) ./scripts/setup-dev.sh # Build and run the MCP server dotnet build dotnet run --project SeqMcpServer
- Starts a Seq container on ports 15341/18081
- Configures authentication and creates an API key
- Sets up environment variables
- Creates a.envfile for the application
MCP servers are not run directly - they are launched by MCP clients. For production:
dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true
- Configure your MCP client to use the deployed executable:
{ "mcpServers": { "seq": { "command": "/path/to/seq-mcp-server", "env": { "SEQ_SERVER_URL": "http://your-seq-server:5341", "SEQ_API_KEY": "your-production-api-key" } } } }
The following tools are available through the MCP protocol:
-
SeqSearch- Search Seq events with filters, date ranges, signals, and pagination
- Parameters:
- filter(required): Seq filter expression (use empty string""for all events)
- count: Number of events to return (default: 100, max: 1000)
- signalId(optional): Signal ID to filter events (useSignalListto find IDs)
- fromDateUtc(optional): Earliest date/time (ISO 8601, e.g.,"2024-01-01T00:00:00Z")
- toDateUtc(optional): Latest date/time (ISO 8601, e.g.,"2024-01-31T23:59:59Z")
- afterId(optional): Event ID to search after (exclusive) - use for pagination
- timeoutSeconds(optional): Timeout in seconds (1-300)
- workspace(optional): Specific workspace to query
- ""- all events
- "error"- events containing "error"
- @Level = "Error"- error level events
- Application = "MyApp"- events from specific application
- filter: "@Level = 'Error'", fromDateUtc: "2024-01-01T00:00:00Z", toDateUtc: "2024-01-31T23:59:59Z"
- First call:filter: "", count: 1000→ returns events with IDs
- Second call:filter: "", count: 1000, afterId: "event-<last-id>"→ returns next batch
SeqWaitForEvents- Wait for and capture live events from Seq (5-second timeout)
- Parameters:
- filter(optional): Seq filter expression
- count: Number of events to capture (default: 10, max: 100)
- workspace(optional): Specific workspace to query
SignalList- List available signals (read-only)
- Parameters:
- workspace(optional): Specific workspace to query
SeqConvertFilter- Convert fuzzy filter to strict filter expression
- Parameters:
- fuzzyFilter(required): Fuzzy search text (e.g., "error", "timeout")
- workspace(optional): Specific workspace to query
Option 1: Using .NET Global Tool (Recommended)
After installing the global tool, add to your Claude Desktop configuration:
{ "mcpServers": { "seq": { "command": "seq-mcp-server", "env": { "SEQ_SERVER_URL": "http://localhost:5341", "SEQ_API_KEY": "your-api-key-here" } } } }
Download the latest release for your platform and add to your MCP settings:
{ "mcpServers": { "seq": { "command": "C:\\\\Tools\\\\seq-mcp-server.exe", "args": [], "env": { "SEQ_SERVER_URL": "http://localhost:5341", "SEQ_API_KEY": "your-api-key-here" } } } }
Build a single-file executable (requires .NET 10 runtime):
# Windows dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true # macOS dotnet publish -c Release -r osx-x64 -p:PublishSingleFile=true # Linux dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true
The executable will be inSeqMcpServer/bin/Release/net10.0/{runtime}/publish/
The Seq MCP Server uses environment variables for configuration:
- SEQ_SERVER_URL: URL of your Seq server
- SEQ_API_KEY: API key for accessing Seq (required)
- SEQ_API_KEY_<WORKSPACE>: Optional workspace-specific API keys (e.g.,SEQ_API_KEY_PRODUCTION)
SeqSearchprefersEvents.EnumerateAsync(), which uses the SeqScanlink when the server advertises it. Older Seq builds such as2024.3.xdo not exposeScanonapi/events/resources; in that case the server now falls back toPagedEnumerateAsync()so searches continue to work instead of failing with:
System.NotSupportedException: The requested link Scan isn't available on entity Seq.Api.Model.ResourceGroup.
If you are debugging compatibility issues:
- Seq2025.2.xand newer exposeScan
- Seq2024.3.xdoes not exposeScan
- this MCP server supports both paths by falling back automatically
The MCP server supports workspace-specific API keys (future feature):
export SEQ_API_KEY="default-key" export SEQ_API_KEY_PRODUCTION="production-key" export SEQ_API_KEY_STAGING="staging-key"
Note: Workspace-specific keys are currently designed but not yet implemented in the MCP tools.
- .NET 10.0 SDK
- Docker (for running Seq locally)
Thescriptsfolder contains automated setup scripts:
-
setup-dev.ps1/setup-dev.sh: Automatically configures your development environment
- Starts Seq container with authentication
- Handles initial password setup
- Creates development API key
- Sets environment variables
- Creates.envfile for the application
teardown-dev.ps1/teardown-dev.sh: Cleans up the development environment
- Stops and removes containers
- Clears environment variables
For detailed development setup, seedocs/DEVELOPMENT.md.
This is a pure MCP server implementation that:
- Runs as a stdio-based service (no web server)
- Communicates via JSON-RPC over standard input/output
- Does not log to console to avoid interfering with MCP communication
- Optionally logs to Seq itself for debugging when configured
The MCP server can log its own operations to Seq when a validSEQ_SERVER_URLandSEQ_API_KEYare provided. This helps with debugging and monitoring the MCP server itself.
MIT License - seeLICENSEfile for details.
An MCP Server for interacting with Elasticsearch and OpenSearch clusters.
Interact with Splunk Enterprise/Cloud using natural language queries.
Provides AI assistants with a secure and structured way to explore and analyze data in GreptimeDB.
Search, Query and interact with data in your Milvus Vector Database.
Connect once and your AI assistant can search and post classified listings — vehicles, real estate, jobs and CVs — on your behalf
An MCP server for vector storage and retrieval using ChromaDB.
MCP server for discovering UK regulated professional services — conveyancers, mortgage brokers, and financial advisers from SRA, FCA, and Companies House registers.
Local semantic search over documents (txt, md, pdf, docx, pptx, csv). Fully offline, multilingual, hybrid vector + keyword search via LanceDB. No API keys, no cloud.
Unified MCP server giving AI coding agents direct access to your databases: 70+ SQL databases via SqlKit (PostgreSQL, MySQL, SQL Server, SQLite, ClickHouse, Snowflake, BigQuery) and NoSQL via DocKit (Elasticsearch, MongoDB, DynamoDB). Local-first: credentials never leave your machine, read-only by default, 79 tools.
Query and export data from various databases including ElasticSearch, MySQL, PostgreSQL, Oracle, and SQLite.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





