Device Log 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.
Device Log MCP Server
A simple Model Context Protocol (MCP) server written in Python using the FastMCP SDK.
This server simulates reading logs from multiple device services and exposes them as MCP tools.
π Features
Exposes 4 tools:
get_activation_logs(serial_number)get_lan_logs(serial_number)get_wlan_logs(serial_number)get_kafka_status(serial_number)
Simulates real logs for demo/testing.
Runs in stateless HTTP JSON mode β easy to test using
curl.Default port: 4000
Related MCP server: incident-assistant
π§© Requirements
Python β₯ 3.10
MCP SDK (FastMCP)
Install dependencies using either uv or pip:
# Option 1: using uv (recommended)
uv add "mcp[cli]"
# Option 2: using pip
python -m pip install "mcp[cli]"βοΈ Running the server
uv run python mcp_server.pyOutput example:
π Starting Device Log MCP Server on port 4000...
INFO: Uvicorn running on http://127.0.0.1:4000π§ͺ Testing via curl
You can call each tool directly via /mcp endpoint.
Activation logs
curl -X POST http://127.0.0.1:4000/mcp -H "Content-Type: application/json" -H "Accept: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_activation_logs","arguments":{"serial_number":"SN12345"}}}'LAN logs
curl -X POST http://127.0.0.1:4000/mcp -H "Content-Type: application/json" -H "Accept: application/json" -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_lan_logs","arguments":{"serial_number":"SN12345"}}}'WLAN logs
curl -X POST http://127.0.0.1:4000/mcp -H "Content-Type: application/json" -H "Accept: application/json" -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"get_wlan_logs","arguments":{"serial_number":"SN12345"}}}'Kafka status
curl -X POST http://127.0.0.1:4000/mcp -H "Content-Type: application/json" -H "Accept: application/json" -d '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"get_kafka_status","arguments":{"serial_number":"SN12345"}}}'π§° Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "[SN12345] Activation completed at step 4"
}
]
}
}π¦ Project structure
device-log-server/
βββ mcp_server.py
βββ README.mdTool 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
A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud
Mock REST APIs, fake OAuth2/OIDC provider, uptime monitors + heartbeats, live badge/QR images.
Debug webhooks and set up their routing: requests, deliveries, responses, sources and routes.
Test inboxes for your app's sign-up and login emails: get the code or link, or why none came.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables business services to push error logs and generate diagnostic reports using MCP tools for log searching, code querying, and report generation.-
- AlicenseNot gradedqualityCmaintenanceEnables simulation of production incident alerts and resolution by exposing an active alerts resource and a tool to restart services with simulated success or failure outcomes.ISC
- AlicenseAqualityCmaintenanceEnables local UART and serial-port debugging through MCP, providing persistent capture, log search, regex/event monitoring, HEX send/query, protocol parsing, and shell-like command sequences.15MIT
- AlicenseNot gradedqualityBmaintenanceEnables assistants to query a fleet of sensor patches, read status and measurement time series, review alerts and network statistics, and simulate uplinks that return both the encoded payload and its decoded reading.Apache 2.0