使用说明
Call Logger MCP Server
FastMCP server with:
- MCP endpoint on
/mcp - Web dashboard on
/ - JSON calls API on
/api/calls - SQLite persistence in
data/calls.db
Prerequisites
- Python 3.13+
uvinstalled (pip install uv)
Run Locally
- Install dependencies:
uv sync --frozen --no-dev
- Start the server:
uv run python call_logger_server.py
- Open:
- Dashboard:
http://localhost:8000/ - Calls API:
http://localhost:8000/api/calls - MCP (Streamable HTTP):
http://localhost:8000/mcp
Run With Docker
- Build image:
docker build -t call-logger-mcp .
- Run container:
docker run --rm -p 8000:8000 call-logger-mcp
- Open:
http://localhost:8000/
MCP Tool
log_call(caller_name, caller_number, callee_number, risk_level, reason)
risk_levelallowed values:low,medium,high
API
GET /api/calls?limit=200
limitis optional, min1, max1000- Response shape:
{
"count": 1,
"calls": [
{
"id": 1,
"caller_name": "John Doe",
"caller_number": "+421900000000",
"callee_number": "+421911111111",
"risk_level": "low",
"reason": "Payment issue",
"created_at": "2026-02-17T11:00:00.000000"
}
]
}
