
MCP Tools Project
Python-based MCP toolset with Echo server for testing and Browser Automation server using browser-use and LangChain for AI-driven web interactions
what is MCP Tools Project?
MCP Tools Project is a Python-based toolset that implements two Model Context Protocol (MCP) servers: an Echo server for testing and a Browser-use server for AI-driven web interactions.
how to use MCP Tools Project?
To use the MCP Tools Project, set up a Python virtual environment, install the required packages, and start the desired MCP server using the provided commands.
key features of MCP Tools Project?
- Echo MCP Server for testing communication
- Browser-use MCP Server for web automation
- Integration with LangChain and OpenAI for enhanced capabilities
use cases of MCP Tools Project?
- Testing MCP communication with the Echo server.
- Automating web interactions using the Browser-use server.
- Integrating AI functionalities into web applications.
FAQ from MCP Tools Project?
- What are the requirements to run MCP Tools Project?
You need Python 3.12+, a virtual environment, and the required packages listed in requirements.txt.
- How do I start the servers?
Use the commands
mcp dev echo_server.py
for the Echo server andmcp dev browser_use_mcp.py
for the Browser-use server.
- Can I integrate my own API key?
Yes, you can set up your OpenAI API key in the .env file.
MCP Tools Project
This project implements two MCP (Model Context Protocol) servers:
- Echo MCP Server: A simple echo server for testing MCP communication
- Browser-use MCP Server: A browser automation server using browser-use and LangChain
Requirements
- Python 3.12+
- Virtual environment
- Required packages (see requirements.txt)
Installation
- Create and activate virtual environment:
python -m venv .venv
.\.venv\Scripts\activate # Windows
source .venv/bin/activate # Linux/Mac
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
# Create .env file with your OpenAI API key
OPENAI_API_KEY=your_api_key_here
MCP Servers
Echo Server
Simple echo server that demonstrates basic MCP functionality:
- Echo messages as resources
- Echo messages as tools
Browser-use Server
Browser automation server that:
- Uses browser-use library for web automation
- Integrates with LangChain and OpenAI
- Provides browser automation capabilities through MCP
Usage
- Start Echo server in development mode:
mcp dev echo_server.py
- Start Browser-use server in development mode:
mcp dev browser_use_mcp.py
Configuration
MCP server configurations are stored in .cursor/mcp.json
.
