GitHub and Firecrawl integration via Model Context Protocol.
Blog Post: https://arjunprabhulal.com/adk-third-party-tools-github/
Model Context Protocol (MCP) enables agents to connect to external services through a standardized interface. This module demonstrates GitHub integration.
- Python 3.10+
- Gemini API key from AI Studio
- GitHub Personal Access Token
- Navigate to this module:
cd 13-third-party-mcp-tools- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate- Install dependencies:
pip install -r ../requirements.txt- Set up environment variables in
github_agent/.env:
GOOGLE_API_KEY=your-api-key-here
GITHUB_TOKEN=your-github-token
-
Create a GitHub token:
- Go to github.com/settings/tokens
- Generate a new token with
reposcope
-
Configure MCPToolset:
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset
from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPServerParams
github_mcp = MCPToolset(
connection_params=StreamableHTTPServerParams(
url="https://api.githubcopilot.com/mcp/",
headers={"Authorization": f"Bearer {GITHUB_TOKEN}"},
),
)cd github_agent
python agent.pyadk webTest Queries:
- "List trending Python repositories"
- "Get the README from google/adk-python"
Continue to 14. MCP Toolbox for Databases