Skip to main content
Glama
Bukvarix MCP Server

Bukvarix MCP Server

by VKirill

Bukvarix MCP Server

MCP (Model Context Protocol) сервер для интеграции с API bukvarix.com - сервиса подбора ключевых слов для SEO.

Автор: Вечкасов Кирилл
Telegram канал: @pomogay_marketing

Описание

Этот MCP сервер предоставляет инструменты для работы с Bukvarix API, позволяя выполнять:

  • Поиск ключевых слов по одной фразе

  • Расширенный поиск по списку ключевых слов с исключениями

  • Получение ключевых слов для домена

  • Сравнение ключевых слов нескольких доменов

Related MCP server: Keyword Research Tool MCP Server

Установка

# Клонировать репозиторий
git clone https://github.com/VKirill/bukvarix-mcp-server.git
cd bukvarix-mcp-server

# Установить зависимости
npm install

# Собрать проект
npm run build

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

Переменные окружения

  • BUKVARIX_API_KEY - API ключ (по умолчанию: "free" для бесплатного API)

Запуск

npm start

Интеграция с Cursor/Claude

Добавьте сервер в конфигурацию MCP (~/.cursor/mcp.json или %APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json):

{
  "mcpServers": {
    "bukvarix": {
      "command": "node",
      "args": ["C:/path/to/bukvarix-mcp-server/dist/index.js"],
      "env": {
        "BUKVARIX_API_KEY": "free"
      }
    }
  }
}

Инструменты (Tools)

1. bukvarix_search_keywords

Поиск ключевых слов по одной фразе с поддержкой специального синтаксиса.

Параметры

Параметр

Тип

Обязательный

По умолчанию

Описание

query

string

✅ Да

-

Ключевое слово или фраза для поиска. Поддерживает специальные символы: * (wildcard), ! (исключение), ~ (синонимы)

num

number

❌ Нет

250

Количество результатов в отчете (от 1 до 1,000,000)

format

enum

❌ Нет

"json"

Формат данных: "txt", "json", "csv", "tsv"

report_type

enum

❌ Нет

"report"

Тип отчета: "report" (отчет) или "word_analysis" (анализ)

result_count

boolean

❌ Нет

false

Если true, вернуть только общее количество результатов без данных

Примеры использования

Простой поиск:

{
  "query": "пластиковые окна",
  "num": 10,
  "format": "json"
}

Поиск с wildcard:

{
  "query": "строител* товары",
  "num": 50
}

Поиск с исключениями:

{
  "query": "!строительные !товары"
}

Только количество результатов:

{
  "query": "окна",
  "result_count": true
}

Возвращаемые данные (JSON формат)

{
  "data": [
    [
      "пластиковые окна",
      2,
      16,
      8343275,
      9632
    ]
  ]
}

Где:

  • [0] - ключевое слово/фраза

  • [1] - количество слов во фразе

  • [2] - количество символов во фразе

  • [3] - широкая частотность (worldwide)

  • [4] - точная частотность (worldwide)


2. bukvarix_search_keywords_batch

Расширенный поиск по списку ключевых слов с поддержкой исключений.

Параметры

Параметр

Тип

Обязательный

По умолчанию

Описание

queries

string[]

✅ Да

-

Список ключевых слов для поиска (максимум 100 для бесплатного API). Каждое слово обрабатывается отдельно

exclusions

string[]

❌ Нет

-

Список слов/фраз для исключения (максимум 250 для бесплатного API)

num

number

❌ Нет

250

Количество результатов в отчете (от 1 до 1,000,000)

format

enum

❌ Нет

"json"

Формат данных: "txt", "json", "csv", "tsv"

Примеры использования

Поиск по нескольким фразам:

{
  "queries": ["окна", "двери", "балконы"],
  "num": 20,
  "format": "json"
}

Поиск с исключениями:

{
  "queries": ["окна"],
  "exclusions": ["деревянные", "старые"],
  "num": 50
}

Ограничения бесплатного API

  • Максимум 100 запросов в queries

  • Максимум 250 исключений в exclusions

  • При превышении лимита лишние строки игнорируются


