Apache Jena (Fuseki) API + MCP Server for Agentic AI!
pip install jena-mcp==2.3.0 Copy PIP instructions
Documentation — Installation, deployment, usage across the API, CLI, and MCP interfaces, and guidance for provisioning the Apache Jena Fuseki platform are maintained in the official documentation.
jena-mcp exposes a standardized interface to interact with an Apache Jena Fuseki server using the Model Context Protocol — SPARQL query/update, the Graph Store server.
Pick the extra that matches what the operator want to run:
# Connector-focused MCP server (includes the shared graph engine) uv pip install "jena-mcp[mcp]" # Agent runtime (adds model orchestration to the shared graph engine) # Everything (development) uv pip install "jena-mcp[all]" # or: python -m pip install "jena-mcp[all]" Container images (:mcp) One multi-stage docker/Dockerfile builds the MCP-only image (--target mcp):
docker build --target mcp -t example/jena-mcp:mcp docker/ # connector-focused MCP server docker/mcp.compose.yml runs the connector-focused :mcp server; docker/compose.yml runs the agent (immutable agent digest) with a co-located :mcp sidecar.
Agent Connector SDK core dependency (epistemic-graph[full]). The [mcp] extra keeps deployments can use the bundled engine. For production or shared state, run epistemic-graph as a dedicated database service and configure the runtime to use it. Deployment recipes (single-node + Raft HA), connection configuration, and architecture diagrams are documented in the epistemic-graph deployment guide.
python -m jena_mcp MCP Configuration Examples Install the connector-focused [mcp] extra. Examples use jena-mcp[mcp] to add FastMCP / FastAPI through agent-connector-sdk; the required Agent Connector SDK core still carries epistemic-graph[full]. The [agent-runtime] extra additionally enables model orchestration.
{ "mcpServers": { "jena-mcp": { "command": "uvx", "args": [ "--from", "jena-mcp[mcp]", "jena-mcp" ], "env": { "APACHE_JENA_URL": "http://localhost:3030", "JENATOOL": "True", "JENA_FUSEKI_URL": "http://localhost:3030/ds", "JENA_PASSWORD": "admin", "JENA_URL": "http://localhost:3030", "JENA_USERNAME": "admin" } } } } Runtime references require an alias-aware launcher such as Arbora. Other launchers must omit those entries and inject the resolved values through their own runtime secret boundary.
{ "mcpServers": { "jena-mcp": { "url": "http://localhost:8000/jena-mcp/mcp" } } } Run a reviewed container image as a least-privilege stdio child (no listener or published port):
docker run -i --rm \ --read-only \ --cap-drop=ALL \ --security-opt=no-new-privileges \ --pids-limit=256 \ --tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \ -e TRANSPORT=stdio \ -e APACHE_JENA_URL=http://localhost:3030 \ -e JENATOOL=True \ -e JENA_FUSEKI_URL=http://localhost:3030/ds \ -e JENA_PASSWORD=admin \ -e JENA_URL=http://localhost:3030 \ -e JENA_USERNAME=admin \ registry.example.invalid/jena-mcp@sha256: jena-mcp For containerized network HTTP, supply an authenticated TLS ingress (or direct server TLS), exact MCP_ALLOWED_HOSTS, and an exact trusted-proxy CIDR policy through the operator-owned deployment profile. The generator does not emit an unauthenticated non-loopback listener.
Auto-generated from the code-read env surface (package vars) — do not edit.
jena-mcp can run as a local stdio process or container, or behind a remote network boundary. The Deployment guide carries the detailed transport contract.
11 package + 23 inherited variable(s). Auto-generated from .env.example + the shared agent-connector-sdk set — do not edit.
Every variable the server reads, grouped by purpose.
Auto-generated — do not edit between the markers below.
4 intent tool(s) · 0 operation(s). Call an operation as act(action=' ', params={...}) (ask for reads); find(action='describe', params={'action': ' '}) returns its arguments. An operation is enabled unless its TOOL toggle is set false. Auto-generated — do not edit.
The complete documentation is published as the official documentation site and is the recommended reference for installation, deployment, and day-to-day operation.
AGENTS.md is the canonical contributor/agent guidance.
Provision this package with the consolidated agent-connector-sdk-deployment workflow. It selects an installed-package, editable-source, or immutable-container path; records only runtime secret and TLS-profile references in AgentConfig; and runs doctor, registration, policy, observability, and rollback gates. Ask your agent to "deploy jena-mcp with agent-connector-sdk-deployment".
The repository embeds no deployment profile, credential value, certificate path, or environment-specific endpoint. Supply those at runtime through AgentConfig and the configured secret provider.
This package ships a compact canonical skill surface with specialist procedures kept as referenced workflows. The current MCP tools, skill metadata, connector_manifest.yml, ontology, mappings, shapes, fixtures, migrations, tool-schema fingerprints, and certification metadata form one versioned capability contract. Validate them together; do not rely on stale tool names or historical per-task skill wrappers.
Runtime endpoints, credentials, certificate trust, tenant identity, retention, and observability policy are deployment inputs and are never packaged values. See Configuration, trust, and privacy before enabling a network transport, connector ingestion, Arbora delegation, or trace export.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




