{"type":"mcp_client","name":"mcp_client","description":"This repository provides two MCP client implementations that connect to an MCP server and send queries to Google Gemini AI. It enables Gemini to call external tools and maintains conversation","category":"AI","language":"Python","stars":114,"forks":0,"owner":"theailanguage","github_url":"https://github.com/theailanguage/mcp_client","homepage":"https://youtu.be/hccNm88bk6w","setup":"## Setup\n\n**1â£ Install the required dependencies using `uv` (Universal Virtualenv):**\n```bash\nuv add mcp python-dotenv google-genai\n```\n\n**2â£ Clone this repository:**\n```bash\ngit clone https://github.com/your-username/mcp-client-gemini.git\ncd mcp-client-gemini\n```\n\n**3â£ Set up the project and virtual environment:**\n```bash\nuv init mcp-client\ncd mcp-client\nuv venv\n```\n\n**4â£ Activate the virtual environment:**\n```bash\n# On Windows:\n.venv\\Scripts\\activate\n\n# On MacOS/Linux:\nsource .venv/bin/activate\n```\n\n---\n\n## ð **Setting Up the API Key**\n\nTo use **Google Gemini AI**, you need an **API key**.\n\n**1â£ Create a `.env` file:**\n```bash\ntouch .env\n```\n\n**2â£ Add your API key inside `.env`:**\n```\nGEMINI_API_KEY=your_api_key_here\n```\n\n**3â£ Make sure `.env` is ignored in Git:**\n```bash\necho \".env\" >> .gitignore\n```\n\n*Note:* If you're using the new LangChain client, you can also name the key `GOOGLE_API_KEY`.","tools":"## Available Tools\n\n1.  Connects to an MCP server (Python or Node.js) (Connects to either Python or Node.js MCP servers).\n2.  Sends queries to Google Gemini AI (Sends user queries to Google's Gemini AI).\n3.  Lets Gemini call external tools from the MCP server (Enables Gemini to utilize external tools available on the MCP server).\n4.  Executes MCP tool commands and returns the results (Executes commands from MCP tools and provides the output).\n5.  Maintains conversation history (Gemini remembers past queries for context-aware interactions).","faq":null,"created_at":"2025-03-15T14:44:00+00:00","updated_at":"2025-03-27T06:25:22+00:00","source_url":"https://model-context-protocol.com/clients/mcp-client-gemini-langgraph-python","related_articles":[]}