Skip to main content
Glama
HiveAuth MCP Server

HiveAuth MCP Server

by AlyssonM

HiveAuth MCP Server

A Model Context Protocol (MCP) server that provides tools for verifiable credential operations using the HiveAuth ecosystem. This server exposes HiveAuth's credential management capabilities to LLM applications via the standardized MCP interface.

Overview

The HiveAuth MCP Server provides these tools to LLM applications:

  • Issue Credential: Create new verifiable credentials with HiveAuth

  • Verify Credential: Verify individual credentials for authenticity and status

  • Verify Presentation: Verify complete presentations containing multiple credentials

  • Revoke Credential: Revoke credentials using status lists

  • Create Presentation Definition: Build DIF Presentation Exchange definitions

  • Evaluate Presentation: Test credentials against presentation definitions

Related MCP server: Agentforce MCP Integration Server

Installation

cd hiveauth-mcp
npm install

Configuration

Copy the example environment file and configure:

cp .env.example .env

Key environment variables:

Usage

As an MCP Server

The server is designed to be used with MCP-compatible clients (like Claude Desktop, IDEs with MCP support, etc.):

# Start the server
npm run dev

The server communicates via stdio and will be available for MCP clients to connect to.

Building for Production

npm run build
npm start

Available Tools

issue_credential

Issues a new verifiable credential using HiveAuth.

Parameters:

  • credentialSubject (object): The subject data for the credential

  • type (array): Credential types (e.g., ["VerifiableCredential", "EducationCredential"])

  • vcVersion (string, optional): VC Data Model version ("1.1" or "2.0", default: "2.0")

  • expirationDate (string, optional): ISO 8601 expiration date

verify_credential

Verifies a verifiable credential for authenticity and status.

Parameters:

  • credential (object): The verifiable credential to verify

verify_presentation

Verifies a verifiable presentation containing multiple credentials.

Parameters:

  • presentation (object): The verifiable presentation to verify

revoke_credential

Revokes a verifiable credential using status lists.

Parameters:

  • credentialId (string): The ID of the credential to revoke

  • statusListIndex (number): The status list index of the credential

create_presentation_definition

Creates a DIF Presentation Exchange definition for requesting specific credentials.

Parameters:

  • id (string): Unique identifier for the presentation definition

  • name (string, optional): Human-readable name

  • purpose (string, optional): Purpose of the presentation request

  • inputDescriptors (array): Input descriptors defining what credentials are requested

evaluate_presentation

Evaluates credentials against a presentation definition using DIF PEX.

Parameters:

  • presentationDefinition (object): The presentation definition to evaluate against

  • credentials (array): Array of credentials to evaluate

Integration with LLM Applications

This MCP server allows LLM applications to:

  1. Issue credentials on behalf of users: Create education, employment, or other types of credentials

  2. Verify credentials in real-time: Check authenticity and revocation status

  3. Build presentation requests: Create complex credential requirements using DIF PEX

  4. Evaluate credential compliance: Test if available credentials meet specific requirements

  5. Manage credential lifecycle: Handle revocation and status updates

Example Usage in Claude Desktop

Add this server to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "hiveauth": {
      "command": "node",
      "args": ["/path/to/hiveauth-mcp/dist/index.js"],
      "env": {
        "HIVEAUTH_API_BASE_URL": "http://localhost:3000"
      }
    }
  }
}

Then you can ask Claude to:

  • "Issue a university degree credential for John Smith with Computer Science major"

  • "Verify this credential for authenticity"

  • "Create a presentation definition requesting employment credentials"

  • "Check if these credentials satisfy the job application requirements"

Architecture

  • MCP SDK: Built on the official Model Context Protocol TypeScript SDK

  • HiveAuth Integration: Calls HiveAuth API endpoints for all credential operations

  • Tool-based Interface: Exposes functionality as discrete, composable tools

  • Standards Compliance: Supports W3C VC Data Model 1.1/2.0 and DIF Presentation Exchange

Development Status

