HashBuilds Secure Prompts MCP Server
An MCP (Model Context Protocol) server that allows AI assistants like Claude Code to register and verify prompts with HashBuilds Secure Prompts.
What is MCP?
MCP (Model Context Protocol) is a standard that lets AI assistants call external tools. When you configure this MCP server with Claude Code, you can say things like:
"Register this prompt as a secure prompt"
"Verify prompt ID xyz123"
"Generate embed code for my secure prompt"
Installation
1. Install dependencies and build
2. Configure Claude Code
Add this MCP server to your Claude Code settings. There are two ways:
Option A: Project-level config (recommended)
Create/edit .claude/config.json in your project:
Option B: Global config
Edit ~/.config/claude/config.json:
3. Restart Claude Code
After adding the config, restart Claude Code for it to pick up the new MCP server.
Available Tools
register_secure_prompt
Register a prompt for security verification. This scans the prompt for:
Hidden instruction injection
Data exfiltration patterns
Invisible characters
Jailbreak attempts
URLs/backlinks
Parameters:
promptText(required): The prompt text to registerownerEmail(optional): Email for notificationssiteDomain(optional): Domain where prompt will be displayed
Example usage in Claude Code:
verify_secure_prompt
Check the verification status of an existing prompt.
Parameters:
promptId(required): The ID of the prompt to verify
Example:
get_embed_code
Generate HTML and React embed code for displaying the secure prompt badge.
Parameters:
promptId(required): The prompt ID
Example:
Environment Variables
HASHBUILDS_API_URL: Override the API base URL (default:https://hashbuilds.com/api/secure-prompts)
For local development:
How It Works
Developer asks Claude Code to register a prompt
Claude Code calls the
register_secure_prompttool via MCPMCP server sends the prompt to HashBuilds API
HashBuilds scans the prompt for security issues
Results returned to Claude Code with embed code
Developer adds the embed code to their website
Example Workflow
Troubleshooting
MCP server not connecting
Check that the path to
dist/index.jsis correctEnsure
pnpm buildcompleted without errorsRestart Claude Code after config changes
API errors
Check your internet connection
Verify HashBuilds API is reachable
For local dev, ensure the local server is running