Quickstart
Get started with easy-mcp-use in minutes
Quickstart Guide
This guide will help you get started with easy-mcp-use quickly. We’ll cover installation, basic configuration, and running your first agent.
Installation
You can install easy-mcp-use using npm:
Or install from source:
Installing LangChain Dependencies
easy-mcp-use works with various LLM providers through LangChain. The core LangChain dependencies are included, but you might need to install additional provider-specific packages:
Important: Only models with tool calling capabilities can be used with easy-mcp-use. Make sure your chosen model supports function calling or tool use.
Environment Setup
Create a .env
file in your project root:
Your First Agent
Here’s a simple example to get you started:
Configuration Options
You can also add the servers configuration from a config file:
Example configuration file (browser_mcp.json
):
Using Multiple Servers
The MCPClient
can be configured with multiple MCP servers, allowing your agent to access tools from different sources. This capability enables complex workflows spanning various domains.
Configuration:
Define multiple servers in your configuration file (multi_server_config.json
):
Usage:
Enabling Dynamic Server Selection (Server Manager)
To improve efficiency when working with multiple servers, you can enable the Server Manager:
Restricting Tool Access
You can control which tools are available to the agent: