A very basic MCP (Model Context Protocol) server in Python. The MCP server allows TheGamesDB API to be used from Gemini, Claude (or any AI that can use MCP).
** You will need an API KEY from TheGamesDB to test it. **
Learn how to implement an MCP server
Learm how to make Gemini CLI use it
Makes these tools available to the AI:
- TGDB_search_game - searches for a game by name. Example: zelda will return as JSON anything with zelda in the name
- TGDB_platforms_details - returns as JSON all of the platforms (and all details) that TheGamesDB knows about
edit ~/.gemini/settings.json
Integrate this - the mcpServers bit
{ "theme": "GitHub", "selectedAuthType": "oauth-personal", "mcpServers": { "thegamesdb": { "command": "/home/[your dev folder]/.venv/bin/python3", "args": [ "/home/[your dev folder]/main.py" ] } } }