MCP Server for Apache Jena logo

MCP Server for Apache Jena

by ramuzes

An MCP server that connects AI agents to Apache Jena for SPARQL query capabilities. It allows AI agents to access and query RDF data stored in Apache Jena.

View on GitHub

Last updated: N/A

What is MCP Server for Apache Jena?

This project implements a Model Context Protocol (MCP) server that enables AI agents to interact with Apache Jena. It provides the necessary tools for executing SPARQL queries and updates against a Jena Fuseki server, facilitating the integration of AI with RDF data.

How to use MCP Server for Apache Jena?

To use the server, first clone the repository and install the dependencies using npm install. Build the TypeScript code with npm run build. Then, start the server using npm start, optionally specifying custom Jena endpoint, dataset, and authentication credentials using command-line arguments or environment variables. The server exposes tools like execute_sparql_query, execute_sparql_update, and list_graphs.

Key features of MCP Server for Apache Jena

  • Execute SPARQL queries against a Jena Fuseki server

  • Execute SPARQL updates to modify RDF data

  • List available named graphs in the dataset

  • HTTP Basic authentication support for Jena Fuseki

  • Compatible with the Model Context Protocol

Use cases of MCP Server for Apache Jena

  • Enabling AI agents to query knowledge graphs stored in Jena

  • Automating RDF data manipulation through SPARQL updates

  • Integrating Jena with AI-powered applications via the Model Context Protocol

  • Providing a standardized interface for AI agents to interact with RDF data

FAQ from MCP Server for Apache Jena

What is the default Jena Fuseki URL?

The default Jena Fuseki URL is http://localhost:3030.

What is the default dataset name?

The default dataset name is 'ds'.

How do I provide authentication credentials for Jena Fuseki?

You can provide authentication credentials using command-line arguments (-u for username, -p for password) or environment variables (JENA_USERNAME, JENA_PASSWORD).

What AI agents are compatible with this server?

This server is compatible with AI agents that support the Model Context Protocol, such as Cursor and Claude for Cline.

What is the purpose of the API_KEY environment variable?

The API_KEY environment variable is used for MCP server authentication.