# get_csrf_token

A read tool on the NapCat MCP Server MCP server.

Agent View of the PolicyLayer registry record for `get_csrf_token`. HTML page: https://policylayer.com/tools/1021143806-napcat-mcp/get-csrf-token

## Facts

- Tool: `get_csrf_token`
- Server: NapCat MCP Server (`1021143806/napcat_mcp`) — https://policylayer.com/tools/1021143806-napcat-mcp.md
- Homepage: https://github.com/1021143806/napcat_mcp
- Risk category: Read (Low risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_csrf_token",
    "arguments": {}
  }
}
```

## Why get_csrf_token is rated Low

The tool retrieves a CSRF token, which is informational data used for security purposes. While not modifying data directly, obtaining security tokens can enable subsequent attacks if misused by an agent (e.g., to craft authenticated requests for destructive operations). However, the tool itself only reads/retrieves the token.

From the tool's own definition: "Tool name 'get_csrf_token' and description 'Get CSRF token' indicate retrieval of a security token with no direct data modification or deletion. This is a read operation that queries/retrieves credentials."

## Use case

AI agents call get_csrf_token to retrieve information from NapCat MCP Server without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches NapCat MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "get_csrf_token": {}
  }
}
```

## Other tools on NapCat MCP Server (56)

- `delete_essence_msg` — Destructive — https://policylayer.com/tools/1021143806-napcat-mcp/delete-essence-msg.md
- `delete_group_file` — Destructive — https://policylayer.com/tools/1021143806-napcat-mcp/delete-group-file.md
- `delete_msg` — Destructive — https://policylayer.com/tools/1021143806-napcat-mcp/delete-msg.md
- `set_group_kick` — Destructive — https://policylayer.com/tools/1021143806-napcat-mcp/set-group-kick.md
- `set_group_ban` — Execute — https://policylayer.com/tools/1021143806-napcat-mcp/set-group-ban.md
- `set_group_whole_ban` — Execute — https://policylayer.com/tools/1021143806-napcat-mcp/set-group-whole-ban.md
- `can_send_image` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/can-send-image.md
- `can_send_record` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/can-send-record.md
- `get_cookies` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-cookies.md
- `get_credentials` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-credentials.md
- `get_essence_msg_list` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-essence-msg-list.md
- `get_forward_msg` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-forward-msg.md
- `get_friend_list` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-friend-list.md
- `get_friend_msg_history` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-friend-msg-history.md
- `get_group_announcement_list` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-announcement-list.md
- `get_group_at_all_remain` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-at-all-remain.md
- `get_group_file_system_info` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-file-system-info.md
- `get_group_file_url` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-file-url.md
- `get_group_files_by_folder` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-files-by-folder.md
- `get_group_honor_info` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-honor-info.md
- `get_group_ignore_add_request` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-ignore-add-request.md
- `get_group_info` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-info.md
- `get_group_info_ex` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-info-ex.md
- `get_group_list` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-list.md
- `get_group_member_info` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-member-info.md
- `get_group_member_list` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-member-list.md
- `get_group_msg_history` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-msg-history.md
- `get_group_root_files` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-root-files.md
- `get_group_system_msg` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-group-system-msg.md
- `get_image` — Read — https://policylayer.com/tools/1021143806-napcat-mcp/get-image.md
- …and 26 more: https://policylayer.com/tools/1021143806-napcat-mcp.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=1021143806-napcat-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/1021143806-napcat-mcp
