Installation
Install mcp_use and get your development environment ready
Installing mcp_use
Prerequisites: Please install Python (version 3.11 or higher) before proceeding.
Install the library
Install mcp_use using your preferred package manager:
Install LLM provider
Choose and install your preferred LangChain provider:
Set up environment
Create a .env
file for your API keys:
Verify installation
Test your installation with a simple script:
Development Installation
If you want to contribute or use the latest features, install from source:
Installing MCP Servers
mcp_use connects to MCP servers that provide the actual tools. Here are some popular ones:
Playwright (Web Scraping)
Filesystem Server
SQLite Server
Check out the Awesome MCP Servers repository for a comprehensive list of available servers.
Environment Setup
Using Virtual Environments
It’s recommended to use virtual environments to avoid dependency conflicts:
Environment Variables
Create a .env
file in your project root:
Load environment variables in your Python scripts:
Verification
Verify your installation works correctly:
Next Steps
Quick Start
Follow our quickstart guide to build your first agent
Configuration
Learn how to configure MCP servers
LLM Integration
Explore different LLM providers and their setup
Examples
Browse real-world examples and use cases
Troubleshooting
Tool Calling Required: Only models with tool calling capabilities can be used with mcp_use. Make sure your chosen model supports function calling or tool use.