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 Authorization header. 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.

ToolModuleUnits
tgm_list_worlds, tgm_list_categories, tgm_search_items, tgm_get_item, tgm_list_coin_resellers, tgm_list_coin_p2p_offersbase1
tgm_get_market_itemmarket1
tgm_get_market_item_historymarket2
tgm_get_market_worldmarket10 per page
tgm_get_npc_profitnpc-profit1
tgm_get_arbitragearbitrage1
tgm_list_bazaar_auctions, tgm_get_bazaar_auction, tgm_get_bazaar_character, tgm_estimate_bazaar_characterbazaar1
tgm_get_highscores, tgm_get_highscore_character, tgm_get_highscore_movershighscores1
  • Answers are capped at 24 KB: a cut list has meta.truncated and a next_cursor to continue. To copy a whole world, use GET /v1/market/{world}.
  • A refusal comes back as a tool error with the same code as REST, such as MODULE_NOT_IN_PLAN (Errors).