Skip to main content
Glama

MCP: Model Context Protocol

MCP: Model Context Protocol

Описание проекта

MCP (Model Context Protocol) - это система для управления контекстом при взаимодействии с языковыми моделями (LLM). Система позволяет сохранять контекст диалогов между запросами, что даёт возможность языковой модели "помнить" предыдущие взаимодействия.

Особенности

  • Сохранение и управление контекстом между запросами
  • Интеграция с Google Gemini API
  • Возможность использования нескольких независимых сессий
  • Переключение между сессиями с помощью идентификаторов
  • Локальное хранение истории диалогов

Технологии

  • Python 3
  • FastAPI
  • Gemini API
  • Uvicorn

Установка

  1. Клонировать репозиторий:
git clone https://github.com/Alex-Replicator/mcp-letta.git cd mcp-letta
  1. Создать и активировать виртуальное окружение:
python -m venv venv source venv/bin/activate # для Linux/Mac # или venv\Scripts\activate # для Windows
  1. Установить зависимости:
pip install -r requirements.txt
  1. Создать файл .env и добавить API ключ:
GEMINI_API_KEY=ваш_ключ_gemini_api

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

Запуск сервера

python mcp_server.py

Сервер будет доступен по адресу: http://localhost:9999

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

Отправить запрос (создаст новую сессию):

python mcp_client.py --new "Ваш запрос к модели"

Продолжить диалог в той же сессии:

python mcp_client.py "Ваш следующий запрос"

Использовать конкретную сессию по ID:

python mcp_client.py --id "id_сессии" "Ваш запрос"

Показать список всех сессий:

python mcp_client.py --list

Структура проекта

  • mcp_server.py - Основной сервер MCP
  • mcp_client.py - Клиент для взаимодействия с сервером
  • requirements.txt - Зависимости проекта

Лицензия

MIT

Автор

Alex Replicator - alex.replicator@gmail.com

GitHub: https://github.com/Alex-Replicator/

-
security - not tested
F
license - not found
-
quality - not tested

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.

A system that manages context for language model interactions, allowing the model to remember previous interactions across multiple independent sessions using Gemini API.

  1. Описание проекта
    1. Особенности
      1. Технологии
        1. Установка
          1. Использование
            1. Запуск сервера
            2. Использование клиента
          2. Структура проекта
            1. Лицензия
              1. Автор

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that allows Claude to create flashcards for Rember, helping users study and remember information through spaced repetition reviews.
                  Last updated -
                  88
                  16
                  TypeScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A server implementing the Model Context Protocol that enables AI assistants like Claude to interact with Google's Gemini API for text generation, text analysis, and chat conversations.
                  Last updated -
                  Python
                  • Linux
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server implementation that provides a standardized interface for applications to interact with OpenRouter's language models through a unified conversation management system.
                  Last updated -
                  TypeScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A server that manages conversation context for LLM interactions, storing recent prompts and providing relevant context for each user via REST API endpoints.
                  Last updated -
                  1,012
                  TypeScript

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/Alex-Replicator/mcp-letta'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server