Open MCP Client
- agent-framework
About
What is Open MCP Client?
Open MCP Client is a project with a frontend component that handles the user interface and an agent component that manages core functionality.
How to use Open MCP Client?
Set up environment variables by creating a .env file at the project root and another inside the agent folder, adding LANGSMITH_API_KEY and OPENAI_API_KEY. Install Poetry (pip install poetry) to manage agent dependencies. Run the frontend and agent in separate terminals with pnpm run dev-frontend and pnpm run dev-agent, or launch both together
Details
- Author
- copilotkit
- GitHub stars
- 1,476
- Category
- agent-framework
- Repository
- copilotkit/open-mcp-client
<div align="center">
Open MCP Client
</div>
https://github.com/user-attachments/assets/364b6705-14d4-4e6d-bea7-fb9f12664fab
Getting Started
Set Up Environment Variables
Create a.env file at the root of your project:
touch .env
Add the following to .env:
LANGSMITH_API_KEY=lsv2_...
OPENAI_API_KEY=sk-...
Next, navigate to the agent folder and create another .env file:
cd agent
touch .env
Add the following inside agent/.env:
OPENAI_API_KEY=sk-...
LANGSMITH_API_KEY=lsv2_...
Set Up Poetry:
Poetry manages dependencies for the agent service. Install it with:
pip install poetry
Verify the installation by running:
poetry --version
Development
For easier debugging, run the frontend and agent in separate terminals:
# Terminal 1 - Frontend
pnpm run dev-frontend
Terminal 2 - Agent
pnpm run dev-agent
Alternatively, launch both services together:
pnpm run dev
Visit http://localhost:3000 in your browser to view the application.
Architecture
The codebase is organized into two primary components:
- Frontend - Handles the user interface.
- Agent - Manages the core functionality.