Comunica MCP Servers
Learn more about Comunica on our website.
This is a monorepo that contains packages for allowing Comunica to be exposed through MCP servers for allowing AI agents to execute SPARQL queries over decentralized RDF knowledge graphs on the Web. As such, it can significantly improve the accuracy of answers by AI agents.
Concretely, this monorepo exposes the following MCP servers:
- Comunica MCP SPARQL: An MCP server for SPARQL querying over decentralized RDF knowledge graphs on the Web.
- Comunica MCP SPARQL File: An MCP server for SPARQL querying over local RDF files.
- Comunica MCP SPARQL HDT: An MCP server for SPARQL querying over HDT files.
- Comunica MCP SPARQL Solid: An MCP server for SPARQL querying over Solid data pods with authentication.
- Comunica MCP SPARQL Link Traversal: An MCP server for SPARQL querying with link traversal capabilities.
- Comunica MCP SPARQL Link Traversal Solid: An MCP server for SPARQL querying over Solid data pods with link traversal and authentication.
Click here to learn more about Comunica MCP, or to see live examples.
(JSDoc: https://comunica.github.io/comunica-feature-mcp/)
This repository should be used by Comunica module developers as it contains multiple Comunica modules that can be composed. This repository is managed as a monorepo using Lerna.
If you want to develop new features or use the (potentially unstable) in-development version, you can set up a development environment for Comunica.
Comunica requires Node.JS 8.0 or higher and the Yarn package manager. Comunica is tested on OSX, Linux and Windows.
This project can be setup by cloning and installing it as follows:
$ git clone https://github.com/comunica/comunica-feature-mcp.git
$ cd comunica
$ yarn installNote: npm install is not supported at the moment, as this project makes use of Yarn's workspaces functionality
This will install the dependencies of all modules, and bootstrap the Lerna monorepo.
After that, all Comunica packages are available in the packages/ folder
and can be used in a development environment, such as querying with Comunica SPARQL MCP (engines/mcp-sparql).
Furthermore, this will add pre-commit hooks
to build, lint and test.
These hooks can temporarily be disabled at your own risk by adding the -n flag to the commit command.
This code is copyrighted by Ghent University – imec and released under the MIT license.
