MCP server
Your AI agent can use the API through MCP, with the same key, plan, limits and units as REST.
- Works with MCP clients that run on your own machine and send the
Authorizationheader. Calls come from your address, so they use your place (Key and place). - Tested with Claude Code (CLI).
Endpoint
POST https://data.tibiaglobalmarket.com/mcp
Authorization: Bearer tgm_live_<prefix>_<secret>Claude Code (CLI)
claude mcp add --scope user --transport http tgm https://data.tibiaglobalmarket.com/mcp \
--header "Authorization: Bearer $TGM_API_KEY"--scope user makes it work in every folder; without it, only in the folder where you ran the command. In non-interactive mode (-p), allow the tools:
claude -p "<your question>" --allowedTools "mcp__tgm__*"Clients configured with JSON
{
"mcpServers": {
"tgm": {
"url": "https://data.tibiaglobalmarket.com/mcp",
"headers": {
"Authorization": "Bearer tgm_live_<prefix>_<secret>"
}
}
}
}Tools
Only the tools of your plan are listed. The first data tool call defines the key's place, as on REST.
| Tool | Module | Units |
|---|---|---|
tgm_list_worlds, tgm_list_categories, tgm_search_items, tgm_get_item, tgm_list_coin_resellers, tgm_list_coin_p2p_offers | base | 1 |
tgm_get_market_item | market | 1 |
tgm_get_market_item_history | market | 2 |
tgm_get_market_world | market | 10 per page |
tgm_get_npc_profit | npc-profit | 1 |
tgm_get_arbitrage | arbitrage | 1 |
tgm_list_bazaar_auctions, tgm_get_bazaar_auction, tgm_get_bazaar_character, tgm_estimate_bazaar_character | bazaar | 1 |
tgm_get_highscores, tgm_get_highscore_character, tgm_get_highscore_movers | highscores | 1 |
- Answers are capped at 24 KB: a cut list has
meta.truncatedand anext_cursorto continue. To copy a whole world, useGET /v1/market/{world}. - A refusal comes back as a tool error with the same
codeas REST, such asMODULE_NOT_IN_PLAN(Errors).