Content
# Streamlit MCP Client
This is a Streamlit-based React Agent client application that communicates with the MCP server.
## Project Overview
This project implements a simple React Agent that communicates with the MCP (Message Communication Protocol) server using Streamlit. It visually represents communication with the server by leveraging Streamlit's intuitive UI components.
The implementation of the React Agent references some code from the [OpenMCP](https://github.com/sharandac/OpenMCP) project. It is built on LangChain and LangGraph, enabling the creation of an efficient interactive agent system.
## Screenshots
### Main Screen

Basic screen structure
### Detailed Features

Tool usage inquiry screen
## Tech Stack
- Python
- Streamlit
- LangChain
- LangGraph
- MCP Protocol
## Installation Instructions
1. Create and activate a virtual environment
```bash
python -m venv .venv
source .venv/bin/activate # Linux/Mac
# or
.venv\Scripts\activate # Windows
```
2. Install the required packages
```bash
pip install -r requirements.txt
```
## How to Run
```bash
streamlit run main.py
```
## Project Structure
```
streamlit_mcp_client/
├── main.py # Main Streamlit application
├── src/ # Source code
│ └── api/ # API related modules
│ ├── graph.py # LangGraph based React Agent implementation
│ └── math_server.py # Communication with the math server
├── config/ # Configuration file directory
│ └── mcp_config.json # MCP server connection and protocol settings
├── assets/ # Static files such as images
│ ├── demo1.png # Main screen screenshot
│ └── demo2.png # Detailed features screenshot
├── .streamlit/ # Streamlit settings
│ └── secrets.toml # Secret settings
├── pyproject.toml # Project settings
├── .env # Environment variables
└── README.md # Project documentation
```
## Configuration
### MCP Configuration
Settings related to the MCP server connection and protocol are managed in the `config/mcp_config.json` file. You can change the server address, port, communication protocol, and other settings in this file.
## Future Work Plans
Here are the features currently under development and planned for future implementation:
1. **Server Communication Testing**
- Real-time communication testing based on SSE (Server-Sent Events)
- Communication testing with a Node.js based server
2. **Code Optimization**
- Overall code structure improvement
- Performance optimization
- Writing test code
3. **Structural Changes**
- Refactoring the project structure
- Improving module structure
## Reference Links
- [OpenMCP](https://github.com/sharandac/OpenMCP) - Reference for MCP protocol
- [LangChain](https://python.langchain.com/) - LLM application framework
- [LangGraph](https://python.langchain.com/docs/langgraph) - Graph orchestration based on LangChain
- [mcp kipris](https://github.com/nuri428/mcp_kipris) - My plus.kipris.or.kr API MCP Server
## License
MIT License
## How to Contribute
1. Fork this repository.
2. Create a new feature branch.
3. Commit your changes.
4. Push to the branch.
5. Create a pull request.
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