Integrations
Supports configuration through environment variables for API keys and endpoints, allowing secure storage of authentication credentials
MCP Python Server — API-оболочка
В этом проекте создается MCP-сервер на Python, который предоставляет инструмент для запросов к внешнему API. Совместимо с Claude Desktop или ChatGPT Desktop, которые поддерживают протокол контекста модели (MCP).
✨ Особенности
- Демонстрация инструмента через MCP
- HTTP-запрос к внешнему API
- Прямая интеграция с Claude/Desktop через claude.json
🚀 Требования
- Питон 3.9+
- mcp[cli] (устанавливается через pip или uv)
- Claude или ChatGPT Desktop (с поддержкой MCP)
📁 Структура проекта
⚙️ Установка
С пипом
С УФ (рекомендуется)
Установка МКП
Установка с .env
Установка зависимостей
Переменные среды
Создайте файл .env
в корне проекта для определения необязательных переменных среды:
👷 Быстрый старт (Quickstart)
Создайте сервер server.py
Запустить локально в режиме разработки
Запуск в производственном режиме
Или с помощью uv:
🚀 Интеграция с Claude/Desktop
Найдите claude.json в папке конфигурации Claude/Desktop:
- В Windows: %APPDATA%\Claude\claude.json
- В Linux/macOS: ~/.claude/claude.json
Пример:
🤖 Использовать в Claude/Desktop
Вы можете задать вопрос модели:
Используйте инструмент consult_api с параметром «ping»
А модель будет использовать ваш MCP-сервер для совершения HTTP-вызовов в реальном времени.
🎁 Бонус: Расширение инструментов
🔍 Ресурсы
- Официальная документация MCP: https://docs.mcp.run/
- Репозиторий Python SDK: https://github.com/modelcontextprotocol/mcp
✅ Сделано с любовью и httpx 🚀
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Сервер Python, реализующий протокол контекста модели, который предоставляет инструменты для запросов к внешним API, совместимый с Claude Desktop и ChatGPT Desktop.
Related MCP Servers
- -securityAlicense-qualityA Python-based server that implements the Model Context Protocol to interface with Claude Desktop as an MCP client, supporting interaction through efficient memory management.Last updated -1PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that allows management and execution of Blender Python scripts, enabling users to create, edit and run scripts in a headless Blender environment through natural language interfaces.Last updated -4Python
- -securityFlicense-qualityA Model Context Protocol server that allows Claude to make API requests on your behalf, providing tools for testing various APIs including HTTP requests and OpenAI integrations without sharing your API keys in the chat.Last updated -Python
- -securityFlicense-qualityA Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.Last updated -462Python