Content
# langchain-mcp-adapters-example
Simple MCP example for GigaChat
# Components
1. math_server.py – MCP server with two mathematical functions.
2. client.py – MCP client for local interactions (automatically starts the MCP server).
3. client_http.py – MCP client for HTTP interactions (requires the server to be started in SSE mode).
# Stdio mode (local)
## Configuration
1. Setup GigaChat credentials in .env
2. Install requirements
## Run client and server (do not start server directly!)
```
uv run client.py
```
## Example output:
```
uv run client.py
[03/10/25 15:00:47] INFO Processing request of type ListToolsRequest server.py:534
[03/10/25 15:00:51] INFO Processing request of type CallToolRequest server.py:534
[03/10/25 15:00:52] INFO Processing request of type CallToolRequest server.py:534
Результат выражения (3 + 5) умноженное на 12 равен 96.
```
# HTTP mode (SSE)
## Start server
```
uv run math_server.py sse
```
## Run client
```
uv run client_http.py
```
Connection Info
You Might Also Like
MarkItDown MCP
Python tool for converting files and office documents to Markdown.
Filesystem
Model Context Protocol Servers
Sequential Thinking
Model Context Protocol Servers
ZeroZen
Your hyper-personal, always-on, open-source AI companion.
ZeroZen
ZeroZen is an open-source AI companion for managing personal and professional tasks.
neurolink
Universal AI Development Platform with MCP server integration,...