# 开发插件

> Source: https://strapi.nodejs.cn/cms/plugins-development/developing-plugins

🌐 Developing Strapi plugins

Strapi 插件通过使用管理面板 API、服务器 API 或 MCP 服务器工具来扩展核心功能。插件可以是本地的或发布到市场的，并且使用插件 SDK 创建。

🌐 Strapi plugins extend core functionality using Admin Panel API, Server API, or MCP server tools. Plugins can be local or published to the Marketplace, and are created using the Plugin SDK.

Strapi 允许开发的插件其工作方式与内置插件或可从 [Marketplace](https://market.strapi.io)获取的第三方插件完全相同。创建后，你的插件可以被：

- 用作本地插件，仅适用于特定的 Strapi 项目，
- 或 [submitted to the Marketplace](https://market.strapi.io/submit-plugin) 与社区共享。

👉 开始开发 Strapi 插件：

1. [使用插件 SDK 创建插件](/cms/plugins-development/create-a-plugin)。
2. 了解更多关于[插件的结构](/cms/plugins-development/plugin-structure)的信息。
3. 获取 [插件 API](#plugin-apis) 的概览，以向你的插件添加功能。
4. 根据你的使用案例阅读一些高级[指南](#guides)。

:::note

确保你以不同的主要版本号发布 Strapi 5 插件，以将其与 v4 兼容版本区分开来。

🌐 Ensure you release your Strapi 5 plugin as a different major version number to distinguish it from the v4 compatible version.

:::

## 插件API {#plugin-apis}

🌐 Plugin APIs

Strapi 为插件提供以下编程 API 来连接 Strapi 的一些功能：

🌐 Strapi provides the following programmatic APIs for plugins to hook into some of Strapi's features:

- [管理面板 API](/cms/plugins-development/admin-panel-api): 使用管理员面板 API 让你的插件与 Strapi 的管理员面板进行交互。
- [服务器 API](/cms/plugins-development/server-api): 使用服务器 API 使你的插件与 Strapi 的后端服务器交互。
- [扩展 MCP 服务器](/cms/plugins-development/extend-mcp-server): 使用 strapi.ai.mcp 服务注册自定义 MCP 工具，以便 AI 客户端可以触发特定插件的操作。

:::strapi Custom fields plugins

插件也可以用于向 Strapi 添加 [自定义字段](/cms/features/custom-fields)。

🌐 Plugins can also be used to add [custom fields](/cms/features/custom-fields) to Strapi.

:::

## 指南 {#guides}

🌐 Guides

- [如何从 Strapi 插件存储和访问数据](/cms/plugins-development/guides/store-and-access-data)
- [如何通过插件将数据从后端服务器传递到管理面板](/cms/plugins-development/guides/pass-data-from-server-to-admin)
- [如何为插件创建管理员权限](/cms/plugins-development/guides/admin-permissions-for-plugins)
- [如何为插件创建组件](/cms/plugins-development/guides/create-components-for-plugins)

<br />

:::strapi Additional resources

The [contributors documentation](https://contributor.strapi.io/) 还可以包括在开发 Strapi 插件时有用的额外信息。

:::
