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.
Architecture & Access Levels
Section titled “Architecture & Access Levels”HashEntry exposes three dedicated MCP server endpoints tailored to different security and permission tiers:
| Endpoint | Access Level | Authentication | Capabilities |
|---|---|---|---|
https://system.hashentry.com/mcp/public | Public | None (Anonymous) | Run website CMP scans, check cookie library, view plans and knowledge base. |
https://system.hashentry.com/mcp/tenant | Tenant | Bearer Token (he_mcp_...) | Manage sites, trigger cookie audits, update banner design, edit and publish legal documents, view consent metrics. |
https://system.hashentry.com/mcp/reseller | Reseller | Bearer Token (he_mcp_...) | Manage multi-tenant client portfolios, commissions, balance, and reseller support tickets. |
Authentication & Personal Access Tokens
Section titled “Authentication & Personal Access Tokens”For Tenant and Reseller servers, requests must include a Personal Access Token (he_mcp_...).
Generating Tokens via HashEntry Dashboard
Section titled “Generating Tokens via HashEntry Dashboard”- Log into your HashEntry App Dashboard.
- Navigate to Settings → AI & MCP Tokens.
- Click Create New MCP Token, provide a descriptive name and expiration period.
- Copy the generated
he_mcp_...key and store it securely.
Cloud AI Integration via OAuth 2.1
Section titled “Cloud AI Integration via OAuth 2.1”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.
1. Protocol Endpoints & Metadata
Section titled “1. Protocol Endpoints & Metadata”When configuring your AI platform, use the following standard OAuth 2.1 endpoints:
| Parameter | Value / Endpoint | Description |
|---|---|---|
| RFC 8414 Discovery Document | https://system.hashentry.com/.well-known/oauth-authorization-server | Returns all server capability and endpoint metadata. |
| Authorization Endpoint (Auth URL) | https://app.hashentry.com/oauth/authorize | User consent screen and organization selection. |
| Token Endpoint (Token URL) | https://system.hashentry.com/oauth/token | Exchanges authorization code for an access token. |
| Grant Type | authorization_code | Standard OAuth 2.1 authorization code flow. |
| PKCE Support | S256 (Recommended) or plain | Proof Key for Code Exchange security. |
| Supported Scopes | tenant, reseller, all | Requested access permission tier. |
2. Registering an OAuth 2.1 Client in HashEntry
Section titled “2. Registering an OAuth 2.1 Client in HashEntry”- Log into your HashEntry App Dashboard.
- Navigate to Settings → AI & MCP Tokens.
- Under the Registered OAuth 2.1 Clients card, click Add New OAuth Client.
- Select your target platform (Google Gemini, ChatGPT Actions, Claude Web, or Custom Client).
- Enter the Redirect URI / Callback URL provided by your AI service.
- Copy the generated Client ID and the one-time Client Secret.
- Paste these credentials into your AI agent’s OAuth authentication settings.
3. User Consent & Multi-Organization Scope
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_codeis generated and returned to your AI provider.
AI Client Configuration
Section titled “AI Client Configuration”1. Cursor IDE Setup
Section titled “1. Cursor IDE Setup”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.
- Open Connectors in Claude’s settings (labelled Customize → Connectors or Settings → Connectors, depending on the version).
- Click Add, then Add custom connector.
- Enter a name (for example
HashEntry) and the server URL:https://system.hashentry.com/mcp/tenant. - 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
Authorizationwith the valueBearer he_mcp_YOUR_TOKEN_HERE. The public server (/mcp/public) needs no sign-in. - 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.
3. Claude Code
Section titled “3. Claude Code”Add the server from a terminal (Claude Code MCP documentation):
claude mcp add --transport http hashentry https://system.hashentry.com/mcp/tenant \ --header "Authorization: Bearer he_mcp_YOUR_TOKEN_HERE"4. VS Code (GitHub Copilot)
Section titled “4. VS Code (GitHub Copilot)”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(orallfor combined tenant & reseller access) - Token Request Method:
POST(Basic Auth Header or Request Body)
Available MCP Tools Reference
Section titled “Available MCP Tools Reference”1. Public Tools (/mcp/public)
Section titled “1. Public Tools (/mcp/public)”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.
2. Tenant Management Tools (/mcp/tenant)
Section titled “2. Tenant Management Tools (/mcp/tenant)”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.
4. Permissions
Section titled “4. Permissions”- The tool list is always complete.
tools/listreturns 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_DENIEDnaming the missing permission (for exampledocument.publish), so the assistant can tell you exactly what to ask your organization admin for. - Check before acting.
list_my_permissions(optionaltenant_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.
Example Natural Language Prompts
Section titled “Example Natural Language Prompts”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.”