spicedb-mcp-server

spicedb-mcp-server

1

The SpiceDB MCP Server is an experimental server designed to connect with SpiceDB for permission management. It allows large language models, such as Claude, to query and manage permissions via SpiceDB's HTTP API, providing tools and resources for schema retrieval and relationship management.

SpiceDB MCP Server

This is an experimental MCP server. For educational purposes, use at your own risk.

A Model Context Protocol (MCP) server connecting to SpiceDB via its HTTP API for permission management. Enables LLMs like Claude to interact with SpiceDB for querying, managing, and understanding permission systems.

Features

  • Resources: Schema retrieval and relationship queries.
  • Tools: Permission checks, resource lookups, and relationship writing.

Prerequisites

  • Node.js 16+
  • SpiceDB instance
  • SpiceDB API key

Installation

Clone the repository, install dependencies, configure the environment, and build the server.

Usage

Run the server using node commands and integrate it with Claude for Desktop.

Examples

Commands for checking permissions, finding resources and subjects, and analyzing schema.

API Reference

Provides endpoints for schema, relationships, object types, and available tools.

MCP Connection Lifecycle

Detailed description of the connection lifecycle from initialization to termination including capabilities.

Server Capabilities

Resources, tools, prompts, debug tracing, response formats, and logging.