Entités Wikidata Serveur MCP
Wikidata est une base de connaissances collaborative qui compte plus de 121 millions d'éléments couvrant des personnes, organisations, lieux, œuvres et concepts. Elle est importante pour la résolution d'entités, les graphes de connaissances, l'enrichissement de recherche et la recherche structurée.
URL de base
https://mcp.pressmonitor.com/ Authentification
Les appels MCP utilisent aussi des jetons Bearer sur des requêtes JSON-RPC 2.0.
Authorization: Bearer YOUR_TOKEN Découvrir les outils
Commencez par lister les outils exposés par le serveur MCP.
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/list' }) }); console.log(await response.json()); import requests payload = { 'jsonrpc': '2.0', 'id': 1, 'method': 'tools/list' } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) suggest_entities Suggérer des entités
Suggérer des entités
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| query_text | string | Oui | Texte de la requête |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"suggest_entities","arguments":{"query_text":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "suggest_entities", "arguments": { "query_text": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "suggest_entities", "arguments": { "query_text": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) search_entities_by_label Rechercher des entités par libellé
Rechercher des entités par libellé
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| query_text | string | Oui | Texte de la requête |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_label","arguments":{"query_text":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_label", "arguments": { "query_text": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_label", "arguments": { "query_text": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) search_entities_by_description Rechercher des entités par description
Rechercher des entités par description
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| query_text | string | Oui | Texte de la requête |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_description","arguments":{"query_text":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_description", "arguments": { "query_text": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_description", "arguments": { "query_text": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) search_entities_by_type Rechercher des entités par type
Rechercher des entités par type
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| type | string | Oui | Type |
| query_text | string | Non | Texte de la requête |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_type","arguments":{"type":"SOME_STRING_VALUE","query_text":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_type", "arguments": { "type": "SOME_STRING_VALUE", "query_text": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_type", "arguments": { "type": "SOME_STRING_VALUE", "query_text": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) search_entities_by_claim_value Rechercher des entités par valeur de revendication
Rechercher des entités par valeur de revendication
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| property | string | Oui | Propriété |
| value | string | Non | Valeur |
| mode | string | Non | Mode |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_claim_value","arguments":{"property":"SOME_STRING_VALUE","value":"SOME_STRING_VALUE","mode":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_claim_value", "arguments": { "property": "SOME_STRING_VALUE", "value": "SOME_STRING_VALUE", "mode": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_claim_value", "arguments": { "property": "SOME_STRING_VALUE", "value": "SOME_STRING_VALUE", "mode": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) search_entities_by_property Rechercher des entités par propriété
Rechercher des entités par propriété
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| property | string | Oui | Propriété |
| value | string | Non | Valeur |
| qualifier | string | Non | Qualificateur |
| rank | string | Non | Rang |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_property","arguments":{"property":"SOME_STRING_VALUE","value":"SOME_STRING_VALUE","qualifier":"SOME_STRING_VALUE","rank":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_property", "arguments": { "property": "SOME_STRING_VALUE", "value": "SOME_STRING_VALUE", "qualifier": "SOME_STRING_VALUE", "rank": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_property", "arguments": { "property": "SOME_STRING_VALUE", "value": "SOME_STRING_VALUE", "qualifier": "SOME_STRING_VALUE", "rank": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) search_entities_by_date_range Rechercher des entités par intervalle de dates
Rechercher des entités par intervalle de dates
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| property | string | Oui | Propriété |
| from | string | Non | De |
| to | string | Non | À |
| value | string | Non | Valeur |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_entities_by_date_range","arguments":{"property":"SOME_STRING_VALUE","from":"SOME_STRING_VALUE","to":"SOME_STRING_VALUE","value":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_date_range", "arguments": { "property": "SOME_STRING_VALUE", "from": "SOME_STRING_VALUE", "to": "SOME_STRING_VALUE", "value": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "search_entities_by_date_range", "arguments": { "property": "SOME_STRING_VALUE", "from": "SOME_STRING_VALUE", "to": "SOME_STRING_VALUE", "value": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) get_entity_by_id Obtenir une entité par ID
Obtenir une entité par ID
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| wikidata_id | string | Oui | ID Wikidata |
| lang | string | Non | Langue |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_entity_by_id","arguments":{"wikidata_id":"SOME_STRING_VALUE","lang":"en"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_entity_by_id", "arguments": { "wikidata_id": "SOME_STRING_VALUE", "lang": "en" } } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_entity_by_id", "arguments": { "wikidata_id": "SOME_STRING_VALUE", "lang": "en" } } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) get_entity_claims Obtenir les revendications d'une entité
Obtenir les revendications d'une entité
Arguments
| Nom | Type | Obligatoire | Description |
|---|---|---|---|
| wikidata_id | string | Oui | ID Wikidata |
| lang | string | Non | Langue |
| limit | string | Non | Limite |
| offset | string | Non | Décalage |
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_entity_claims","arguments":{"wikidata_id":"SOME_STRING_VALUE","lang":"en","limit":"SOME_STRING_VALUE","offset":"SOME_STRING_VALUE"}}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_entity_claims", "arguments": { "wikidata_id": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_entity_claims", "arguments": { "wikidata_id": "SOME_STRING_VALUE", "lang": "en", "limit": "SOME_STRING_VALUE", "offset": "SOME_STRING_VALUE" } } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json()) get_properties Obtenir les propriétés
Obtenir les propriétés
Exemples de code
curl -X POST 'https://mcp.pressmonitor.com/' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_TOKEN' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_properties","arguments":[]}}' const payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_properties", "arguments": [] } }; const response = await fetch('https://mcp.pressmonitor.com/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, body: JSON.stringify(payload) }); console.log(await response.json()); import requests payload = { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "get_properties", "arguments": [] } } response = requests.post( 'https://mcp.pressmonitor.com/', headers={ 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_TOKEN' }, json=payload, ) print(response.json())