MCP

Сущности Wikidata MCP Сервер

Wikidata — это совместно поддерживаемая база знаний с более чем 121 миллионом элементов, охватывающих людей, организации, места и концепции, важная для разрешения сущностей и исследований.

MCP Версия: 1.0.0 10 Инструменты MCP Аутентификация
Сущности Wikidata

Базовый URL

https://mcp.pressmonitor.com

Аутентификация

Вызовы MCP также используют токены Bearer в запросах JSON-RPC 2.0.

Authorization: Bearer YOUR_TOKEN

suggest_entities

Предложить сущности

Аргументы

Имя Тип Обязательно Описание
query_text string Да Текст запроса
lang string Нет Язык
limit string Нет Лимит
offset string Нет Смещение

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "suggest_entities",
    "arguments": {
      "query_text": "VALUE"
    }
  },
  "id": 1
}'

search_entities_by_label

Поиск сущностей по метке

Аргументы

Имя Тип Обязательно Описание
query_text string Да Текст запроса
lang string Нет Язык
limit string Нет Лимит
offset string Нет Смещение

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "search_entities_by_label",
    "arguments": {
      "query_text": "VALUE"
    }
  },
  "id": 1
}'

search_entities_by_description

Поиск сущностей по описанию

Аргументы

Имя Тип Обязательно Описание
query_text string Да Текст запроса
lang string Нет Язык
limit string Нет Лимит
offset string Нет Смещение

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "search_entities_by_description",
    "arguments": {
      "query_text": "VALUE"
    }
  },
  "id": 1
}'

search_entities_by_type

Поиск сущностей по типу

Аргументы

Имя Тип Обязательно Описание
type string Да Тип
query_text string Нет Текст запроса
lang string Нет Язык
limit string Нет Лимит
offset string Нет Смещение

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "search_entities_by_type",
    "arguments": {
      "type": "VALUE"
    }
  },
  "id": 1
}'

search_entities_by_claim_value

Поиск сущностей по значению утверждения

Аргументы

Имя Тип Обязательно Описание
property string Да Свойство
value string Нет Значение
mode string Нет Режим
lang string Нет Язык
limit string Нет Лимит
offset string Нет Смещение

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "search_entities_by_claim_value",
    "arguments": {
      "property": "VALUE"
    }
  },
  "id": 1
}'

search_entities_by_property

Поиск сущностей по свойству

Аргументы

Имя Тип Обязательно Описание
property string Да Свойство
value string Нет Значение
qualifier string Нет Квалификатор
rank string Нет Ранг
lang string Нет Язык
limit string Нет Лимит
offset string Нет Смещение

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "search_entities_by_property",
    "arguments": {
      "property": "VALUE"
    }
  },
  "id": 1
}'

search_entities_by_date_range

Поиск сущностей по диапазону дат

Аргументы

Имя Тип Обязательно Описание
property string Да Свойство
from string Нет От
to string Нет До
value string Нет Значение
lang string Нет Язык
limit string Нет Лимит
offset string Нет Смещение

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "search_entities_by_date_range",
    "arguments": {
      "property": "VALUE"
    }
  },
  "id": 1
}'

get_entity_by_id

Получить сущность по ID

Аргументы

Имя Тип Обязательно Описание
wikidata_id string Да ID Wikidata
lang string Нет Язык

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "get_entity_by_id",
    "arguments": {
      "wikidata_id": "VALUE"
    }
  },
  "id": 1
}'

get_entity_claims

Получить утверждения сущности

Аргументы

Имя Тип Обязательно Описание
wikidata_id string Да ID Wikidata
lang string Нет Язык
limit string Нет Лимит
offset string Нет Смещение

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "get_entity_claims",
    "arguments": {
      "wikidata_id": "VALUE"
    }
  },
  "id": 1
}'

get_properties

Получить свойства

Примеры кода

curl -X POST "" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "get_properties",
    "arguments": {}
  },
  "id": 1
}'