mcp-parseable-server
MCP server for Parseable observability platform
mcp-parseable-server - A Parseable MCP Server
This project is currently in early development with focus on log data. Feedback and contributions are welcome.
Testing has been done using:
- vscode with Github Copilot as the agent.
- opencode agent CLI tool
[TOC]
Overview
This project provides an MCP (Message Context Protocol) server for Parseable, enabling AI agents and tools to interact with Parseable data streams (logs, metrics, traces) using natural language and structured tool calls.
Features
- List available data streams in Parseable
- Query data streams using SQL
- Get schema, stats, and info for any data stream
- Modular MCP tool registration for easy extension
- Supports both HTTP and stdio MCP modes
- Environment variable and flag-based configuration
- The mcp server returns responses in json where the payload is both in text and structured format.
In Parseable dataset and data stream names are used interchangeably, as Parseable's datasets are essentially named data streams. In all tool description we try to use the term data stream to avoid confusion with the term dataset which can have different meanings in other contexts.
Limitations
Authentication
The mcp server does not implement any authentication mechanisms. If this is needed, use a reverse proxy like nginx or envoy in front of the mcp server to add authentication and authorization.
MCP session management
The mcp server does not implement any session management since all tool calls are stateless. This may change in the future.
Building
Ensure you have Go 1.20+ installed.
git clone https://github.com/thenodon/mcp-parseable-server
cd mcp-parseable-server
# Build the MCP server binary
go build -o mcp-parseable-server ./cmd/mcp_parseable_server
Running
HTTP Mode (default)
./mcp-parseable-server --listen :9034
The MCP server will listen on http://localhost:9034/mcp for agent/tool requests.
Stdio Mode
./mcp-parseable-server --mode stdio
This mode is used for CLI or agent-to-agent workflows.
Configuration
You can configure the Parseable connection using environment variables or flags:
PARSEABLE_URLor--parseable-url- url to the parseable instance (default: http://localhost:8000)PARSEABLE_USERNAMEor--parseable-user(default: admin)PARSEABLE_PASSWORDor--parseable-pass(default: admin)LISTEN_ADDRor--listen- the address when running the mcp server in http mode (default: :9034)INSECURE- set totrueto skip TLS verification (default: false)`LOG_LEVEL- set log level. Supported levels are debug, info, warn and error (default: info)
Example:
PARSEABLE_URL="http://your-parseable-host:8000" PARSEABLE_USER="admin" PARSEABLE_PASS="admin" ./mcp-parseable-server
Production deployment
For production deployment use a reverse proxy like nginx or envoy in front of the mcp server that manages authentication, authorization, and tls termination.
Testing
See TESTING.md for a complete testing guide.
MCP Tools Reference
1. query_data_stream
Execute a SQL query against a data stream.
- Inputs:
query: SQL query stringstreamName: Name of the data streamstartTime: ISO 8601 start time (e.g. 2026-01-01T00:00:00+00:00)endTime: ISO 8601 end time
- Returns: Query result and the row count returned
2. get_data_streams
List all available data streams in Parseable.
- Returns: Array of stream objects with count
3. get_data_stream_schema
Get the fields schema for a specific data stream.
- Inputs:
stream: Name of the data stream
- Returns: Schema fields and types
4. get_data_stream_stats
Get stats for a data stream.
- Inputs:
streamName: Name of the data stream
- Returns: Stats object (see tool description for details)
5. get_data_stream_info
Get info for a data stream.
- Inputs:
streamName: Name of the data stream
- Returns: Info object (see tool description for details)
6. get_about
Get Parseable about info.
- Returns: About object (see tool description for details)
7. get_roles
Get Parseable roles.
- Returns: Roles object (see tool description for details)
8. get_users
Get all configured users.
- Returns: Users array with count
MCP Prompts Reference
The server provides 5 pre-built prompts for common workflows:
- analyze-errors - Find and analyze error logs
- stream-health-check - Perform comprehensive health assessment
- investigate-field - Deep dive into field values and distributions
- compare-streams - Compare metrics across multiple streams
- find-anomalies - Detect unusual patterns and anomalies
For detailed documentation and examples, see PROMPTS_GUIDE.md.
Tool Discovery
Agents can discover all available tools and their input/output schemas via the MCP protocol. Each tool description includes details about returned fields and their meanings.
Extending
To add new tools, create a new file in tools/, implement the registration function, and add it to
RegisterParseableTools in tools/register.go.
Troubleshooting
PARSEABLE_URL connection issues
Verify connection to Parseable:
curl -u admin:<password> http://localhost:8000/api/v1/about
Agent times out on queries
- Reduce query time range
- Add LIMIT clauses to SQL queries
- Check if Parseable is responsive
Agent can't find streams
- Verify streams exist: ask agent to "list all streams"
- Check stream names are exact matches (case-sensitive)
- Verify Parseable has data in the streams
Empty prompt responses
Check that:
- Stream name exists and has data
- Time range includes actual events
- PARSEABLE_URL, USER, PASS are correct
Agent returns incomplete data
- Check that time range contains data
- Verify PARSEABLE_USER has permissions for the streams
- Use agent's troubleshooting capabilities to debug
MCP server not starting
Check:
- Port 9034 is available (for HTTP mode)
- Environment variables are set
- Go version is 1.20+ (
go version)
License
This work is licensed under the GNU GENERAL PUBLIC LICENSE Version 3.
Todo
- No resources are currently included for agent usage (prompts are implemented).
- No tools to understand the Parseable setups. It can by using the
abouttool understand if cluster or standalone, but nothing about the configuration.
Related Servers
OceanBase MCP Server
Interact with OceanBase databases, allowing AI assistants to list tables, read data, and execute SQL queries securely.
CData Connect Cloud
Query and manage data through CData Connect Cloud, providing a unified interface to various data sources.
Cryptocurrency Daemon
An MCP server for interacting with cryptocurrency daemon RPC interfaces.
Data Exploration
MCP server for autonomous data exploration on .csv-based datasets, providing intelligent insights with minimal effort.
MySQL
A server for managing MySQL databases.
DROMA MCP Server
Interact with DROMA drug-omics association analysis databases using natural language.
MSSQL
Interact with Microsoft SQL Server databases to run queries and analyze business data.
SaaS Browser
Find SaaS tools and alternatives
NocoDB
Manage NocoDB server, support read and write databases
GLEIF MCP Server
Access the Global Legal Entity Identifier (LEI) database for company verification, KYC, and corporate ownership research via GLEIF's public API.