Robooto/logsearch-mcp-example
3.2
If you are the rightful owner of logsearch-mcp-example and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
LogSearch MCP is a Minimal Model Context Protocol server that provides a REST API for log searching and retrieval.
Tools
2
Resources
0
Prompts
0
LogSearch MCP (FastMCP + uv)
Minimal Model Context Protocol (MCP) server exposing a LogSearch-style REST API through two MCP tools.
Features
- 🔍
search_logs(query, ...)
→POST /Logs/search
- 📄
get_log(id)
→GET /Logs/{id}
- ⚡ Fast startup via
uv
- 🧩 Simple FastMCP integration
Requirements
- Python 3.11+
uv
(https://github.com/astral-sh/uv)fastmcp
Quick Start
# 1. Create & activate virtual env
uv venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# 2. Install dependencies
uv sync
# 3. Run the MCP server
export API_BASE="https://my-api.example.com/api"
fastmcp run server.py
With .env file
Create a .env
file in the project root with the following content:
API_BASE="https://my-api.example.com/api"
fastmcp install claude-desktop server.py --env-file .env
fastmcp install claude-code server.py \
--env API_BASE=http://localhost:8080/api
Integration with MCP Inspector
npx @modelcontextprotocol/inspector -- uv run python server.py