mcpField
M
MCP Example

MCP Example

github.com/polymath-ravalOther1Updated 63w ago

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

  1. 01Basic arithmetic operations
  2. 02Natural language processing for calculations
  3. 03OpenAI GPT integration
  4. 04Test suite

Use cases

  1. 01Process natural language math problems
  2. 02Build calculation assistant applications
  3. 03Verify MCP and LangChain integration

Details

From the project README

MCP 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

  1. Install dependencies: pip install -e .
  2. Set up .env with OpenAI API key
  3. Run tests: pytest tests/
  4. 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.