MCPInstall
MCP_Example logo

MCP_Example

by OmgiKikov 3 stars OmgiKikov/MCP_Example

MCPExample demonstrates a calculator using MCP with addition, subtraction, and multiplication.

READMEmain

MCP Calculator Example

Демонстрационный проект, показывающий работу с Model Context Protocol (MCP).

Описание

Проект состоит из двух основных компонентов:

  1. MCP сервер (mcp_server.py) - предоставляет математические операции:

    • Сложение (add)
    • Вычитание (subtract)
    • Умножение (multiply)
  2. MCP клиент (mcp_client.py) - взаимодействует с сервером через OpenAI API

Установка

  1. Клонируйте репозиторий:
git clone https://github.com/OmgiKikov/MCP_Example.git
cd MCP_Example
  1. Установите зависимости:
pip install -r requirements.txt
  1. Создайте файл .env и добавьте ваш OpenAI API ключ:
OPENAI_API_KEY=your_api_key_here

Использование

  1. Запустите клиент:
python mcp_client.py
  1. Введите математические выражения в чате, например:
  • "сложи 5 и 3"
  • "вычти из 10 число 4"
  • "умножь 6 на 7"

Требования

  • Python 3.8+
  • OpenAI API ключ
  • Установленные зависимости из requirements.txt

More Developer Tools MCP servers

Similar servers from the same category.

Sourcebot

sourcebot-dev

Enables code search across multiple repository hosts including GitHub, GitLab, Gitea, Gerrit, and Bitbucket with advanced filtering options for exploring large codebases through natural language queries.

searchgit

CodeAlive

codealive-ai

Provides a bridge to CodeAlive's platform for semantic code search, repository exploration, and context-aware chat completions that leverage deep understanding of entire codebases including documentation and dependencies.

search

Provides a secure, sandboxed environment for executing Python, Node.js, and shell commands in ephemeral containers with file management capabilities for code testing, visualization, and data analysis.

filesystemdatabase

NovaCV

lightbaby

Integrates with NovaCV API to generate, analyze, and convert resumes in various formats without dealing with complex document formatting

PDFSupport+5