Skip to main content
Glama
@theyahia/gigachat-mcp

@theyahia/gigachat-mcp

by theYahia

@theyahia/gigachat-mcp

MCP server for Sber GigaChat API — chat, embeddings, image generation, token counting, balance, assistants, files. 8 tools.

npm License: MIT

Part of the Russian API MCP series (50 servers) by @theYahia.

Installation

Claude Desktop

{
  "mcpServers": {
    "gigachat": {
      "command": "npx",
      "args": ["-y", "@theyahia/gigachat-mcp"],
      "env": { "GIGACHAT_AUTH_KEY": "your-auth-key" }
    }
  }
}

Claude Code

claude mcp add gigachat -e GIGACHAT_AUTH_KEY=your-auth-key -- npx -y @theyahia/gigachat-mcp

VS Code / Cursor

{ "servers": { "gigachat": { "command": "npx", "args": ["-y", "@theyahia/gigachat-mcp"], "env": { "GIGACHAT_AUTH_KEY": "your-auth-key" } } } }

Requires GIGACHAT_AUTH_KEY (Base64-encoded client_id:client_secret). Get it at developers.sber.ru. OAuth tokens are refreshed automatically.

Related MCP server: salutespeech-mcp

Tools (8)

Tool

Description

chat

Text generation via GigaChat with dialogue

list_models

List available models

embed_text

Get text embeddings

get_token_count

Count tokens for texts

generate_image

Generate an image via GigaChat

get_balance

Remaining tokens/quota

list_assistants

List assistants

file_upload

Upload a file for multimodal processing

Demo prompts

Спроси GigaChat: "Напиши стихотворение о весне"
Покажи список доступных моделей GigaChat
Получи эмбеддинги для текстов ["Привет", "Мир"]
Посчитай токены в тексте "Привет, мир!"
Нарисуй через GigaChat котика в шляпе
Покажи баланс GigaChat
Загрузи файл в GigaChat для анализа

License

MIT

Available Tools

8 tools
chatB

Генерация текста через GigaChat. Поддерживает диалог с системным промптом.

Inputs: messages (required), model, top_p, max_tokens, +1 more.

embed_textB

Получение векторных представлений (эмбеддингов) текстов через GigaChat.

Inputs: input (required), model.

file_uploadB

Загрузка файла в GigaChat для мультимодальной обработки.

Inputs: file_name (required), file_content (required), purpose.

generate_imageB

Генерация изображения через GigaChat (описание в тексте сообщения).

Inputs: messages (required), model.

get_balanceB

Проверка остатка токенов/квоты GigaChat.

Inputs: no named parameters.

get_token_countC

Подсчёт токенов для массива текстов.

Inputs: input (required), model.

list_assistantsB

Список доступных ассистентов GigaChat.

Inputs: no named parameters.

list_modelsA

Список доступных моделей GigaChat.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct GigaChat capability: file upload, token counting, image generation, balance check, assistant listing, embedding, chat, and model listing. The purposes are clearly separated with no overlapping operations, making it easy for an agent to select the right tool.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern, such as 'get_token_count', 'generate_image', 'list_assistants', and 'embed_text'. Even the single-word 'chat' fits the pattern as a clear action. There are no style inconsistencies or mixed conventions.

    Tool Count5/5

    With 8 tools, the set is well-scoped for a comprehensive GigaChat client. Each tool covers a core API operation without redundancy or bloat, staying well within the ideal range for clarity and maintainability.

    Completeness4/5

    The toolset covers all major GigaChat features: text generation, embeddings, image generation, token counting, balance, model and assistant listing, and file upload. Minor gaps exist, such as missing assistant creation or management operations, but agents can still accomplish most workflows without dead ends.

    Related MCP Connectors

    Related MCP Servers