Strayl MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Strayl MCP Server
MCP server for semantic and exact log search powered by Strayl.
Features
Semantic Search: AI-powered search across your logs using vector embeddings
Exact Text Search: Traditional text matching with case-sensitive options
Context Search: AI-powered semantic search across indexed documentation and knowledge bases
Context Management: Create, manage and index custom context sources (docs, guides, wikis)
Memory Sessions: Maintain conversation history and context across multiple searches
Time Filtering: Search logs by time periods (5m, 1h, today, yesterday, 7d, etc.)
Log Level Filtering: Filter by log levels (info, warn, error, debug)
Easy Integration: Works with Claude Desktop, Cline, and other MCP clients
Related MCP server: Log Analyzer MCP Server
Installation
Install via pipx (recommended):
pipx install strayl-mcp-serverOr via pip:
pip install strayl-mcp-serverConfiguration
Get Your API Key
Visit https://strayl.dev
Generate an API key
Copy your API key (starts with
st_)
Claude Desktop Configuration
Add to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"strayl": {
"command": "pipx",
"args": ["run", "--no-cache", "strayl-mcp-server"],
"env": {
"STRAYL_API_KEY": "your_api_key_here"
}
}
}
}Cline/Other MCP Clients
Add to your MCP settings file:
{
"mcpServers": {
"strayl": {
"command": "pipx",
"args": ["run", "--no-cache", "strayl-mcp-server"],
"env": {
"STRAYL_API_KEY": "your_api_key_here"
}
}
}
}Available Tools
1. search_logs_semantic
Semantic (AI-powered) search across your logs.
Parameters:
query(required): Search query in natural languagetime_period(optional): Time filter (e.g., "5m", "1h", "today", "7d")match_threshold(optional): Similarity threshold (0.0-1.0, default 0.5)match_count(optional): Max results (default 50)
Example:
Search for database connection errors in the last hour2. search_logs_exact
Exact text matching search across your logs.
Parameters:
query(required): Exact text to search fortime_period(optional): Time filterlevel(optional): Log level filter ("info", "warn", "error", "debug")case_sensitive(optional): Case-sensitive search (default false)limit(optional): Max results (default 50)
Example:
Search for exact text "timeout" in error logs from today3. search_context
Semantic (AI-powered) search across indexed context sources (documentation, knowledge bases, guides).
Parameters:
query(required): Search query in natural languagememory_id(optional): Memory session UUID to maintain conversation historysource_id(optional): Specific context source UUID to search withinuse_ai(optional): Use AI to structure the answer (default True)
Example:
Search context for "how to authenticate users"4. list_context_sources
List all available context sources (documentation, knowledge bases) you have access to.
Parameters:
include_public(optional): Include public sources (default True)include_private(optional): Include your private sources (default True)
Example:
List all available context sources5. index_context
Index new context source (documentation, knowledge base, guides) from a URL.
Parameters:
url(required): Full URL of the content to indexis_public(optional): Make this source public (default True)force(optional): Force re-indexing (default False)
Example:
Index documentation from https://docs.example.com6. manage_context_memory
Manage context memory sessions for maintaining conversation history.
Parameters:
action(required): 'list', 'create', 'get', or 'delete'title(optional): Memory title (required for 'create')memory_id(optional): Memory UUID (required for 'get' and 'delete')source_id(optional): Associate with specific source (for 'create')
Example:
Create a new memory session for research7. list_time_periods
List all supported time period formats for log search.
Time Period Formats
Minutes
5m,5_minutes,5_mins- Last 5 minutes10m,15m,30m- Last 10, 15, 30 minutes
Hours
1h,2h,6h,12h- Last 1, 2, 6, 12 hours24h,last_24_hours- Last 24 hours
Days
today- Today from 00:00 UTCyesterday- Full yesterday7d,last_7_days- Last 7 days30d,last_30_days- Last 30 days
Usage Examples
With Claude Desktop
Simply ask Claude:
"Search my logs for authentication errors in the last hour"
"Find all database connection issues from today"
"Show me exact text 'null pointer' in error logs"
"Search context for how to implement user authentication"
"Index the React documentation"
"Create a memory for my Python research"
Development/Testing
Run the server directly:
export STRAYL_API_KEY="your_api_key_here"
strayl-mcp-serverLogging Your Application
To send logs to Strayl, use the Strayl Log API:
import httpx
api_key = "st_your_api_key"
api_url = "https://ougtygyvcgdnytkswier.supabase.co/functions/v1"
async def log_message(message: str, level: str = "info", context: dict = None):
async with httpx.AsyncClient() as client:
await client.post(
f"{api_url}/log",
json={
"message": message,
"level": level,
"context": context or {}
},
headers={"Authorization": f"Bearer {api_key}"}
)
# Usage
await log_message("User logged in", "info", {"user_id": "123"})
await log_message("Database connection failed", "error", {"db": "postgres"})Troubleshooting
API Key Issues
If you get authentication errors:
Verify your API key starts with
st_Check the API key is correctly set in your MCP config
Ensure there are no extra spaces or quotes around the key
Connection Issues
If the server fails to connect:
Check your internet connection
Verify the Strayl API is accessible
Check for any firewall or proxy issues
No Results
If searches return no results:
Verify you've sent logs to Strayl
Check the time period filter isn't too restrictive
For semantic search, wait a few seconds for embeddings to generate
Support
Documentation: https://docs.strayl.dev
Website: https://strayl.dev
License
MIT License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP memory: save sessions/decisions once, search from Claude, Cursor, ChatGPT. EU-hosted, keyword search.
Private persistent memory for Claude, ChatGPT & Gemini via MCP - semantic search, zero-code setup.
Query application logs, traces, and metrics from your AI coding assistant via Foam's MCP server.
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Related MCP Servers
- FlicenseBqualityCmaintenanceEnables AI-assisted analysis of log files through advanced searching, filtering, and test execution capabilities. Supports time-based queries, pattern matching, test summarization, and code coverage reporting directly within compatible MCP clients.12-
- AlicenseNot gradedqualityDmaintenanceAn MCP server for intelligent log analysis providing semantic search, error pattern clustering, and smart error detection. It enables users to process, vectorize, and query local logs to efficiently identify issues and generate AI-powered summaries.MIT
- AlicenseBqualityDmaintenanceEnables AI-driven semantic code search via natural language queries, integrating with MCP clients like Claude Desktop to retrieve relevant code context from any codebase.1MIT
- AlicenseAqualityCmaintenanceEnables search, analytics, and visualization of Claude Code sessions with MCP tools for session management, recovery, and insights.1086 PyPI1MIT