{"id":29260197,"url":"https://github.com/dnlbauer/cordra-mcp","last_synced_at":"2026-01-20T16:47:30.561Z","repository":{"id":302067416,"uuid":"1010843499","full_name":"dnlbauer/cordra-mcp","owner":"dnlbauer","description":"A Model Context Protocol (MCP) server for enabling AI Assistants to interact with the Cordra Object Repository","archived":false,"fork":false,"pushed_at":"2025-06-30T11:44:32.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T12:21:53.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnlbauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-29T23:00:20.000Z","updated_at":"2025-06-30T11:44:35.000Z","dependencies_parsed_at":"2025-06-30T12:21:57.443Z","dependency_job_id":"1e9d2763-a25d-4f7d-8bda-8900baefae79","html_url":"https://github.com/dnlbauer/cordra-mcp","commit_stats":null,"previous_names":["dnlbauer/cordra-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dnlbauer/cordra-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlbauer%2Fcordra-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlbauer%2Fcordra-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlbauer%2Fcordra-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlbauer%2Fcordra-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnlbauer","download_url":"https://codeload.github.com/dnlbauer/cordra-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlbauer%2Fcordra-mcp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263467866,"owners_count":23471152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-04T07:30:57.358Z","updated_at":"2026-01-20T16:47:30.557Z","avatar_url":"https://github.com/dnlbauer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cordra MCP Server\n\nCordra is a configurable digital object repository system that stores digital objects as JSON documents\nwith associated metadata and optional binary payloads.\nThis Model Context Protocol (MCP) server provides AI assistants with read-only\naccess to explore and understand Cordra repositories.\nThis allows AI systems to quickly understand the data model and schema structure\nof a Cordra repository and to explore digital objects and their relationships.\n\n![Example](example.gif)\n\n## Features\n\n- **Read-Only Access**: All operations are strictly read-only,\nensuring safe exploration without risk of data modification or corruption.\n- **Schema Discovery**: Discover and retrieve schema definitions for each type in the repository.\n- **Individual Object Retrieval**: Retrieve specific digital objects by their handle identifier with complete metadata.\n\n## MCP Architecture\n\n### Tools\n\n- `list_types` - List all available types in the Cordra repository.\n  - Returns a JSON array of type names that are defined in the repository\n  - Types are returned in sorted order\n\n- `get_type_schema` - Retrieve the JSON schema definition for a specific type.\n  - `type_name` - The name of the type (e.g., \"Person\", \"Document\", \"Project\")\n  - Returns the full schema definition as JSON\n\n- `get_object` - Retrieve a digital object by its complete ID/handle.\n  - `object_id` - Complete object ID (e.g., \"test/abc123\")\n\n- `search_objects` - Search for digital objects using a query string with pagination support.\n  - `query` - Lucene/Solr compatible search query\n  - `type` - Optional filter by object type\n  - `limit` - Number of results per page (default: 25)\n  - `page_num` - Page number to retrieve, 0-based (default: 0)\n\n- `count_objects` - Count the total number of objects matching a query.\n  - `query` - Lucene/Solr compatible search query\n  - `type` - Optional filter by object type\n\n- `get_design_object` - Retrieve the Cordra design object containing repository configuration.\n  - Includes type definitions, workflow configurations, and system settings\n  - Administrative privileges are typically required to access this object\n\n#### Query Syntax\n\n**CRITICAL**: JSON properties MUST be prefixed with `/`\n\n✅ **Correct Examples:**\n- `/title:*report*` - Wildcard search in title field\n- `/author/name:Daniel` - Nested property access\n- `/status:active AND /priority:high` - Boolean operators\n- Use `type` parameter instead of including `type:` in query\n\n❌ **Wrong (will fail):**\n- `name:John` - Missing `/` prefix\n- `author/name:Daniel` - Missing leading `/`\n- `type:Person` - Use the `type` parameter instead\n\n**Operators:** `*` (wildcard), `?` (single char), `AND`, `OR`, `NOT`, `\"phrases\"`  \n\n## Configuration\n\nThe MCP server can be configured using environment variables:\n\n- `CORDRA_BASE_URL` - Cordra server URL (default: `https://localhost:8443`)\n- `CORDRA_USERNAME` - Username for authentication (optional)\n- `CORDRA_PASSWORD` - Password for authentication (optional)\n- `CORDRA_VERIFY_SSL` - SSL certificate verification (default: `true`)\n- `CORDRA_TIMEOUT` - Request timeout in seconds (default: `30`)\n- `LOGLEVEL` - Logging level (default: `INFO`, options: `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`)\n\n## Usage\n\nRun the MCP server:\n\n```bash\nuv run mcp-cordra\n```\n\n### Claude Code\n\nYou can add this MCP to Claude Code by registering it in the settings\nof your project or creating a `.mcp.json` file in your workdir:\n\nExample using the docker build:\n\n```json\n{\n  \"mcpServers\": {\n    \"cordra\": {\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"CORDRA_BASE_URL\",\n        \"ghcr.io/dnlbauer/cordra-mcp:latest\"\n      ],\n      \"env\": {\n        \"CORDRA_BASE_URL\": \"https://cordra.example.de\"\n      }\n    }\n  }\n}\n```\n\nExample using the python package with `uvx`:\n\n```json\n{\n  \"mcpServers\": {\n    \"cordra\": {\n      \"command\": \"uvx\",\n      \"args\": [\n        \"cordra-mcp\"\n      ],\n      \"env\": {\n        \"CORDRA_BASE_URL\": \"https://cordra.example.de\"\n      }\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnlbauer%2Fcordra-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnlbauer%2Fcordra-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnlbauer%2Fcordra-mcp/lists"}