How does AnQiCMS be accessed and called by Claude, Cursor and other external AI clients: MCP Server and external AI clients.

AnQiCMS v3.6.5 version introduced the MCP Server rebuilt based on the intent directory, which unifies various operation interfaces within the system into a standardized tool set.This Server supports Bearer Token authentication, allowing external AI clients (such as Claude Desktop, Cursor) to connect through the standard MCP protocol and call system functions.The core design includes the classification management of intent directories, round-level operation approval mechanism, and default closing strategy for high-risk areas, ensuring system security while providing strong automation capabilities.

The architecture and intent directory of MCP Server.

The MCP (Model Context Protocol) is a standardized protocol proposed by Anthropic for enabling large language models to interact with external systems. The MCP Server in AnQiCMS v3.6.5 implementation of this protocol divides the operational interfaces within the system into multiple intent directories (content domain, SEO domain, user domain, operation and maintenance domain, etc.), each containing several specific tools.

The server uses a three-tier architecture: the intent directory layer is responsible for tool classification, the authentication layer verifies identity through Bearer Token, and the execution layer routes to the corresponding business logic. This design allows new tools to be registered only in the intent directory, and different domains can set different exposure ranges and approval strategies.

Bearer Token authentication and round-level approval

AnQiCMS uses Bearer Token for MCP Server authentication. After generating the access token in the background, it is configured to the AI client, and the client carries it in the HTTP Header with each requestAuthorization: Bearer <token>. It is recommended to allocate independent Tokens for different clients for easy auditing and revocation.

For write operations, the system introduces a round-level approval mechanism: After the AI initiates a request, the Server returns a 'pending confirmation' status and preview. The human user reviews and sends a confirmation command to execute. When multiple consecutive write operations need to be performed, they can be merged into a single confirmation request for batch approval, which improves efficiency while maintaining safety controls.

The integration steps of Claude and Cursor

Connect to Claude Desktop: Add a new Server in the set 'MCP Servers', fill in the MCP endpoint URL and Bearer Token of AnQiCMS. After successful connection, Claude will automatically load the list of available tools.

Connect to Cursor: Select 'Connect to MCP Server' in the command panel, enter the endpoint URL and Token. After connection, Cursor's code completion and chat function can call the system API.

Both client experiences are similar, Claude is more suitable for natural language interaction, and Cursor focuses on code editing scenarios.

The default close strategy for high-risk domains

For security reasons, AnQiCMS sets the backup/restore, upgrade, multi-site management and other high-risk operation domains to default closed. The tools in these domains will not appearlist_toolsunless the administrator explicitly turns on the exposure switch and confirms twice. This default closed design follows the principle of least privilege, and even if the Token leaks, high-risk operations cannot be performed.

Common questions

Question: Does MCP Server support HTTPS?

Answer: Yes. If the site is configured with an SSL certificate, the MCP endpoint will automatically use the HTTPS protocol. It is recommended to always enable HTTPS when exposed to the public network.

Question: Can a Token be restricted to only call tools in specific domains?

Answer: Yes. When generating a Token, you can bind a list of allowed domains, so even if the Token is leaked, the scope of impact will be limited to the authorized domains.

Question: Can round-level approval be skipped?

Answer: Read operations do not require approval and return results directly. Write operations cannot be completely skipped, but the number of confirmations can be reduced by merging confirmations.

Ask: Will the number of MCP tools change with the version?

Yes. As new features are added, the number of tools in the intent directory will increase. The specific number is based on the interface returned for the current version.list_toolsinterface as the standard.