3. bukvarix_get_domain_keywords

Получение ключевых слов для домена или поддомена с позициями в поисковой выдаче.

Параметры

Параметр

Тип

Обязательный

По умолчанию

Описание

domain

string

✅ Да

-

Домен или поддомен (без протокола). Примеры: "example.com", "subdomain.example.com". Кириллические домены передаются как есть (percent-encoded)

region

enum

❌ Нет

"msk"

Регион поисковой машины (см. список регионов ниже)

num

number

❌ Нет

250

Количество результатов в отчете (от 1 до 1,000,000)

format

enum

❌ Нет

"json"

Формат данных: "txt", "json", "csv", "tsv"

result_count

boolean

❌ Нет

false

Если true, вернуть только общее количество результатов без данных

Регионы поисковых машин

Код

Описание

msk

Москва (Яндекс) - по умолчанию

gmsk

Москва (Google)

spb

СПб (Яндекс)

rus

Россия (Яндекс)

nsk

Новосибирск (Яндекс)

ekb

Екатеринбург (Яндекс)

kzn

Казань (Яндекс)

nnv

Н. Новгород (Яндекс)

kry

Красноярск (Яндекс)

che

Челябинск (Яндекс)

sam

Самара (Яндекс)

ufa

Уфа (Яндекс)

rnd

Ростов-на-Дону (Яндекс)

krr

Краснодар (Яндекс)

oms

Омск (Яндекс)

vrn

Воронеж (Яндекс)

prm

Пермь (Яндекс)

vlg

Волгоград (Яндекс)

sar

Саратов (Яндекс)

tmn

Тюмень (Яндекс)

tom

Томск (Яндекс)

gkiev

Киев (Google)

minsk

Минск (Яндекс)

gminsk

Минск (Google)

nursul

Астана (Яндекс)

Примеры использования

Базовый запрос:

{
  "domain": "wildberries.ru",
  "num": 50,
  "format": "json"
}

С указанием региона:

{
  "domain": "wildberries.ru",
  "region": "spb",
  "num": 100
}

Поддомен:

{
  "domain": "shop.example.com"
}

Только количество:

{
  "domain": "example.com",
  "result_count": true
}

Возвращаемые данные (JSON формат)

{
  "data": [
    [
      "вайлдберриз",
      8000000,
      1,
      11,
      10099697,
      5143150,
      1
    ]
  ]
}

Где:

  • [0] - ключевое слово

  • [1] - количество слов во фразе

  • [2] - количество символов во фразе

  • [3] - количество результатов в поисковой машине

  • [4] - широкая частотность (worldwide)

  • [5] - точная частотность (worldwide)

  • [6] - позиция в поисковой выдаче


4. bukvarix_compare_domains

Сравнение ключевых слов между несколькими доменами.

Параметры

Параметр

Тип

Обязательный

По умолчанию

Описание

domains

string[]

✅ Да

-

Список доменов для сравнения (от 2 до 10 для бесплатного API)

comparison_type

enum

❌ Нет

"intersect"

Тип сравнения (только для 2 доменов):- "intersect" - общие ключевые слова- "domain1_uniq" - уникальные для первого домена- "domain2_uniq" - уникальные для второго домена

region

enum

❌ Нет

"msk"

Регион поисковой машины (см. список регионов выше)

num

number

❌ Нет

250

Количество результатов в отчете (от 1 до 1,000,000)

format

enum

❌ Нет

"json"

Формат данных: "txt", "json", "csv", "tsv"

result_count

boolean

❌ Нет

false

Если true, вернуть только общее количество результатов без данных

Примеры использования

Сравнение двух доменов (общие ключевые слова):

{
  "domains": ["wildberries.ru", "lamoda.ru"],
  "comparison_type": "intersect",
  "num": 50
}

Уникальные ключевые слова первого домена:

{
  "domains": ["wildberries.ru", "lamoda.ru"],
  "comparison_type": "domain1_uniq",
  "region": "rus"
}

Сравнение нескольких доменов:

{
  "domains": ["wildberries.ru", "lamoda.ru", "quelle.ru"],
  "num": 100
}

