Oxigraph MCP Server

Oxigraph MCP Server

mcp-server-oxigraph•byidentimoji

A Model Context Protocol server that provides a Claude-friendly wrapper for accessing PyOxigraph, the Python bindings for the Oxigraph RDF triple store, with SPARQL support.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Manages multiple file-based and in-memory RDF stores, including creating, opening, backing up, restoring, optimizing, and listing stores.
  • •Executes full SPARQL queries and updates against the store with structured results.
  • •Adds, removes, and queries RDF quads using named nodes, blank nodes, and literals.
  • •Parses, serializes, imports, and exports RDF data across major formats such as Turtle, N-Triples, N-Quads, TriG, RDF/XML, and N3.

BEST FOR

  • •Quickly building queryable knowledge bases from structured information.
  • •Prototyping semantic applications and interactively testing data models and queries.
  • •Designing and testing RDF schemas and ontologies, and experimenting with SPARQL in an interactive environment.

ABOUT MCP-SERVER-OXIGRAPH

Oxigraph MCP Server is cataloged as an MCP server attributed to identimoji. A Model Context Protocol server that provides a Claude-friendly wrapper for accessing PyOxigraph, the Python bindings for the Oxigraph RDF triple store, with SPARQL support. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Oxigraph MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can I use more than one RDF store at a time?

Yes. The server can create, open, and manage multiple file-based stores, and many operations accept an optional store path.

What RDF serialization formats does the server support?

It supports Turtle, N-Triples, N-Quads, TriG, RDF/XML, and N3, and this list can be retrieved programmatically.

Upstream README

View this exact version on GitHub

README.md · 3e9b4d829935 · Fetched 2026-11-13 11:47:28 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Oxigraph MCP Server

A Model Context Protocol (MCP) server for Oxigraph, a fast and lightweight RDF triple store with SPARQL support.

Oxigraph is a high-performance in-memory or file-based RDF graph database written in Rust. This MCP server provides a Claude-friendly wrapper for accessing PyOxigraph (the Python bindings for Oxigraph) through the Model Context Protocol.

Quickstart

Installation

uv pip install mcp-server-oxigraph

Minimal Claude Desktop Configuration

Add the following to your Claude Desktop MCP configuration:

"oxigraph": {
  "command": "uv",
  "args": ["run", "mcp-server-oxigraph"],
  "env": {}
}

Setting a Default Database (Optional)

To set a specific default database location, add the OXIGRAPH_DEFAULT_STORE environment variable:

"oxigraph": {
  "command": "uv",
  "args": ["run", "mcp-server-oxigraph"],
  "env": {
    "OXIGRAPH_DEFAULT_STORE": "~/.claude/my_knowledge_graph.oxigraph"
  }
}

Why Use Oxigraph MCP?

Oxigraph MCP is ideal for:

  • Quickly building knowledge bases: Store structured information in a queryable graph database
  • Prototyping semantic applications: Test data models and queries interactively
  • Schema development: Design and test RDF schemas and ontologies
  • Local data storage: Maintain persistent data without external services
  • SPARQL exploration: Experiment with complex SPARQL queries in an interactive environment

Features

This MCP server provides:

  • Direct PyOxigraph access: Clean, stateless wrapper for PyOxigraph functionality
  • Multiple store management: Create, open, and manage multiple file-based stores
  • Comprehensive RDF support: Work with all core RDF data types and operations
  • Full SPARQL implementation: Execute queries and updates with properly structured results
  • Rich serialization options: Support for all major RDF formats

About Oxigraph

Oxigraph is an open-source RDF triple store implemented in Rust. Key features include:

  • Fast in-memory or file-based storage using RocksDB
  • Full SPARQL 1.1 Query and Update support
  • Compliance with W3C standards
  • Support for various RDF serialization formats
  • Extremely low memory footprint compared to other graph databases

This MCP server uses PyOxigraph, the official Python bindings for Oxigraph.

Supported RDF Formats

The Oxigraph MCP server supports the following RDF serialization formats:

