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
๐งฉ Requirements
Python โฅ 3.10
MCP SDK (FastMCP)
Install dependencies using either uv or pip:
โ๏ธ Running the server
Output example:
๐งช Testing via curl
You can call each tool directly via /mcp endpoint.
Activation logs
LAN logs
WLAN logs
Kafka status
๐งฐ Example response
๐ฆ Project structure
This server cannot be installed
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.
Enables retrieval of simulated device logs (activation, LAN, WLAN) and Kafka status for testing purposes by querying with device serial numbers.