Ограничения

  • Для бесплатного API: максимум 10 доменов

  • comparison_type работает только для сравнения 2 доменов

  • При сравнении 3+ доменов всегда возвращаются общие ключевые слова


Форматы данных

Все инструменты поддерживают следующие форматы вывода:

JSON (по умолчанию)

Структурированные данные в формате массива объектов или массивов.

Пример:

{
  "data": [
    ["ключевое слово", 2, 16, 1000, 500]
  ]
}

TXT

Простой список ключевых слов, каждое на новой строке.

Пример:

пластиковые окна
окна пвх
окна москва

CSV

Таблица с разделителем точка с запятой, текстовые значения в кавычках.

Пример:

Ключевое слово;Слов;Символов;Широкая частотность;Точная частотность
"пластиковые окна";2;16;1000;500

TSV

Таблица с разделителем табуляция, текстовые значения без кавычек.

Пример:

Ключевое слово	Слов	Символов	Широкая частотность	Точная частотность
пластиковые окна	2	16	1000	500

Обработка ошибок

Сервер обрабатывает следующие HTTP коды ошибок:

Код

Описание

Действие

400

Неверный запрос

Проверьте параметры запроса

401

Ошибка авторизации

Проверьте API ключ (BUKVARIX_API_KEY)

402

Превышены лимиты

Уменьшите num или количество запросов/доменов

429

Rate limit

Подождите перед следующим запросом

500

Внутренняя ошибка сервера

Обратитесь в поддержку Bukvarix

503

Плановые работы

Повторите запрос позже

Ограничения бесплатного API

  • Поиск ключевых слов: до 100 запросов в batch search

  • Исключения: до 250 строк в batch search

  • Сравнение доменов: до 10 доменов

  • Количество результатов: максимум 1,000,000 строк в отчете

  • Rate limiting: ограничения по частоте запросов (при ошибке 429 сделайте паузу)

Специальный синтаксис запросов

Bukvarix API поддерживает специальные символы в запросах:

  • * - wildcard (подстановка). Пример: строител* найдет "строительные", "строительство", "строитель"

  • ! - исключение. Пример: !строительные !товары исключит фразы содержащие эти слова

  • ~ - синонимы (в некоторых случаях)

Важно: Специальные символы должны передаваться в перекодированном виде (percent-encoding). Сервер автоматически обрабатывает кодирование.

API Endpoints

Сервер использует следующие endpoints Bukvarix API:

  • GET /v1/keywords/ - простой поиск ключевых слов

  • POST /v1/mkeywords/ - расширенный поиск по списку

  • GET /v1/site/ - ключевые слова домена

  • GET /v1/site_cmp/ - сравнение двух доменов

  • POST /v1/site_mcmp/ - сравнение нескольких доменов

Разработка

# Разработка с автоперезагрузкой
npm run dev

# Сборка проекта
npm run build

# Очистка dist
npm run clean

Технологии

  • TypeScript - типизированный JavaScript

  • MCP SDK - Model Context Protocol SDK

  • Zod - валидация схем данных

  • Axios - HTTP клиент для запросов к API

Тестирование

Проект включает тестовые скрипты для проверки всех инструментов:

# Запуск всех тестов
node test-tools.js

# Тест конкретного инструмента
node test-api-client.js

Лицензия

MIT

Автор

Вечкасов Кирилл

  • Telegram канал: @pomogay_marketing

  • Создано для интеграции Bukvarix API с MCP протоколом

Полезные ссылки

Available Tools

4 tools
bukvarix_compare_domainsCompare DomainsA
Read-onlyIdempotent

Compare keywords between multiple domains.

This tool compares keywords across 2-10 domains (free API limit: 10 domains). For 2 domains, you can specify comparison type (common, unique to first, unique to second). For 3+ domains, always returns common keywords (intersection).

