About MCP Example
A LangChain MCP application for mathematical calculations using OpenAI GPT. Supports basic arithmetic operations and natural language processing of calculation requests.
Key features
- 01Basic arithmetic operations
- 02Natural language processing for calculations
- 03OpenAI GPT integration
- 04Test suite
Use cases
- 01Process natural language math problems
- 02Build calculation assistant applications
- 03Verify MCP and LangChain integration
Details
From the project READMEMCP Example
A LangChain MCP application for mathematical calculations using OpenAI's GPT model.
Features
- Basic arithmetic operations
- Natural language processing for calculations
- OpenAI GPT integration
Setup
- Install dependencies:
pip install -e . - Set up
.envwith OpenAI API key - Run tests:
pytest tests/ - Run application:
python src/client.py
Comments
Markdown supported
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.