Skip to main content
Prerequisites:
  • Install Python (version 3.11 or higher)
  • pip, uv, or poetry package manager

Install mcp-use

This gives you access to everything: MCPAgent, MCPClient, and MCPServer.

LLM Providers (for Agents)

If you’re building agents, install your preferred LLM provider:
Tool Calling Required: Only models with tool calling capabilities can be used with mcp-use agents.

Environment Variables

Create a .env file in your project root:
Load them in your scripts:

Development Installation

Install from source for the latest features or to contribute:

Next Steps

Agent

Build AI Agents with tool calling capabilities through MCP connections

Client

A full featured MCP Client implementation for Python

Server

The MCP Server framework implementation for Python
Need Help? Join our Discord or Github communities.