Args:

  • domains (string[], required): List of domains to compare. Minimum 2, maximum 10 for free API. Each domain must match format: /^[a-zA-Z0-9а-яёА-ЯЁ.-]+$/ (no protocol/path). Domains beyond limit are ignored.

  • comparison_type ('intersect' | 'domain1_uniq' | 'domain2_uniq', optional): Comparison type. Only works for exactly 2 domains. Default: 'intersect'.

    • 'intersect': Common keywords for all domains (default, always used for 3+ domains)

    • 'domain1_uniq': Keywords unique to first domain (only for 2 domains)

    • 'domain2_uniq': Keywords unique to second domain (only for 2 domains)

  • region (string, optional): Search engine region. Default: 'msk' (Moscow Yandex). Available regions: msk, gmsk, spb, rus, nsk, ekb, kzn, nnv, kry, che, sam, ufa, rnd, krr, oms, vrn, prm, vlg, sar, tmn, tom, gkiev, minsk, gminsk, nursul

  • num (number, optional): Number of results to return. Range: 1-1,000,000. Default: 250.

  • format ('txt' | 'json' | 'csv' | 'tsv', optional): Output format. Default: 'json'.

  • result_count (boolean, optional): If true, return only total count. Default: false.

Returns: Response format depends on 'format' and 'result_count' parameters.

If result_count=true:

  • Text: "Total keywords found: {count}"

  • Structured: { "total": number, "domains": string[], "comparison_type": string }

If result_count=false and format='json': { "data": [ [keyword, words_count, chars_count, search_results_count, broad_frequency, exact_frequency, position1, position2], ... ], "domains": ["domain1.com", "domain2.com"], "comparison_type": "intersect" } Where array indices:

  • [0]: keyword (string) - Keyword phrase

  • [1]: words_count (number) - Number of words in phrase

  • [2]: chars_count (number) - Number of characters

  • [3]: search_results_count (number) - Search results count in Yandex/Google

  • [4]: broad_frequency (number) - Broad frequency worldwide

  • [5]: exact_frequency (number) - Exact frequency worldwide

  • [6]: position1 (number) - Position for first domain (1-based)

  • [7]: position2 (number) - Position for second domain (1-based, only for 2 domains comparison)

Note: For 3+ domains comparison, only position1 is present (position for first domain).

Examples:

  • "Compare 2 domains (common)" -> { domains: ["wildberries.ru", "lamoda.ru"], comparison_type: "intersect" }

  • "Find unique to first" -> { domains: ["wildberries.ru", "lamoda.ru"], comparison_type: "domain1_uniq" }

  • "Compare 3+ domains" -> { domains: ["domain1.com", "domain2.com", "domain3.com"] }

  • "With region" -> { domains: ["d1.com", "d2.com"], region: "rus" }

  • "Count only" -> { domains: ["d1.com", "d2.com"], result_count: true }

Note: comparison_type is ignored when comparing 3+ domains (always uses intersection).

Error Handling:

  • 400: "Error: Invalid request" - Domain format incorrect or less than 2 domains

  • 402: "Error: Limit exceeded" - More than 10 domains or 'num' too large

  • 429: "Error: Rate limit exceeded" - Wait before retrying

  • Other errors: See bukvarix_search_keywords error handling

Inputs: domains (required), num, format, region, +2 more.

bukvarix_get_domain_keywordsGet Domain KeywordsA
Read-onlyIdempotent

Get keywords for a specific domain or subdomain.

This tool retrieves keywords that the domain ranks for in search engines (Yandex or Google). You can specify domain or subdomain (without protocol). Cyrillic domains (.рф, .укр) are supported.

Args:

  • domain (string, required): Domain or subdomain without protocol. Examples: "example.com", "subdomain.example.com", "кто.рф" Must match regex: /^[a-zA-Z0-9а-яёА-ЯЁ.-]+$/ Do NOT include: http://, https://, www., paths, or query parameters

  • region (string, optional): Search engine region. Default: 'msk' (Moscow Yandex). Available regions: msk, gmsk, spb, rus, nsk, ekb, kzn, nnv, kry, che, sam, ufa, rnd, krr, oms, vrn, prm, vlg, sar, tmn, tom, gkiev, minsk, gminsk, nursul Format: lowercase code (e.g., 'msk', 'spb', 'rus', 'gmsk')

  • num (number, optional): Number of results to return. Range: 1-1,000,000. Default: 250.

  • format ('txt' | 'json' | 'csv' | 'tsv', optional): Output format. Default: 'json'.

  • result_count (boolean, optional): If true, return only total count. Default: false.

