Stardog MCP Server
@noahgorstein
A Model Context Protocol (MCP) Server for interacting with a Stardog Knowledge Graph.
Overview
What is Stardog MCP Server?
It is an MCP server implementation that interacts with a Stardog server's APIs, enabling automation and interaction capabilities for developers and tools.
How to use Stardog MCP Server?
Install uv and ensure access to a running Stardog server with credentials. Configure the server in an MCP client (e.g., VS Code or Claude Desktop) by providing the endpoint, username and password (or an authentication token) via environment variables or command-line arguments.
Key features of Stardog MCP Server
- List and configure Stardog databases.
- Execute SPARQL read queries (SELECT, CONSTRUCT, DESCRIBE, ASK).
- Manage roles, users, and permissions on the Stardog server.
- Monitor server processes and retrieve metrics.
- List and manage stored queries.
Use cases of Stardog MCP Server
- Query a knowledge graph without manual API calls.
- Automate user and role provisioning across Stardog databases.
- Monitor Stardog server health and running queries.
- Integrate Stardog administration into AI-powered workflows.
FAQ from Stardog MCP Server
How do I authenticate with the Stardog server?
You can authenticate using either a username and password (via SD_USERNAME/SD_PASSWORD or --username/--password) or an authentication token (SD_AUTH_TOKEN or --auth-token). If both are provided, the token takes precedence.
Does Stardog MCP Server require any runtime dependencies?
Yes, the uv package manager must be installed on your system to run the server.
Can this server modify data or configurations on Stardog?
Yes. The README warns that it may modify data or configurations. To limit risk, you can provide credentials for a read-only user or a user with restricted permissions.
Can I use environment variables instead of command-line arguments?
Yes. The server supports environment variables SD_USERNAME, SD_PASSWORD, SD_AUTH_TOKEN, and SD_ENDPOINT as alternatives to CLI arguments.
Is the server stable for production use?
No. The README states this is a work in progress and is subject to change quite drastically.