Skip to content

Model Context Protocol (MCP) Integration

The Model Context Protocol (MCP) is an open standard created by Anthropic that allows Large Language Models (LLMs), AI IDEs (such as Cursor, Windsurf), and autonomous coding agents to securely access external tools, databases, and operational APIs.

HashEntry provides official Streamable-HTTP MCP servers allowing developers and privacy officers to automate cookie consent scans, configure consent banners, draft privacy policies, and inspect compliance stats directly using natural language within their AI workflows.


HashEntry exposes three dedicated MCP server endpoints tailored to different security and permission tiers:

EndpointAccess LevelAuthenticationCapabilities
https://system.hashentry.com/mcp/publicPublicNone (Anonymous)Run website CMP scans, check cookie library, view plans and knowledge base.
https://system.hashentry.com/mcp/tenantTenantBearer Token (he_mcp_...)Manage sites, trigger cookie audits, update banner design, edit and publish legal documents, view consent metrics.
https://system.hashentry.com/mcp/resellerResellerBearer Token (he_mcp_...)Manage multi-tenant client portfolios, commissions, balance, and reseller support tickets.

For Tenant and Reseller servers, requests must include a Personal Access Token (he_mcp_...).

  1. Log into your HashEntry App Dashboard.
  2. Navigate to Settings → AI & MCP Tokens.
  3. Click Create New MCP Token, provide a descriptive name and expiration period.
  4. Copy the generated he_mcp_... key and store it securely.

While static Personal Access Tokens (he_mcp_...) are ideal for local developer environments (Cursor, Claude Desktop), cloud-hosted AI agents such as Google Gemini Web, ChatGPT Custom Actions / GPTs, and Claude Web require delegated browser-based authorization on behalf of users.

HashEntry provides native, standards-compliant OAuth 2.1 (RFC 6749, RFC 8414, PKCE) authentication.

When configuring your AI platform, use the following standard OAuth 2.1 endpoints:

ParameterValue / EndpointDescription
RFC 8414 Discovery Documenthttps://system.hashentry.com/.well-known/oauth-authorization-serverReturns all server capability and endpoint metadata.
Authorization Endpoint (Auth URL)https://app.hashentry.com/oauth/authorizeUser consent screen and organization selection.
Token Endpoint (Token URL)https://system.hashentry.com/oauth/tokenExchanges authorization code for an access token.
Grant Typeauthorization_codeStandard OAuth 2.1 authorization code flow.
PKCE SupportS256 (Recommended) or plainProof Key for Code Exchange security.
Supported Scopestenant, reseller, allRequested access permission tier.

2. Registering an OAuth 2.1 Client in HashEntry

Section titled “2. Registering an OAuth 2.1 Client in HashEntry”
  1. Log into your HashEntry App Dashboard.
  2. Navigate to Settings → AI & MCP Tokens.
  3. Under the Registered OAuth 2.1 Clients card, click Add New OAuth Client.
  4. Select your target platform (Google Gemini, ChatGPT Actions, Claude Web, or Custom Client).
  5. Enter the Redirect URI / Callback URL provided by your AI service.
  6. Copy the generated Client ID and the one-time Client Secret.
  7. Paste these credentials into your AI agent’s OAuth authentication settings.
Section titled “3. User Consent & Multi-Organization Scope”

When an external AI agent initiates authentication, the user is securely redirected to HashEntry’s consent screen:

  • If the user belongs to a single organization, the respective tenant or reseller permissions are displayed.
  • If the user has access to multiple organizations (Tenants or Resellers), they can choose whether to authorize access to All Organizations or Selected Organizations Only.
  • Once confirmed, a secure authorization_code is generated and returned to your AI provider.

Add the HashEntry MCP configuration to your workspace or global settings.

Create or update .cursor/mcp.json in your project root:

{
"mcpServers": {
"hashentry-public": {
"url": "https://system.hashentry.com/mcp/public"
},
"hashentry-tenant": {
"url": "https://system.hashentry.com/mcp/tenant",
"headers": {
"Authorization": "Bearer he_mcp_YOUR_TOKEN_HERE"
}
}
}
}

2. Claude (Desktop and Web) — Custom Connector

Section titled “2. Claude (Desktop and Web) — Custom Connector”

Claude connects to remote MCP servers through custom connectors, in the Claude Desktop app and on claude.ai alike. claude_desktop_config.json is only for local servers that Claude Desktop starts as a process (command / args); a url entry in that file is not a documented form, so do not use it for HashEntry.

  1. Open Connectors in Claude’s settings (labelled Customize → Connectors or Settings → Connectors, depending on the version).
  2. Click Add, then Add custom connector.
  3. Enter a name (for example HashEntry) and the server URL: https://system.hashentry.com/mcp/tenant.
  4. Choose how Claude authenticates: either sign in with OAuth (use the Client ID and Client Secret of an OAuth client registered in HashEntry, see above), or add a fixed request header Authorization with the value Bearer he_mcp_YOUR_TOKEN_HERE. The public server (/mcp/public) needs no sign-in.
  5. Click Add. On Team and Enterprise plans an owner adds the connector for the organization first.

The connection is made from Anthropic’s servers, not from your computer. Menu names change between Claude versions; the vendor’s current instructions are in Get started with custom connectors using remote MCP and Connect to remote MCP servers.

