Feature preview
AnQiCMS's built-in MCP Server is based on a unified convergence tool interface of intent directories, supporting Bearer Token authentication and round-level operation approval. It can be accessed by external AI clients such as Claude, Cursor, etc. This article details the principles of the MCP protocol, the implementation architecture of AnQiCMS, and the security mechanism
AnQiCMS built-in MCP Server, the tool interface is based on the intent directory for unified convergence, supports Bearer Token authentication and round-level operation approval (merge confirmation of write operations), and can be accessed by external AI clients such as Claude, Cursor, and others.MCP (Model Context Protocol) is an open protocol that allows AI models to access external tools and data sources, enabling AI assistants to perform queries, creation, updates, and other operations.Through the MCP interface, users can directly command AI to complete content creation and publishing workflows, greatly enhancing operational efficiency.
MCP (Model Context Protocol) is an open standard proposed by Anthropic, aiming to address the fragmentation problem of AI models integrating with external systems. MCP defines unified tool descriptions, parameter passing, and result return formats, enabling a set of tools to be used simultaneously by multiple AI clients.
The core components of MCP include: Server (the service end providing tool capabilities), Client (the AI client calling tools), and Transport (the communication channel). Server describes each tool through JSON Schema, and Client decides which tool to call and how to pass parameters based on the description.
For AnQiCMS, MCP Server encapsulates on-site functions into standardized tool interfaces, including content management, SEO configuration, user management, and so on. External AI clients can call these tools after authentication.
The intent directory is the core design of AnQiCMS MCP Server, which classifies functions according to business intent rather than technical modules. This design makes it easier for AI to understand the purpose and applicable scenarios of each tool, improving the accuracy of calls.
| Intentional domain | Contains tools | Risk Level | Default status |
|---|---|---|---|
| Content Management | Query articles, create drafts, publish content | Low | On |
| SEO Configuration | Modify TDK, submit Sitemap | Low | On |
| User management | Query users, adjust permissions | in | On |
| Site settings | Modify system configuration, navigation settings | in | On |
| backup recovery | Perform backup, restore data | High | turned off |
| System Upgrade | Check for updates, perform upgrades | High | turned off |
| Multi-site management | Create site, switch site | High | turned off |
High-risk areas (such as backup, upgrade, multi-site operations, etc., full-site operations) are default closed, and need to be explicitly enabled by the administrator to be called by MCP. This design prevents AI from making erroneous operations that may lead to systemic risks while maintaining flexibility for advanced users
Each tool's description includes: tool name, function description, parameter list, return value structure, permission requirements. The AI client determines whether to call the tool and how to construct the request based on this information
The security of the MCP interface is guaranteed by multiple layers of mechanisms. First is the Bearer Token authentication, where the client carries the Token in the Authorization header of each request, and the Server verifies the Token validity before processing the request. The Token is generated by the AnQiCMS backend, and can be set with expiration time and permission range.
Next is the IP whitelist restriction, where the enterprise can configure to allow only specific IP addresses to call the MCP interface. Combined with HTTPS encrypted transmission, it ensures that the Token and request content are not intercepted.
The third is operation log recording, all MCP calls will be recorded. Administrators can audit logs to detect abnormal behavior.
Version 3.6.6 fixes the high-risk issue that the login credentials for site switching can be forged. It is recommended to rotate credentials and change the administrator's password after the upgrade. For enterprises using the MCP feature, it is recommended to regenerate the MCP Token after the upgrade.
The round-level operation approval is an innovative design of AnQiCMS MCP Server, balancing automation efficiency and operation safety. When AI needs to perform writing operations, it first displays the list of operations to be executed to the user, and then executes them in batches after waiting for user confirmation.
For example, when the user commands to create and publish an article, AI will first generate a draft and then prompt the user to confirm. Only after the user confirms will AI perform the publishing operation.
The advantages of this mechanism are: preventing AI from misunderstanding instructions; allowing users to review AI's decisions; merging multiple writing operations into one confirmation to reduce the number of interactions.
The configuration of round-level approval can be adjusted in the background. Low-risk tools can be set to approval-free, and high-risk tools must be approved.
Scenario one: automated content production. Market department staff input the command to generate article drafts in Claude, Claude calls the AnQiCMS AI writing tool to generate drafts through MCP, and employees review and publish them in batches. Compared to manual creation, efficiency is significantly improved.
Scenario two: Batch SEO optimization. The SEO specialist commands to check for missing TDK articles on the entire site and automatically generate them, AI traverses the content library to identify problematic articles, calls the TDK generation tool to batch repair, and generates a report for review.
Scenario three: Site health monitoring. Operations personnel set up scheduled tasks, query server load, database performance, and security logs daily through MCP, and automatically alert when anomalies are found.
Scenario four: Multilingual content synchronization. The internationalization team commands to translate the latest published articles into multilingual versions, AI calls translation tools and publishing interfaces, and generates multilingual drafts for review by language editors.
Ask: Will the MCP Server affect the performance of AnQiCMS?
The performance impact of the MCP interface depends on the frequency and complexity of the call. Query operations are usually fast in response; write operations involve database writing and cache refreshing, which consume more resources. It is recommended to assess the expected number of calls and limit or queue if necessary. AnQiCMS based on the high-performance architecture of GoLang can handle higher concurrency.
Ask: How can we prevent AI from misusing the MCP interface?
Through multi-layered protection: Limit the scope of Token permissions; Set call frequency limits; Enable round-by-round approval; Monitor log detection of abnormal patterns. In addition, regularly review and rotate Tokens, and revoke access permissions that are no longer in use.
Question: Besides Claude and Cursor, which other AI clients support MCP?
MCP is an open protocol, theoretically any AI client that implements the MCP standard can access AnQiCMS. In addition to Claude and Cursor, more and more AI platforms and development frameworks are adding MCP support. Enterprises can also develop customized clients themselves.
Preview
AnQiCMS built-in AI Chat intelligent dialogue, AI writing, automatic tag generation, AI painting, TDK automatic generation and other AI toolset, providing AI writing function since April 2023, supporting MCP Server to be accessed by external AI clients. This article details the use scenarios and workflow integration methods of various AI functions.
Preview
A security CMS based on GoLang with Iris framework and GORM technology stack, implementing a compiled runtime, concurrent mark-sweep garbage collection, and object pool reuse mechanism, reducing approximately 80% of memory usage compared to traditional PHP CMS, and capable of handling about 50 million PVs in a high concurrency scenario on a single machine.
Preview
Tested Rytr as an economical AI writing tool for content generation and cost-performance in various scenarios such as blog posts, email marketing, social media posts, and marketing copywriting.