pathguard-mcp
Enables MCP-compatible AI agents to scan crypto transactions for scam addresses, clipboard-hijack patterns, and typos, as well as report scam addresses and check usage, directly in conversation.
README
pathguard-mcp
Lets MCP-compatible AI agents check crypto transactions for scams and mistakes directly in conversation, using PathGuard. It supports local MCP clients such as Claude Desktop, Claude Code, Gemini CLI, Grok CLI, Cursor, and Codex, plus remote Streamable HTTP deployments for ChatGPT and Grok web connectors.
Available on every plan, including Free this just calls the same authenticated API endpoints as everything else, so your existing API key's quota applies.
Install
pip install pathguard-mcp
(Not published to PyPI yet for now, install directly from source: pip install -e . from this folder.)
Requires mcp >= 2.0. This was built and tested against the current MCP SDK if you're on an older version with the old FastMCP API, upgrade first (pip install --upgrade mcp), otherwise this won't work.
Get an API key
Sign up free at pathguard.cieltech.org/docs.html if you don't have one.
Configure local MCP clients
Install this package wherever the client runs, then give the server your PathGuard API key. The examples below use the installed pathguard-mcp command. If it is not on your PATH, replace it with the full executable path.
Claude Desktop
Add this to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"pathguard": {
"command": "pathguard-mcp",
"env": {
"PATHGUARD_API_KEY": "pg_your_key_here"
}
}
}
}
Restart Claude Desktop, and Claude will have access to PathGuard's tools automatically.
Claude Code
claude mcp add --transport stdio pathguard -- \
pathguard-mcp
Set PATHGUARD_API_KEY in the environment that starts Claude Code. Alternatively, use Claude Code's MCP configuration to pass that variable explicitly.
Gemini CLI
Add this entry to ~/.gemini/settings.json for a user-wide setup, or .gemini/settings.json in a project:
{
"mcpServers": {
"pathguard": {
"command": "pathguard-mcp",
"env": {
"PATHGUARD_API_KEY": "pg_your_key_here"
}
}
}
}
Or add it from the command line after exporting your key:
export PATHGUARD_API_KEY=pg_your_key_here
gemini mcp add --scope user pathguard pathguard-mcp
Grok CLI
After exporting your key, add the local stdio server:
export PATHGUARD_API_KEY=pg_your_key_here
grok mcp add pathguard -- pathguard-mcp
To store the configuration manually in ~/.grok/config.toml, use:
[mcp_servers.pathguard]
command = "pathguard-mcp"
env = { PATHGUARD_API_KEY = "${PATHGUARD_API_KEY}" }
Codex, Cursor, VS Code, and other local MCP clients
Use the same stdio server definition as the Claude Desktop example: command pathguard-mcp, no arguments, and PATHGUARD_API_KEY in its environment. The exact configuration-file location and UI differ by client; the MCP server settings are the same.
Configure remote clients: ChatGPT and Grok web
ChatGPT and Grok's browser-based custom connectors cannot launch a command on your computer. Deploy PathGuard MCP with Streamable HTTP, behind HTTPS, then enter the public endpoint in the connector UI.
Start the HTTP server locally or in your deployment environment:
export PATHGUARD_API_KEY=pg_your_key_here
pathguard-mcp --transport streamable-http --host 0.0.0.0 --port 8000 \
--allowed-host mcp.example.com
The MCP endpoint is http://<host>:8000/mcp. For ChatGPT or Grok web, publish it as a protected HTTPS URL such as https://mcp.example.com/mcp; do not expose an API key in a browser or a repository. Pass its hostname with --allowed-host (or set PATHGUARD_MCP_ALLOWED_HOSTS=mcp.example.com) so the server can safely accept requests made through that public domain. This server's PathGuard credential is server-side, so each deployed instance represents the PathGuard account associated with its PATHGUARD_API_KEY.
ChatGPT
In a ChatGPT workspace with Developer Mode enabled, create a custom MCP app, provide the public https://.../mcp endpoint, scan its tools, and save/publish it as appropriate for your workspace. ChatGPT connects only to remote MCP servers, not local stdio commands. See OpenAI's Developer Mode and MCP apps guide for current plan availability and setup controls.
Grok web
At grok.com/connectors, select New Connector then Custom, and enter the public https://.../mcp endpoint. Grok must be able to reach the server over the public internet. See xAI's custom MCP connector guide for its current connector flow.
Deployment notes
- Use Streamable HTTP for new remote deployments; it is the current MCP HTTP transport.
- Terminate TLS at your hosting platform or reverse proxy, and restrict access to trusted users or a gateway where possible. The server currently authenticates to PathGuard with one configured API key; it does not authenticate individual MCP users.
- Configure
PATHGUARD_MCP_TRANSPORT=streamable-http,PATHGUARD_MCP_HOST=0.0.0.0,PATHGUARD_MCP_PORT=8000, andPATHGUARD_MCP_ALLOWED_HOSTS=mcp.example.cominstead of command-line flags if that fits your deployment platform.PORTis also honoured whenPATHGUARD_MCP_PORTis unset. - Keep the default
stdiotransport for desktop and CLI clients.
Available tools
| Tool | What it does |
|---|---|
check_transaction |
Scan a single transaction for scam addresses, clipboard-hijack patterns, and typo mistakes |
check_transactions_batch |
Scan up to 100 transactions in one call |
report_scam_address |
Flag an address as a scam (community reporting) |
get_usage_status |
Check your current plan, quota, and usage this month |
Testing locally without a real deployment
Point at a local backend instead of production:
export PATHGUARD_API_KEY=pg_your_test_key
export PATHGUARD_API_BASE=http://localhost:8000
pathguard-mcp
Full API reference
See pathguard.cieltech.org/docs.html for complete endpoint documentation, rate limits, and flag meanings this MCP server is a thin wrapper over that same API.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.