内容
> [!IMPORTANT]
> 该软件包不再推荐用于使用 AI 构建 Prismic 网站。 请改用新的基于 Prismic CLI 的方法: [在 Prismic 中使用 AI 构建](https://prismic.io/docs/ai)。
>
> 对于通过 MCP 进行的 Prismic 内容管理,请使用 Prismic 的服务器端 MCP 服务器: [Prismic MCP 文档](https://prismic.io/docs/mcp)。
# @prismicio/mcp-server
[![npm 版本][npm-version-src]][npm-version-href]
[![npm 下载量][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![Conventional Commits][conventional-commits-src]][conventional-commits-href]
[![许可证][license-src]][license-href]
Prismic 模型上下文协议(MCP)服务器。
## 安装
```json
{
"mcpServers": {
"prismic": {
"command": "npx",
"args": ["-y", "@prismicio/mcp-server@latest"]
}
}
}
```
## 文档
要了解此软件包的最新信息,请查看 [更新日志][changelog]。有关完整文档,请访问 [官方 Prismic 文档][prismic-docs]。
## 贡献
无论您是帮助我们修复错误、改进文档还是传播信息,我们都希望您能加入 Prismic 开发者社区!
**提问**: 在我们的社区论坛上 [开启新话题][forum-question],解释您想要实现的目标或您的疑问。我们的支持团队将尽快回复您。
**报告错误**: [开启问题][repo-bug-report],解释您的应用程序设置和您遇到的错误。
**建议改进**: [开启问题][repo-feature-request],解释您的改进或功能,以便我们讨论和了解更多。
**提交代码更改**: 对于小修复,请随意 [开启拉取请求][repo-pull-requests],并附上您的更改描述。对于大型更改,请先 [开启问题][repo-feature-request],以便我们讨论更改是否以及如何实施。
有关该项目及其结构的更多信息,您也可以查看详细的 [CONTRIBUTING.md][contributing] 文档。
## 许可证
```
Copyright 2013-2025 Prismic <contact@prismic.io> (https://prismic.io)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
<!-- 链接 -->
[prismic]: https://prismic.io
<!-- TODO: 替换链接为更实用的链接(如果可用) -->
[prismic-docs]: https://prismic.io/docs/ai#code-with-prismics-mcp-server
[changelog]: ./CHANGELOG.md
[contributing]: ./CONTRIBUTING.md
<!-- TODO: 替换链接为更实用的链接(如果可用) -->
[forum-question]: https://community.prismic.io
[repo-bug-report]: https://github.com/prismicio/prismic-mcp-server/issues/new?assignees=&labels=bug&template=bug_report.md&title=
[repo-feature-request]: https://github.com/prismicio/prismic-mcp-server/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=
[repo-pull-requests]: https://github.com/prismicio/prismic-mcp-server/pulls
<!-- 徽章 -->
[npm-version-src]: https://img.shields.io/npm/v/@prismicio/mcp-server/latest.svg
[npm-version-href]: https://npmjs.com/package/@prismicio/mcp-server
[npm-downloads-src]: https://img.shields.io/npm/dm/@prismicio/mcp-server.svg
[npm-downloads-href]: https://npmjs.com/package/@prismicio/mcp-server
[github-actions-ci-src]: https://github.com/prismicio/prismic-mcp-server/workflows/ci/badge.svg
[github-actions-ci-href]: https://github.com/prismicio/prismic-mcp-server/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/github/prismicio/prismic-mcp-server.svg
[codecov-href]: https://codecov.io/gh/prismicio/prismic-mcp-server
[conventional-commits-src]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white
[conventional-commits-href]: https://conventionalcommits.org
[license-src]: https://img.shields.io/npm/l/@prismicio/mcp-server.svg
[license-href]: https://npmjs.com/package/@prismicio/mcp-server