Returns: Response format depends on 'format' and 'result_count' parameters.

If result_count=true:

  • Text: "Total keywords found for {domain}: {count}"

  • Structured: { "total": number, "domain": string }

If result_count=false and format='json': { "data": [ [keyword, words_count, chars_count, search_results_count, broad_frequency, exact_frequency, position], ... ] } Where array indices:

  • [0]: keyword (string) - Keyword phrase

  • [1]: words_count (number) - Number of words in phrase

  • [2]: chars_count (number) - Number of characters

  • [3]: search_results_count (number) - Search results count in Yandex/Google

  • [4]: broad_frequency (number) - Broad frequency worldwide

  • [5]: exact_frequency (number) - Exact frequency worldwide

  • [6]: position (number) - Position in search results (1-based)

Examples:

  • "Get keywords for wildberries.ru" -> { domain: "wildberries.ru", num: 50 }

  • "Find keywords for subdomain" -> { domain: "shop.example.com" }

  • "Get keywords for SPb region" -> { domain: "example.com", region: "spb" }

  • "Count only" -> { domain: "example.com", result_count: true }

  • "Cyrillic domain" -> { domain: "кто.рф" } (automatically encoded)

Error Handling:

  • 400: "Error: Invalid request" - Domain format incorrect (includes protocol/path)

  • 401: "Error: Authentication failed" - Check BUKVARIX_API_KEY

  • 402: "Error: Limit exceeded" - Reduce 'num' parameter

  • 429: "Error: Rate limit exceeded" - Wait before retrying

  • Other errors: See bukvarix_search_keywords error handling

Inputs: domain (required), num, format, region, +1 more.

bukvarix_search_keywordsSearch KeywordsA
Read-onlyIdempotent

Search for keywords using a single query phrase.

This tool searches Bukvarix database for keywords matching the query. Supports special syntax:

  • Wildcard: "строител* товары" (matches: строительные товары, товары для строительства)

  • Exclusions: "!строительные !товары" (excludes phrases containing these words)

  • Special characters (*, !, ~) are automatically percent-encoded

Args:

  • query (string, required): Keyword or phrase to search. Supports special characters: * (wildcard), ! (exclusion), ~ (synonyms). Must not be empty.

  • num (number, optional): Number of results to return. Range: 1-1,000,000. Default: 250.

  • format ('txt' | 'json' | 'csv' | 'tsv', optional): Output format. Default: 'json'.

    • 'json': Structured data as object with 'data' array

    • 'txt': Simple list of keywords, one per line

    • 'csv': Table with semicolon delimiter, quoted text values

    • 'tsv': Table with tab delimiter, unquoted text values

  • report_type ('report' | 'word_analysis', optional): Report type. Default: 'report'.

    • 'report': Standard keyword report

    • 'word_analysis': Word analysis report

  • result_count (boolean, optional): If true, return only total count without data. Default: false.

Returns: Response format depends on 'format' parameter and 'result_count' flag:

If result_count=true:

  • Text: "Total results found: {count}"

  • Structured: { "total": number }

If result_count=false and format='json': { "data": [ [keyword, words_count, chars_count, broad_frequency, exact_frequency], ... ] } Where array indices:

  • [0]: keyword (string) - Keyword phrase

  • [1]: words_count (number) - Number of words in phrase

  • [2]: chars_count (number) - Number of characters in phrase

  • [3]: broad_frequency (number) - Broad frequency worldwide

  • [4]: exact_frequency (number) - Exact frequency worldwide

For other formats (txt/csv/tsv), returns formatted text representation.

Large responses (>25,000 chars) are truncated with a message.

Examples:

  • "Find keywords for 'пластиковые окна'" -> { query: "пластиковые окна", num: 10 }

  • "Search keywords starting with 'строитель'" -> { query: "строитель*", num: 50 }

  • "Get count only" -> { query: "окна", result_count: true }

  • "Export to CSV" -> { query: "окна", format: "csv", num: 100 }

