A demo on creating and employing mcp-use clients to communicate with MCP servers
Samples are provided for Gemini and Anthropic based on the official mcp-use client examples - communicating with a local playwright server to query qoogle
Ensure python version >= 3.13 (as of when this docuement was written)
python --version
git clone https://github.com/balamuru/mcp-use-tutorial.git
Create and activate Virtual environment
cd path-to-project-root-dir
python -m venv path-to-project-root-dir/venv
source venv/bin/activate
Install dependancies
pip install -r requirements.txt
Set API keys in the .env file for desired agent(s)
python google-gemini-agent.pyand/orpython anthropic-agent.py