Add the server from a terminal (Claude Code MCP documentation):

Terminal window
claude mcp add --transport http hashentry https://system.hashentry.com/mcp/tenant \
--header "Authorization: Bearer he_mcp_YOUR_TOKEN_HERE"

Create .vscode/mcp.json in your workspace. The token is asked for once and is not written to the file (VS Code MCP documentation):

{
"inputs": [
{
"type": "promptString",
"id": "hashentry-token",
"description": "HashEntry MCP token",
"password": true
}
],
"servers": {
"hashentry": {
"type": "http",
"url": "https://system.hashentry.com/mcp/tenant",
"headers": {
"Authorization": "Bearer ${input:hashentry-token}"
}
}
}
}

5. Cloud AI Services (Google Gemini, ChatGPT, Claude Web)

Section titled “5. Cloud AI Services (Google Gemini, ChatGPT, Claude Web)”

Configuration values for Google Gemini Web, ChatGPT Custom GPTs, or custom autonomous agents using OAuth 2.1:

  • Auth Type: OAuth 2.1 / OAuth 2.0
  • Grant Type: Authorization Code
  • Client ID: (Client ID copied from HashEntry Dashboard)
  • Client Secret: (Client Secret copied at creation time)
  • Authorization URL: https://app.hashentry.com/oauth/authorize
  • Token URL: https://system.hashentry.com/oauth/token
  • Scope: tenant (or all for combined tenant & reseller access)
  • Token Request Method: POST (Basic Auth Header or Request Body)

Available without an account:

  • start_cmp_scan: Initiates a comprehensive cookie and privacy compliance scan on any web URL.
  • get_cmp_scan_status: Checks the real-time background status of an ongoing audit.
  • get_cmp_scan_report: Retrieves the final categorized cookie audit report, tracking scripts, and compliance score.
  • search_cookie_definitions: Queries the HashEntry global database for cookie classification, provider information, and default lifespan.
  • get_pricing_plans: Retrieves active HashEntry subscription packages and quota limits.
  • search_knowledge_base: Retrieves official implementation guides, legal compliance FAQs, and developer instructions.
  • verify_consent_proof: Verify cryptographic integrity of consent tokens or SHA-256 proof hashes along with RFC 3161 TSA status.

Requires a valid tenant token:

  • list_sites: Lists all websites registered under your tenant account.
  • get_site: Fetches specific site metadata, API keys, platform type, and domain settings.
  • create_site: Creates and configures a new website container on HashEntry.
  • trigger_site_cookie_scan: Initiates an automated cookie discovery audit on a registered site.
  • list_site_cookies: Lists all detected or customized cookies and their active consent category assignments.
  • get_banner_config: Retrieves active layout, color palette, position, and legal regulation settings for a site banner.
  • update_banner_config: Updates banner appearance, consent modes, and behavioral properties.
  • list_documents: Lists legal documents (Cookie Policy, Privacy Notice, Terms).
  • get_document: Retrieves the full markdown or HTML content of a specific legal policy.
  • save_document_draft: Saves new AI-generated clauses or legal policy revisions as a draft.
  • publish_document: Publishes and versions an approved legal policy document.
  • get_consent_stats: Returns aggregated consent acceptance, rejection, and category distribution percentages.
  • list_tickets & create_ticket: Submits inquiries or technical support tickets to HashEntry support.
  • get_quota_usage: Displays active quota consumption (scans, site limits, API requests).

3. Reseller Operations Tools (/mcp/reseller)

Section titled “3. Reseller Operations Tools (/mcp/reseller)”

Requires reseller authorization:

  • get_reseller_dashboard: Returns total client count, commission balance, and payout statuses.
  • list_reseller_tenants: Lists all client organizations operating under your agency umbrella.
  • create_reseller_tenant: Provisions a new client tenant organization.
  • list_commissions: Retrieves detailed commission settlement history.
  • list_reseller_tickets & create_reseller_ticket: Manages priority reseller partner support channels.
  • The tool list is always complete. tools/list returns every tool of the server, regardless of what the signed-in user is allowed to do. AI clients cache this list, while permissions differ per organization (a token can cover several) and can change at any time — a filtered list would be both unstable and misleading.
  • Permissions are enforced on every call. A token can never exceed the permissions of the user it belongs to; a read-only token additionally cannot modify anything. A refused call returns PERMISSION_DENIED naming the missing permission (for example document.publish), so the assistant can tell you exactly what to ask your organization admin for.
  • Check before acting. list_my_permissions (optional tenant_id / reseller_id) returns your role(s), the token ability (read_only / read_write) and, for every tool, { name, allowed, missing_permission? } in that organization or reseller account.
  • Each tool states what it needs. Every tool description ends with a line such as Required permission: site.list.

Once configured in Cursor or Claude Desktop, you can interact with HashEntry using everyday language:

“Analyze https://example.com for GDPR compliance and list all untracked third-party marketing cookies.”

“List all my registered websites on HashEntry and tell me their active consent acceptance rates.”

“Review our Cookie Policy document draft, add a section explaining Google Consent Mode v2, and save it as a new draft.”

“Update our banner design to use dark mode with modern rounded corners and floating position.”