Loki MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Loki MCPsearch for delayed orders in hub Mumbai-Central"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Loki MCP
Read-only MCP server over Loki / Thor — 1mg's logistics & operations platform.
It talks to the same gateway the Thor admin UI uses (https://thor.1mg.com/1mg_api),
so no VPN or host setup is needed beyond a valid login token.
Tools
Tool | Surface | What it does |
| enums | Valid values for status/type/category/fulfilled_by/rider filters |
| hubs | Find a hub id (ObjectId) from a name/code — needed by order/task search |
| hubs | Full hub detail by id |
| orders | Search orders within hub(s) — hub_id required |
| orders | Full order detail by order id |
| orders | Chronological status history of an order |
| tasks | Search delivery/pickup tasks within hub(s) — hub_id required |
| tasks | Full task detail by id |
| riders | Search riders / phlebos |
| riders | Full rider detail by numeric id |
| riders | Riders attached to a hub (optionally by type) |
| day tracking | Daily KPI summary for a rider (assigned/completed/distance/breach) |
| day tracking | Chronological day timeline (shift, login, task sequence) |
| day tracking | Planned route waypoints + locations |
| day tracking | Actual GPS pings (speed, battery, coolbox temp) |
| day tracking | "Track Phlebos" board for a hub+date (live status/availability) |
| attendance | total_present / total_absent for hub(s) on a date |
| attendance | Day-by-day attendance + hours for a rider/month |
All tools are read-only (readOnlyHint: true).
Day-tracking note: phlebo_id/rider_id is the numeric rider id; date is YYYY-MM-DD.
Related MCP server: DB2ST MCP
Auth
Thor authenticates with the authTokenThor JWT cookie. It is short-lived, so the
server reads it fresh on every call — refreshing never needs a restart.
Open https://thor.1mg.com while logged in.
DevTools → Application → Cookies → copy the
authTokenThorvalue.Paste it into the token file:
echo 'PASTE_TOKEN_HERE' > ~/.loki_token
When calls start returning 401/403, just overwrite ~/.loki_token with a fresh value.
Env var | Default | Purpose |
|
| Path to token file |
| — | Token fallback if no file |
|
| Gateway base |
Setup
cd loki-mcp
uv sync
echo 'PASTE_TOKEN_HERE' > ~/.loki_token
uv run python server.py # smoke test (Ctrl-C to stop)Register in Claude Code
claude mcp add loki -- /Users/abhishekjain/1mg-claude-code/toy-ptojects/loki-mcp/.venv/bin/python \
/Users/abhishekjain/1mg-claude-code/toy-ptojects/loki-mcp/server.pyNotes
hub_idis mandatory for order/task search. Resolve names → ids withloki_search_hubs.Time filters use
DD-MM-YYYY HH:mm:ss.This is v1 and intentionally read-only; no write/action tools are exposed.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/abhijain864/loki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server