Логотип Supermodel MCP Server

Supermodel MCP Server

Організація
supermodeltools

Save up to 40% on agent token costs with code graphs: call graphs, dependency graphs, dead code detection, and blast radius analysis.

Видавецьsupermodeltools
Репозиторійmcp
МоваTypeScript
Форки
5
Зірки
17
Доступні інструменти
1
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Supermodel MCP Server надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 1

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 17, форки: 5 — у пов’язаному репозиторії.

Supermodel MCP Server

npm MCP CI

MCP server that gives AI agents instant codebase understanding via the Supermodel API. Pre-computed code graphs enable sub-second responses for symbol lookups, call-graph traversal, and cross-subsystem analysis.


⭐ Star the Supermodel Ecosystem

If this is useful, please star our tools — it helps us grow:

mcp  mcpbr  typescript-sdk  arch-docs  dead-code-hunter  Uncompact  narsil-mcp


Install

Quick Setup (Recommended)

bash
curl -sSL https://raw.githubusercontent.com/supermodeltools/mcp/main/setup.sh | bash

Download, review, then execute:

bash
curl -sSL https://raw.githubusercontent.com/supermodeltools/mcp/main/setup.sh -o setup.sh
cat setup.sh
chmod +x setup.sh
./setup.sh

Or clone the entire repo:

bash
git clone https://github.com/supermodeltools/mcp.git
cd mcp
./setup.sh

Manual Install

bash
npm install -g @supermodeltools/mcp-server

Or run directly:

bash
npx @supermodeltools/mcp-server

Configuration

Save 40%+ on agent token costs — start free → supermodeltools.com/trial

VariableDescription
SUPERMODEL_API_KEYYour Supermodel API key (required)
SUPERMODEL_BASE_URLOverride API base URL (optional)
SUPERMODEL_CACHE_DIRDirectory for pre-computed graph cache files (optional)
SUPERMODEL_TIMEOUT_MSAPI request timeout in ms (default: 900000 / 15 min)
SUPERMODEL_NO_API_FALLBACKSet to disable on-demand API calls; cache-only mode (optional)
SUPERMODEL_EXPERIMENTExperiment mode. Set to graphrag to enable GraphRAG tools (optional)

Global Setup (Recommended)

Set your API key globally in your shell profile so it's available to all MCP clients:

bash
# Add to ~/.zshrc (macOS) or ~/.bashrc (Linux)
export SUPERMODEL_API_KEY="your-api-key"

With the API key set globally, you can omit the env block from your MCP configs:

json
{
  "mcpServers": {
    "supermodel": {
      "command": "npx",
      "args": ["-y", "@supermodeltools/mcp-server"]
    }
  }
}

Usage

Claude Code CLI

bash
claude mcp add supermodel --env SUPERMODEL_API_KEY=your-api-key -- npx -y @supermodeltools/mcp-server

Or if SUPERMODEL_API_KEY is already set in your shell environment:

bash
claude mcp add supermodel -- npx -y @supermodeltools/mcp-server

Verify installation:

bash
claude mcp list

Cursor

Add to ~/.cursor/mcp.json:

json
{
  "mcpServers": {
    "supermodel": {
      "command": "npx",
      "args": ["-y", "@supermodeltools/mcp-server"],
      "env": {
        "SUPERMODEL_API_KEY": "your-api-key"
      }
    }
  }
}

Default Working Directory

For benchmarking tools or batch processing, pass a default working directory as a CLI argument:

bash
npx @supermodeltools/mcp-server /path/to/repository

Tools will use this directory automatically if no explicit directory parameter is given.

Tools

symbol_context (Default Mode)

Deep dive on a specific function, class, or method. Given a symbol name, instantly returns its definition location, source code, all callers, all callees, domain membership, and related symbols in the same file.

Output includes:

  • Definition location (file, line range) and source code
  • Callers (who calls this symbol)
  • Callees (what this symbol calls)
  • Architectural domain membership
  • Related symbols in the same file
  • File import statistics

Parameters:

ArgumentTypeRequiredDescription
symbolstringNo*Name of the function, class, or method. Supports ClassName.method syntax and partial matching.
symbolsstring[]No*Array of symbol names for batch lookup. More efficient than multiple calls.
directorystringNoPath to repository directory. Omit if server was started with a default workdir.
briefbooleanNoReturn compact output (no source code). Recommended for 3+ symbols.

* Either symbol or symbols must be provided.

Example prompts:

  • "Look up the symbol filter_queryset in this codebase"
  • "What calls QuerySet.filter and what does it call?"

GraphRAG Mode (Experimental)

Activate with SUPERMODEL_EXPERIMENT=graphrag. Replaces symbol_context with a graph-oriented tool for call-graph traversal and cross-subsystem analysis.

explore_function

BFS traversal of a function, class, or method call graph. Shows source code, callers, callees, and cross-subsystem boundaries with ← DIFFERENT SUBSYSTEM markers.

Parameters:

ArgumentTypeRequiredDescription
symbolstringYesFunction, class, or method name to explore. Supports partial matching and ClassName.method syntax.
directionstringNodownstream (callees), upstream (callers), or both (default).
depthnumberNoHops to follow: 1–3 (default: 2).
directorystringNoRepository path.

