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
MarkItDown-MCP is a lightweight server for converting various URIs to Markdown.
Context 7
Context7 MCP provides up-to-date code documentation for any prompt.
Continue
Continue is an open-source project for seamless server management.
semantic-kernel
Build and deploy intelligent AI agents with Semantic Kernel's orchestration...
Github
The GitHub MCP Server connects AI tools to manage repositories, issues, and...
Playwright
A lightweight MCP server for browser automation using Playwright, enabling...