Don't use when: You need to search multiple queries (use bukvarix_search_keywords_batch instead)

Error Handling:

  • 400: "Error: Invalid request" - Check query format and parameters

  • 401: "Error: Authentication failed" - Check BUKVARIX_API_KEY environment variable

  • 402: "Error: Limit exceeded" - Free API limits exceeded, reduce 'num' parameter

  • 429: "Error: Rate limit exceeded" - Wait before making more requests

  • 500: "Error: Internal server error" - Contact Bukvarix support

  • 503: "Error: Server maintenance" - Try again later

Inputs: query (required), num, format, report_type, +1 more.

bukvarix_search_keywords_batchSearch Keywords (Batch)A
Read-onlyIdempotent

Search for keywords using multiple query phrases with optional exclusions.

This tool performs extended search using a list of keywords. Each query phrase is processed separately. Free API allows up to 100 queries and 250 exclusions. Queries beyond limit are ignored.

Args:

  • queries (string[], required): List of keywords to search. Minimum 1, maximum 100 for free API. Each query supports special syntax (*, !, ~). Empty strings are not allowed.

  • exclusions (string[], optional): List of words/phrases to exclude. Maximum 250 for free API. Exclusions beyond limit are ignored. Empty strings are not allowed.

  • num (number, optional): Number of results to return. Range: 1-1,000,000. Default: 250.

  • format ('txt' | 'json' | 'csv' | 'tsv', optional): Output format. Default: 'json'. See bukvarix_search_keywords for format details.

Returns: Same format as bukvarix_search_keywords. Response includes keywords matching any query in the list, excluding phrases matching any exclusion term.

JSON format: { "data": [ [keyword, words_count, chars_count, broad_frequency, exact_frequency], ... ] }

Examples:

  • "Find keywords for multiple phrases" -> { queries: ["окна", "двери"], num: 20 }

  • "Search with exclusions" -> { queries: ["окна"], exclusions: ["деревянные", "старые"] }

  • "Batch search 50 phrases" -> { queries: ["phrase1", ..., "phrase50"], num: 100 }

Don't use when: You only need to search one phrase (use bukvarix_search_keywords instead)

Error Handling:

  • 400: "Error: Invalid request" - Check queries/exclusions format

  • 402: "Error: Limit exceeded" - More than 100 queries or 250 exclusions

  • 429: "Error: Rate limit exceeded" - Wait before retrying

  • Other errors: See bukvarix_search_keywords error handling

Inputs: queries (required), num, format, exclusions.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct input shape and purpose: one query phrase, multiple query phrases, one domain, or multiple domains. The descriptions explicitly explain when to use the batch tool instead of the single-query tool, reducing misselection risk.

    Naming Consistency5/5

    All tool names use the same server-prefixed snake_case convention with verb-led names: search_keywords, search_keywords_batch, get_domain_keywords, compare_domains. The batch suffix is a minor qualifier but does not break the overall predictable pattern.

    Tool Count5/5

    Four tools is well-scoped for a keyword research API wrapper, with one tool for each core operation: single search, batch search, domain lookup, and domain comparison. No tool appears redundant or trivial.

    Completeness4/5

    The core keyword-research surface is covered: search by phrase, batch search, domain keyword retrieval, and multi-domain comparison. Minor gaps remain, such as fetching metadata for a single keyword/domain outside these search workflows, but agents can work around them with the provided tools.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Provides a comprehensive suite of SEO and web utility tools for domain analysis, keyword tracking, SERP data, and technical site audits. It enables users to perform various tasks such as checking domain age, WHOIS information, and website technology stacks.
      34
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides comprehensive SEO analysis by crawling websites and generating AI-powered keyword insights, search volume data, and competitor strategies. It delivers detailed reports on keyword clusters and commercial intent to help optimize digital marketing workflows.
      1
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables professional SEO/SEM research with geolocalized keyword discovery, competitor analysis, and SERP ranking insights using DataForSEO API.
      -
    • F
      license
      B
      quality
      D
      maintenance
      Enables SEO analysis and data retrieval through DataForSEO API, including keyword research, backlinks, competitor analysis, and on-page audits.
      24
      -