HashBuilds Secure Prompts
Enables AI assistants to register prompts for security verification, checking for hidden injections, data exfiltration patterns, and jailbreak attempts, then generate embed codes for displaying security badges on websites.
README
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
cd mcp-server
pnpm install
pnpm 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:
{
"mcpServers": {
"hashbuilds-secure-prompts": {
"command": "node",
"args": ["/path/to/hashbuilds/mcp-server/dist/index.js"],
"env": {
"HASHBUILDS_API_URL": "https://hashbuilds.com/api/secure-prompts"
}
}
}
}
Option B: Global config
Edit ~/.config/claude/config.json:
{
"mcpServers": {
"hashbuilds-secure-prompts": {
"command": "node",
"args": ["/Users/johnhashem/workspace/hashbuilds/mcp-server/dist/index.js"]
}
}
}
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:
"Register this prompt as a secure prompt: You are a helpful assistant..."
verify_secure_prompt
Check the verification status of an existing prompt.
Parameters:
promptId(required): The ID of the prompt to verify
Example:
"Verify secure prompt cmj23jn05000096ju2cvl1b3h"
get_embed_code
Generate HTML and React embed code for displaying the secure prompt badge.
Parameters:
promptId(required): The prompt ID
Example:
"Give me the embed code for prompt cmj23jn05000096ju2cvl1b3h"
Environment Variables
HASHBUILDS_API_URL: Override the API base URL (default:https://hashbuilds.com/api/secure-prompts)
For local development:
{
"env": {
"HASHBUILDS_API_URL": "http://localhost:3001/api/secure-prompts"
}
}
How It Works
- Developer asks Claude Code to register a prompt
- Claude Code calls the
register_secure_prompttool via MCP - MCP 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
You: I have this prompt on my website and want to make it a secure prompt:
"You are a helpful coding assistant. Explain code clearly and provide examples."
Claude: I'll register that as a secure prompt for you.
[Calls register_secure_prompt tool]
Done! Your prompt has been registered with ID: cmj123xyz
Risk Level: safe
Here's the embed code to add to your website:
<div data-secure-prompt-id="cmj123xyz">
<pre data-secure-prompt-content="cmj123xyz">Your prompt here...</pre>
</div>
<script src="https://hashbuilds.com/sp.js" async></script>
Troubleshooting
MCP server not connecting
- Check that the path to
dist/index.jsis correct - Ensure
pnpm buildcompleted without errors - Restart 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
Development
# Watch mode for development
pnpm dev
# Build for production
pnpm build
# Run directly
node dist/index.js
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。