SolarWinds Logs MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Supports local testing via .env files for storing API tokens and configuration
Built with TypeScript for type safety and better development experience
SolarWinds Logs MCP Server
A Model Context Protocol (MCP) server for accessing and visualizing SolarWinds Observability logs.
Note -
This server is currently incomplete as it does not support structured data search (a limitation of the REST API?). I'm uncertain if it also needs to accept a data center to use in the api endpoint calls. Will address both when time allows (needed it for a real work problem, have to fix that first)
Tools
search_logs
Search SolarWinds Observability logs with optional filtering
- Takes search parameters including filter, time range, and pagination options
- Returns formatted log entries with timestamps, hostnames, and messages
- Supports advanced filtering by group, entity, and more
- Default search range is the last 24 hours
visualize_logs
Generate a histogram json response for of log events
- Formatted for Claude and canvas representations
- Configurable time intervals (minute, hour, day)
- Supports UTC or local time zones
- Customizable query filters and time ranges
- Default visualization range is the last 24 hours
Resources
SolarWinds Log Search
- URI Template:
solarwinds://{query}/search
- Returns log entries matching the specified query
- Example:
solarwinds://error/search
Installation
Optionally install from npm:
Or clone and build from source:
Or just use npx in your configurations
For Cline VSCode Extension
Add to %APPDATA%/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
:
For Claude Desktop
Add to the appropriate config file:
Windows: %APPDATA%/Claude/claude_desktop_config.json
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Special Windows Configuration
If you encounter the ENOENT spawn npx issue on Windows, use this alternative configuration that specifies the full paths:
Configuration
The SolarWinds Observability MCP server requires an API token to authenticate with the SolarWinds Observability API.
Configuration Methods
There are multiple ways to provide the API token:
- MCP Settings Configuration (Recommended): Configure the token in your MCP settings file
- Environment Variable: Set the
SOLARWINDS_API_TOKEN
environment variable - Local .env File (For Testing): Create a
.env
file in the project root withSOLARWINDS_API_TOKEN=your-token
For local testing, you can:
- Copy
.env.example
to.env
and add your token - Run the example script:
node examples/local-test.js
Tool Usage Examples
search_logs
Basic search:
Advanced search with time range and pagination:
visualize_logs
Basic histogram (ASCII chart):
Advanced visualization (ASCII chart):
Claude visualization (JSON format):
The JSON format returns data that Claude can visualize as a chart:
Development
Install dependencies:
Build the server:
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. The MCP Inspector provides helpful debugging tools:
This will provide a URL to access the inspector in your browser, where you can:
- View all MCP messages
- Inspect request/response payloads
- Test tools interactively
- Monitor server state
For local testing without the MCP framework:
Technical Details
- Built with TypeScript and the MCP SDK
- Uses axios for API communication
- Supports ISO 8601 date formats for time ranges
- Generates ASCII histograms for log visualization
- Default search range: last 24 hours
- Default page size: 50 logs
- Supports multiple authentication methods
You must be authenticated.
An MCP server for searching and visualizing SolarWinds Observability logs, allowing users to query log data with filtering options and generate visual representations of log events over time.