Prerequisites
Python 3.10+
mcp-agent requires Python 3.10 or higher
Node.js
Required for some MCP servers like filesystem (optional)
Install mcp-agent
We recommend using uv for Python project management:
Install Model Provider Dependencies
mcp-agent supports multiple LLM providers. Choose your preferred provider:OpenAI
OpenAI
Anthropic
Anthropic
Azure OpenAI
Azure OpenAI
AWS Bedrock
AWS Bedrock
Google Gemini
Google Gemini
All Providers
All Providers
You can also install dependencies for multiple providers. For example:
Install MCP Servers
mcp-agent works with MCP servers that provide tools, resources, and other capabilities.Fetch Server
Web content fetching capabilities
Filesystem Server
Local file system access
SQLite Server
SQLite database operations
Git Server
Git repository operations
For more MCP servers, check out the Awesome MCP
Servers repository.
Verify Installation
Create a simple test file to verify your installation:You should see output confirming that mcp-agent is working correctly.
Development Setup
1
Clone the Repository
2
Install Dependencies
3
Run Examples
Troubleshooting
Python Version Issues
Python Version Issues
mcp-agent requires Python 3.10+. Check your Python version:If you need to install a newer Python version, consider using pyenv:
Next Steps
Now that you have mcp-agent installed, let’s create your first agent!