Skip to main content

MCP server for Cordra digital object repository

Project description

Cordra MCP Server

Cordra is a configurable digital object repository system that stores digital objects as JSON documents with associated metadata and optional binary payloads. This Model Context Protocol (MCP) server provides AI assistants with read-only access to explore and understand Cordra repositories. This allows AI systems to quickly understand the data model and schema structure of a Cordra repository and to explore digital objects and their relationships.

Features

  • Read-Only Access: All operations are strictly read-only, ensuring safe exploration without risk of data modification or corruption.
  • Schema Discovery: Discover and retrieve schema definitions for each type in the repository.
  • Individual Object Retrieval: Retrieve specific digital objects by their handle identifier with complete metadata.

MCP Architecture

Resources

  • cordra://objects/{prefix}/{suffix} - Retrieve a specific object by its handle identifier
  • cordra://schemas/{schema_name} - Schema definition for a specific type.
  • cordra://design - Design document containing the overall structure and configuration of the Cordra repository.

Tools

  • search_objects - Search for digital objects using a query string.

Configuration

The MCP server can be configured using environment variables with the CORDRA_ prefix:

  • CORDRA_BASE_URL - Cordra server URL (default: https://localhost:8443)
  • CORDRA_USERNAME - Username for authentication (optional)
  • CORDRA_PASSWORD - Password for authentication (optional)
  • CORDRA_VERIFY_SSL - SSL certificate verification (default: true)
  • CORDRA_TIMEOUT - Request timeout in seconds (default: 30)
  • CORDRA_MAX_SEARCH_RESULTS - Maximum search results (default: 1000)

Usage

Run the MCP server:

uv run mcp-cordra

Claude Code

You can add this MCP to Claude Code by registering it in the settings of your project or creating a .mcp.json file in your workdir:

Example using the docker build:

{
  "mcpServers": {
    "cordra": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CORDRA_BASE_URL",
        "ghcr.io/dnlbauer/cordra-mcp:latest"
      ],
      "env": {
        "CORDRA_BASE_URL": "https://cordra.example.de"
      }
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cordra_mcp-1.0.0.tar.gz (52.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cordra_mcp-1.0.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file cordra_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: cordra_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cordra_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ad908f286188874e0bc89536e8a014f1562cc1a6c840858ce6623c732020cf1f
MD5 7d330cfb66d594f56ac666ecf23f385a
BLAKE2b-256 c7f7179fa81c73e0c717e35fb0d85ed7c8be798920d19bbb86005dc0457fe0af

See more details on using hashes here.

Provenance

The following attestation bundles were made for cordra_mcp-1.0.0.tar.gz:

Publisher: ci.yml on dnlbauer/cordra-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cordra_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cordra_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cordra_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 132472bae45ab0e5da38c4275d337616227ecbe04ba29bcab597efb0c6e02e56
MD5 9041de4e40ebc8008763e1caae50652d
BLAKE2b-256 8ad54890ca67d29bfd5ef0409664569e6798d399cab1ad9fec7fcf615d33c213

See more details on using hashes here.

Provenance

The following attestation bundles were made for cordra_mcp-1.0.0-py3-none-any.whl:

Publisher: ci.yml on dnlbauer/cordra-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page