Content
# LangGraph ReAct MCP Chat



[](https://langgraph-studio.vercel.app/templates/open?githubUrl=https://github.com/langchain-ai/react-agent)
## Project Overview

`LangGraph ReAct MCP Chat` is a project that implements a ReAct agent that can access various external tools and data sources through the Model Context Protocol (MCP). This project is based on LangGraph and provides an interface to easily add and configure MCP tools.
### Use Cases



### Key Features
* **LangGraph ReAct Agent**: ReAct agent based on LangGraph
* **Tool Management**: Easily add, remove, and configure MCP tools (supports Smithery JSON format)
* **Streaming Response**: Real-time confirmation of agent responses and tool calls
* **Conversation History**: Tracking and management of conversations with the agent
## Architecture

## Installation
1. Clone the repository
```bash
git clone https://github.com/teddynote-lab/langgraph-react-mcp-chat.git
cd langgraph-react-mcp-chat
```
2. Create a virtual environment using uv and install dependencies
```bash
uv venv
source .venv/bin/activate # For Windows: .venv\Scripts\activate
uv pip install -r requirements.txt
```
3. Configure the `.env` file
Copy the `.env.example` file to `.env` and add the necessary API keys:
```bash
cp .env.example .env
```
The following API keys are required:
```
ANTHROPIC_API_KEY=your_anthropic_api_key
OPENAI_API_KEY=your_openai_api_key
LANGSMITH_TRACING=true
LANGSMITH_ENDPOINT=https://api.smith.langchain.com
LANGSMITH_API_KEY=your_langsmith_api_key
LANGSMITH_PROJECT=your_langsmith_project
```
4. Configure MCP tools
Rename the `mcp_config_sample.json` file to `mcp_config.json`.
Here is a sample configuration:
```json
{
"mcpServers": {
"desktop-commander": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@wonderwhy-er/desktop-commander",
"--key",
"Smithery API_KEY"
]
},
"perplexity-search": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@arjunkmrm/perplexity-search",
"--config",
"{\"perplexityApiKey\":\"Perplexity API_KEY\"}"
]
},
"hyperbrowser": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@hyperbrowserai/mcp",
"--key",
"Smithery API_KEY"
]
},
"todoist-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@miottid/todoist-mcp",
"--key",
"Smithery API_KEY"
]
}
}
}
```
To use MCP tools from [Smithery](https://smithery.ai/), follow these steps:
1. Visit the [Smithery](https://smithery.io) website and select the tool you want to use.
2. Click the 'COPY' button on the right to copy the JSON configuration.
3. Open the `mcp_config.json` file and add the copied JSON.
**Important**: The file name must be `mcp_config.json`. If you use a different name, the program may not work correctly.
## Run the Application
Once all settings are complete, you can start the LangGraph development server with the following command:
```bash
langgraph dev
```
If the server starts successfully, you can access the application through a local address (usually http://localhost:3000) in your web browser.
## Connect to teddyflow.com
1. First, run the `langgraph dev` command in the terminal to start the development server.
2. Sign up for an account on teddyflow.com.
During sign-up, enter "teddynote-youtube" as the "beta key" to gain approval without further verification.

3. After logging in, click the "Connect new app" button.

4. Enter the app name and click the "Connect" button.
5. Select the "LangGraph" tab and enter the following information:
- Endpoint: `http://localhost:2024`
- Graph: `agent`

6. Click the "Save" button to complete the connection settings.
7. Click the "Connect app" button to save.
## Customization for Company/Community Logo and Branding
We offer custom features for companies/communities.

If you're interested in introducing this feature, please contact us at service@brain-crew.com for assistance.
## License
Apache License 2.0 ([LICENSE](LICENSE))
Connection Info
You Might Also Like
rea
Reverse engineering for coding agents: one CLI and MCP server to inspect any...
everything-claude-code
Complete Claude Code configuration collection - agents, skills, hooks,...
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
cc-switch
All-in-One Assistant for Claude Code, Codex & Gemini CLI across platforms.
Agent-Reach
Give your AI agent eyes to see the entire internet. Read & search Twitter,...
servers
Model Context Protocol Servers