FormatFile ExtensionMIME TypeSupports Named Graphs
Turtle.ttltext/turtleNo
N-Triples.ntapplication/n-triplesNo
N-Quads.nqapplication/n-quadsYes
TriG.trigapplication/trigYes
RDF/XML.rdfapplication/rdf+xmlNo
N3.n3text/n3No

You can retrieve this information programmatically using the oxigraph_get_supported_formats() function.

Default Store Configuration

The server manages two types of default stores:

  1. System Default Store: Located at ~/.mcp-server-oxigraph/default.oxigraph
  2. User Default Store: Specified by setting the OXIGRAPH_DEFAULT_STORE environment variable

On startup, the server initializes both stores (if configured):

  • The system default store is always created
  • If a user default store is specified, it's also initialized
  • Operations will use the user default store if specified, otherwise the system default

You don't need to explicitly create or open these stores - they're automatically initialized when the server starts. All operations that don't specify a store path will use the appropriate default store.

Basic Usage Examples

Once configured, you can use the Oxigraph MCP tools in Claude to work with RDF data:

  1. Add RDF triples to the default store

    oxigraph_create_named_node(iri: "http://example.org/subject")
    oxigraph_create_named_node(iri: "http://example.org/predicate")
    oxigraph_create_literal(value: "Object value")
    oxigraph_create_quad(subject: subject, predicate: predicate, object: object)
    oxigraph_add(quad: quad)
    
  2. Query with SPARQL

    oxigraph_query(query: "SELECT * WHERE { ?s ?p ?o } LIMIT 10")
    
  3. Import and export RDF data in different formats

    oxigraph_parse(data: "@prefix ex: <http://example.org/> . ex:a ex:b ex:c .", format: "turtle")
    oxigraph_serialize(format: "ntriples")
    oxigraph_get_supported_formats()
    
  4. Create custom stores if needed

    oxigraph_create_store(store_path: "/path/to/my/custom.oxigraph")
    oxigraph_query(query: "SELECT * WHERE { ?s ?p ?o }", store_path: "/path/to/my/custom.oxigraph")
    

API Documentation

Store Management Functions

  • oxigraph_create_store: Create a new store (in-memory or file-based)
  • oxigraph_open_store: Open an existing file-based store
  • oxigraph_close_store: Close a store and remove it from the manager
  • oxigraph_backup_store: Create a backup of a store
  • oxigraph_restore_store: Restore a store from a backup
  • oxigraph_optimize_store: Optimize a store for better performance
  • oxigraph_list_stores: List all managed stores

Note: Most operations will work with the default store without needing to specify a store_path. For persistent storage, we recommend using the file path as the store_path for clarity.

RDF Data Model Functions

  • oxigraph_create_named_node: Create a NamedNode for use in RDF statements
  • oxigraph_create_blank_node: Create a BlankNode for use in RDF statements
  • oxigraph_create_literal: Create a Literal for use in RDF statements
  • oxigraph_create_quad: Create a Quad (triple with optional graph)
  • oxigraph_add: Add a quad to the store
  • oxigraph_add_many: Add multiple quads to the store
  • oxigraph_remove: Remove a quad from the store
  • oxigraph_remove_many: Remove multiple quads from the store
  • oxigraph_clear: Remove all quads from the store
  • oxigraph_quads_for_pattern: Query for quads matching a pattern

SPARQL Functions

  • oxigraph_query: Execute a SPARQL query against the store
  • oxigraph_update: Execute a SPARQL update against the store
  • oxigraph_query_with_options: Execute a SPARQL query with custom options
  • oxigraph_run_query: Run a SPARQL query or update against the store

Serialization Functions

  • oxigraph_parse: Parse RDF data and add to the store
  • oxigraph_serialize: Serialize the store to a string
  • oxigraph_import_file: Import RDF data from a file
  • oxigraph_export_graph: Export a graph to a file
  • oxigraph_get_supported_formats: Get a list of supported RDF formats

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Oxigraph MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-oxigraph)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage