Перейти к содержимому
NexIPNexIP Developers · MCP

NexIP MCP Server

Подключайте NexIP к AI-клиентам через Model Context Protocol: запускайте DNS, WHOIS, SSL, HTTP и другие диагностические инструменты через единый защищённый endpoint.

MCP 2026-07-28 13 tools OAuth 2.0 + PKCE API Key compatible
Endpointhttps://nexip.ru/mcp
TransportHTTPS
Protocol2026-07-28
AuthenticationOAuth / Bearer

Авторизация

NexIP поддерживает два сценария подключения MCP.

OAuth 2.0 + PKCE

Рекомендуемый вариант для AI-клиентов и пользовательских приложений. После OAuth-flow клиент получает Bearer access token.

mcp.use tools.run

Authorization: Bearer <access_token>

NexIP API Key

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

Authorization: Bearer nxp_live_...

Управление API-ключами →

Быстрый старт

Remote MCP endpoint:

https://nexip.ru/mcp
Для MCP-запросов передавайте заголовок MCP-Protocol-Version: 2026-07-28. Метод JSON-RPC дублируется в заголовке Mcp-Method. Для tools/call дополнительно указывается Mcp-Name. Параметр params._meta должен содержать версию протокола и возможности клиента.
Совместимость и диагностика. Современные клиенты используют server/discover. Для клиентов 2025 года сохраняется initialize с согласованием версии. Ответы возвращаются в JSON; отдельный GET/SSE-поток не поддерживается. Размер запроса — до 1 МиБ. При обращении в поддержку укажите X-Request-ID из ответа. Проектный ключ ограничен своей организацией и проектом; при HTTP 429 учитывайте Retry-After, если он присутствует.

Пример конфигурации

Пример remote HTTP подключения с API-ключом:

{
  "servers": {
    "nexip": {
      "type": "http",
      "url": "https://nexip.ru/mcp",
      "headers": {
        "Authorization": "Bearer ${input:nexip-api-key}",
        "MCP-Protocol-Version": "2026-07-28"
      }
    }
  }
}

Discovery и список tools

server/discover
curl https://nexip.ru/mcp \
  -H "MCP-Protocol-Version: 2026-07-28" \
  -H "Mcp-Method: server/discover" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}}}}'
tools/list
curl https://nexip.ru/mcp \
  -H "MCP-Protocol-Version: 2026-07-28" \
  -H "Mcp-Method: tools/list" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}}}}'

Вызов инструмента

Пример вызова check_dns:

curl https://nexip.ru/mcp \
  -H "Authorization: Bearer <TOKEN>" \
  -H "MCP-Protocol-Version: 2026-07-28" \
  -H "Mcp-Method: tools/call" \
  -H "Mcp-Name: check_dns" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc":"2.0",
    "id":3,
    "method":"tools/call",
    "params":{
      "_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}},
      "name":"check_dns",
      "arguments":{"target":"nexip.ru"}
    }
  }'

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

Список и схемы инструментов доступны публично через tools/list. Для выполнения tools/call требуется OAuth-токен или API-ключ; анонимный вызов не запускает диагностику. Неверное имя инструмента также не позволяет обойти проверку авторизации.

check_ip

Check an IP address or host using NexIP IP diagnostics. Runs on NexIP servers, uses account quota and stores history. Example: target="1.1.1.1".

check_dns

Read DNS records for a domain using NexIP. Runs on NexIP servers, uses account quota and stores history. Example: target="example.com".

check_whois

Read public WHOIS information for a domain. Runs on NexIP servers, uses account quota and stores history. Example: target="example.com".

check_ssl

Inspect SSL/TLS certificate and connection information. Runs on NexIP servers, uses account quota and stores history. Example: target="example.com".

check_site

Check website availability, HTTP status and response information. Runs on NexIP servers, uses account quota and stores history. Example: target="https://example.com".

check_headers

Inspect HTTP response headers and security-related headers. Runs on NexIP servers, uses account quota and stores history. Example: target="https://example.com".

check_redirects

Follow and inspect an HTTP redirect chain. Runs on NexIP servers, uses account quota and stores history. Example: target="https://example.com".

check_robots

Inspect robots.txt availability and directives. Runs on NexIP servers, uses account quota and stores history. Example: target="https://example.com".

check_sitemap

Validate and inspect an XML sitemap. Runs on NexIP servers, uses account quota and stores history. Example: target="https://example.com/sitemap.xml".

check_meta

Inspect page title, description, canonical, robots and social metadata. Runs on NexIP servers, uses account quota and stores history. Example: target="https://example.com".

render_website_report

Render a NexIP website report card from already obtained tool results. First call check_site, check_dns or check_ssl, then pass only verified fields; never invent statuses. This tool does not perform a network check, persist data, or consume diagnostic quota. Example: target="https://example.com", http_status=200.

get_account_plan

Return the current NexIP account plan available to this MCP connection. Example: arguments={}.

get_api_limits

Return API and MCP-related limits for the current NexIP account. Example: arguments={}.

Scopes и доступ

mcp.use

Доступ к MCP-серверу и служебным MCP-операциям.

tools.run

Разрешение на запуск диагностических инструментов NexIP.

Plan limits

Тарифные ограничения и rate limits продолжают действовать для MCP.

Безопасность

Не публикуйте API-ключи и OAuth-токены в GitHub, логах, скриншотах или публичных конфигурациях. Используйте секреты окружения и минимально необходимые scopes. OAuth access token передаётся только через HTTPS.

Machine-readable ресурсы