Enables configuration through environment variables stored in a .env file for customizing API request parameters, rate limits, caching, and language preferences.
Uses Git for version control and initial project installation through the git clone command.
Offers repository access for installation via git clone from GitHub, with contribution workflows mentioned in the documentation.
Provides specific integration paths for macOS, including configuration file locations for Claude Desktop integration.
Provides access to Wikidata knowledge base through five specialized tools: entity search, detailed entity retrieval, custom SPARQL query execution, entity relation exploration, and property-value searches.
MCP Wikidata Server
Un serveur Model Context Protocol (MCP) qui fournit un accès aux données Wikidata pour les Large Language Models.
🔧 Fonctionnalités
- 5 outils MCP pour interagir avec Wikidata :
search_entities
: Recherche textuelle d'entitésget_entity
: Récupération détaillée d'entités par IDsparql_query
: Exécution de requêtes SPARQL personnaliséesget_relations
: Exploration des relations d'entitésfind_by_property
: Recherche par propriété-valeur
- APIs supportées :
- Wikibase API (recherche et récupération d'entités)
- SPARQL Query Service (requêtes complexes)
- Support multilingue et cache intelligent
📋 Prérequis
- Python 3.10+
- uv (gestionnaire de paquets Python moderne)
📦 Installation
1. Cloner le projet
2. Installer les dépendances
3. Tester l'installation
⚙️ Configuration avec Claude Desktop
Configuration recommandée (portable)
Ajoutez cette configuration à votre fichier Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json
sur macOS) :
Important : Remplacez /path/to/your/mcp-wikidata/
par le chemin absolu vers votre dossier d'installation.
Alternative avec uv direct
Si vous préférez une configuration sans script wrapper :
🧪 Tests et vérification
Test avec MCP Inspector
Tests manuels des APIs
Test client MCP complet
🔧 Utilisation des outils
search_entities
Recherche d'entités par texte :
get_entity
Récupération d'entité par ID :
sparql_query
Requête SPARQL personnalisée :
get_relations
Relations d'une entité :
find_by_property
Recherche par propriété :
⚙️ Configuration avancée
Variables d'environnement
Créez un fichier .env
basé sur .env.example
:
Logs de debug
Pour diagnostiquer des problèmes :
🔧 Dépannage
Erreur "server disconnected" dans Claude Desktop
- Vérifiez l'installation d'uv :
- Testez le script wrapper :
- Vérifiez les permissions :
- Redémarrez Claude Desktop après modification de la configuration
Erreur "spawned uv ENOENT"
Cette erreur indique que Claude Desktop ne trouve pas la commande uv
. Le script wrapper run_mcp_wikidata.sh
résout automatiquement ce problème en cherchant uv
dans plusieurs emplacements courants.
Logs de diagnostic
Les logs détaillés sont disponibles dans :
- Console de MCP Inspector
- Fichiers de log Claude Desktop (selon votre OS)
- Sortie stderr du serveur MCP
📁 Structure du projet
🤝 Contribution
Les contributions sont bienvenues ! N'hésitez pas à :
- Signaler des bugs
- Proposer des améliorations
- Ajouter de nouveaux outils MCP
- Améliorer la documentation
📄 Licence
MIT License - voir le fichier LICENSE pour plus de détails.
📚 Ressources utiles
Généré avec Claude Code 🚀
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides access to Wikidata for Large Language Models through the Model Context Protocol, offering tools for entity search, detailed retrieval, SPARQL queries, relation exploration, and property-based searches.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables Large Language Models to seamlessly interact with ClickHouse databases, supporting resource listing, schema retrieval, and query execution.Last updated -1PythonMIT License
MCP TapData Serverofficial
-securityFlicense-qualityA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.Last updated -- AsecurityAlicenseAqualityA Model Context Protocol server that retrieves information from Wikipedia to provide context to LLMs, allowing users to search articles, get summaries, full content, sections, and links from Wikipedia.Last updated -973PythonMIT License
- AsecurityAlicenseAqualityA server implementation for interacting with Wikidata API using the Model Context Protocol, providing tools for searching identifiers, extracting metadata, and executing SPARQL queries.Last updated -522PythonMIT License