Output: Readable narrative showing upstream/downstream neighbors with domain context at each hop.

Recommended Workflow

Default mode:

  1. Identify symbols from the issue and call symbol_context to explore them (batch via symbols array or parallel calls)
  2. Use Read/Grep to examine source code at identified locations
  3. Start editing by turn 3. Max 3 MCP calls total.

GraphRAG mode:

  1. Identify key symbols from the issue, call explore_function to understand their call-graph context. Issue multiple calls in parallel (read-only, safe).
  2. Use the cross-subsystem markers and source code from the response to start editing. Max 2 MCP calls total.

Pre-computed Graphs

For fastest performance, pre-compute graphs ahead of time using the precache CLI subcommand. This calls the Supermodel API once and saves the result to disk, enabling sub-second tool responses with no API calls at runtime.

Pre-compute a graph

bash
npx @supermodeltools/mcp-server precache /path/to/repo --output-dir ./supermodel-cache

Options:

  • --output-dir <dir> — Directory to save the cache file (default: ./supermodel-cache or SUPERMODEL_CACHE_DIR)
  • --name <name> — Repository name for the cache key (default: auto-detected from git remote + commit hash)

Use cached graphs at runtime

bash
SUPERMODEL_CACHE_DIR=./supermodel-cache npx @supermodeltools/mcp-server

The server loads all cached graphs from SUPERMODEL_CACHE_DIR at startup. If no cache exists for a given repository, the server falls back to an on-demand API call (which takes 5-15 minutes for large repos).

Startup precaching

Use the --precache flag to automatically generate and cache the graph for the default workdir on server startup:

bash
npx @supermodeltools/mcp-server /path/to/repo --precache

This is useful in automated environments (e.g., Docker containers for benchmarking) where you want the graph ready before any tool calls.

Benchmarking

Benchmark this MCP server using mcpbr with the provided mcpbr-config.yaml configuration.

Local Development

Building from Source

bash
git clone https://github.com/supermodeltools/mcp.git
cd mcp
npm install
npm run build

Running Locally

bash
node dist/index.js                    # Start MCP server
node dist/index.js /path/to/repo      # With default workdir
node dist/index.js precache /path/to/repo  # Pre-compute graph

Running Tests

bash
npm test              # Run all tests
npm run test:coverage # Run with coverage
npm run typecheck     # Type checking

Using MCP Inspector

For interactive testing, use the MCP Inspector:

bash
npx @modelcontextprotocol/inspector node dist/index.js

Troubleshooting

Timeout Errors

The first analysis of a repository requires an API call that can take 5-15 minutes. If your MCP client times out:

  1. Pre-compute the graph — Use precache to generate the graph ahead of time (see Pre-computed Graphs)
  2. Increase your MCP client timeout — For Claude Code CLI, set MCP_TOOL_TIMEOUT=900000 in your shell profile
  3. Analyze a subdirectory — Target specific parts of your codebase to reduce analysis time

Common Issues

  • 401 Unauthorized: Check SUPERMODEL_API_KEY is set correctly
  • Permission denied: Check read permissions on the directory
  • ENOTFOUND or connection errors: Check your internet connection and firewall settings

Debug Logging

Set the DEBUG environment variable for verbose logging:

json
{
  "mcpServers": {
    "supermodel": {
      "command": "npx",
      "args": ["-y", "@supermodeltools/mcp-server"],
      "env": {
        "SUPERMODEL_API_KEY": "your-api-key",
        "DEBUG": "supermodel:*"
      }
    }
  }
}

Blog

Links

Встановлення

TypingMind
{
  "mcpServers": {
    "supermodeltools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@supermodeltools/mcp-server"
      ],
      "env": {
        "SUPERMODEL_API_KEY": "<SUPERMODEL_API_KEY>"
      }
    }
  }
}

Доступні інструменти

  • symbol_context

    Strictly better than grep for understanding a function, class, or method. Given a symbol name, instantly returns its source code, definition location, all callers, all callees, architectural domain, and related symbols in the same file -- structural context that grep cannot reconstruct. Sub-second, zero cost, read-only. Supports partial matching ("filter" finds "QuerySet.filter", "filter_queryset", etc.) and "ClassName.method" syntax. You can issue multiple calls in parallel (read-only, no side effects) or batch symbols into one call via the "symbols" array.

Використовуйте MCP Supermodel MCP Server з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Supermodel MCP Server ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Supermodel MCP Server як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Supermodel MCP Server.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "supermodeltools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@supermodeltools/mcp-server"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Supermodel MCP Server, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Supermodel MCP Server.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Supermodel MCP Server?
Supermodel MCP Server
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Supermodel MCP Server.

Поширені запитання

Для чого використовується сервер MCP Supermodel MCP Server?

Supermodel MCP Server — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Supermodel MCP Server з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Supermodel MCP Server з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Supermodel MCP Server із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Supermodel MCP Server, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Supermodel MCP Server до TypingMind?

Supermodel MCP Server працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Supermodel MCP Server у TypingMind?

Supermodel MCP Server надає інструменти MCP (1), які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Supermodel MCP Server?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Supermodel MCP Server потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