This implementation includes:

  • ✅ Complete MCP server with stdio transport

  • ✅ All core HiveAuth credential operations as tools

  • ✅ W3C VC 1.1 and 2.0 support

  • ✅ DIF Presentation Exchange Protocol integration

  • ✅ Comprehensive error handling and validation

  • ✅ Production-ready TypeScript implementation

  • 🚧 HTTP transport support

  • 🚧 Authentication/authorization mechanisms

  • 🚧 Tool input validation with Zod schemas

Available Tools

13 tools
batch_issue_credentialsB

Issue multiple verifiable credentials in parallel or sequentially. Supports up to 50 credentials per batch with comprehensive error handling and performance metrics.

Inputs: credentials (required), parallel.

batch_verify_credentialsA

Verify multiple verifiable credentials efficiently. Supports parallel processing, early termination on errors, and detailed verification statistics.

Inputs: credentials (required), parallel, stopOnFirstError.

create_presentation_definitionC

Create a DIF Presentation Exchange v2.0 definition for requesting specific credentials. Defines input descriptors and constraints for credential selection.

Inputs: id (required), inputDescriptors (required), name, purpose.

derive_credentialC

Derive credentials with selective disclosure using JSON-LD frames. Supports credential chaining and zero-knowledge proofs for privacy-preserving presentations.

Inputs: originalCredential (required), frame (required), nonce.

evaluate_presentationC

Evaluate credentials against a presentation definition using DIF Presentation Exchange Protocol. Tests credential compliance and matching.

Inputs: presentationDefinition (required), credentials (required).

generate_presentation_requestC

Generate complete presentation request flows with DIF PEX v2.0 definitions. Creates wallet-ready requests with security features, human-readable instructions, and multiple format support.

Inputs: presentationDefinition (required), verifierDid, callbackUrl, challenge, +4 more.

issue_credentialC

Issue a new verifiable credential using HiveAuth. Supports both W3C VC Data Model 1.1 and 2.0 formats with comprehensive validation.

Inputs: credentialSubject (required), type (required), vcVersion, expirationDate, +3 more.

refresh_credentialB

Refresh expiring or expired credentials using W3C Credential Refresh specification. Supports automatic service discovery and credential lifecycle management.

Inputs: credentialId (required), refreshService.

revoke_credentialC

Revoke a verifiable credential using W3C Status List 2021 specification. Updates the credential status in the bitstring status list.

Inputs: credentialId (required), statusListIndex (required), reason.

submit_presentationC

Create and submit verifiable presentations from evaluation results. Builds presentations that satisfy DIF PEX v2.0 requirements with holder binding and proof generation.

Inputs: presentationDefinition (required), credentials (required), holderDid, challenge, +1 more.

validate_presentation_definitionA

Validate presentation definitions against DIF PEX v2.0 specification. Performs comprehensive compliance checking, best practices validation, and provides improvement recommendations.

Inputs: presentationDefinition (required), strict, checkSchemas.

verify_credentialA

Verify a verifiable credential for authenticity, integrity, and revocation status. Checks signature, issuer validity, and status list compliance.

Inputs: credential (required).

verify_presentationC

Verify a verifiable presentation containing multiple credentials. Validates presentation signature, holder verification, and all included credentials.

Inputs: presentation (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific operations in the verifiable credentials domain, such as issuing, verifying, refreshing, revoking, and managing presentations. The descriptions highlight unique functions like batch processing, selective disclosure, and compliance validation, with no apparent overlap that would cause agent confusion.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with underscores, such as 'issue_credential', 'verify_credential', and 'create_presentation_definition'. This uniformity makes the tool set predictable and easy to navigate, supporting clear agent selection.

    Tool Count5/5

    With 13 tools, the server is well-scoped for its domain of verifiable credentials management, covering essential operations like issuance, verification, revocation, and presentation handling. Each tool earns its place by addressing a specific aspect of the workflow without redundancy or bloat.

    Completeness5/5

    The tool set provides comprehensive coverage of the verifiable credentials lifecycle, including CRUD-like operations (issue, verify, revoke, refresh) and advanced features like presentation definitions and evaluations. There are no obvious gaps, ensuring agents can handle end-to-end workflows without dead ends.

    Related MCP Connectors

    Related MCP Servers