pathguard-mcp

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.

Category
访问服务器

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, and PATHGUARD_MCP_ALLOWED_HOSTS=mcp.example.com instead of command-line flags if that fits your deployment platform. PORT is also honoured when PATHGUARD_MCP_PORT is unset.
  • Keep the default stdio transport 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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选