介绍开发者知识 API 和 MCP 服务器
Introducing the Developer Knowledge API and MCP Server

原始链接: https://developers.googleblog.com/introducing-the-developer-knowledge-api-and-mcp-server/

谷歌已发布**开发者知识 API** 和 **模型上下文协议 (MCP) 服务器**的公共预览版,为 AI 开发者工具提供访问准确、最新的谷歌开发者文档的途径。这解决了 LLM 依赖潜在过时信息的问题。 该 API 充当“事实来源”,允许开发者以 Markdown 格式对 Firebase、Android 和 Google Cloud 的文档进行编程搜索和检索,更新索引在 24 小时内完成。 基于开放标准的 MCP 服务器,使 AI 助手能够*安全地*访问这些文档。这增强了诸如实现指导、故障排除和比较分析等功能——使工具能够回答诸如“如何在 Firebase 中实现推送通知?”之类的问题。 开发者可以通过创建 API 密钥并通过 Google Cloud CLI 启用 MCP 服务器来开始使用。未来的开发将侧重于结构化内容、扩展文档覆盖范围和缩短索引时间。目标是显著提高使用谷歌技术的人工智能驱动的开发者工具的可靠性和实用性。

黑客新闻 新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 介绍开发者知识 API 和 MCP 服务器 (googleblog.com) 10 分,来自 gfortaine 3 小时前 | 隐藏 | 过去 | 收藏 | 讨论 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

As the ecosystem of AI-powered developer tools—from agentic platforms like Antigravity to command-line interfaces like Gemini CLI—continues to expand, a critical challenge has emerged: how do we ensure these models have access to the most accurate, up-to-date documentation?

Large Language Models (LLMs) are only as good as the context they are given. When building with Google technology, developers need their AI assistants to know the latest Firebase features, the most recent Android API changes, and the current best practices for Google Cloud.

Today, we are excited to announce the public preview of the Developer Knowledge API and its associated Model Context Protocol (MCP) server. Together, these tools provide a canonical, machine-readable gateway to Google’s official developer documentation.

What is the Developer Knowledge API?

The Developer Knowledge API is designed to be the programmatic source of truth for Google’s public documentation. Instead of relying on potentially outdated training data or fragile web-scraping, developers can now search and retrieve Google developer documentation pages as Markdown.

Key features include:

  • Comprehensive coverage: Access documentation from firebase.google.com, developer.android.com, docs.cloud.google.com, and more.
  • Search and retrieve: Find relevant documentation pages and snippets, and then retrieve the full Markdown content.
  • Freshness: During our public preview documentation is re-indexed within 24 hours of an update, ensuring your tools stay current with the latest releases.

Powering AI tools with an MCP server

Alongside the API, we are releasing an official Model Context Protocol (MCP) server. MCP is an open standard that enables AI assistants to safely and easily access external data sources.

By connecting the Developer Knowledge MCP server to your IDE or AI assistant, you give it the ability to "read" Google’s developer documentation. This enables more reliable features, such as:

  • Implementation guidance: "What is the best way to implement push notifications in Firebase?"
  • Troubleshooting: "Can you check the docs to find out how to fix the ApiNotActivatedMapError in the Maps API?"
  • Comparative analysis: "Compare Google Cloud Run and Cloud Functions for this specific use case."

The server is compatible with a wide range of popular assistants and tools, as described in the documentation.

Getting started

You can begin using the Developer Knowledge API and MCP server today in public preview.

  1. Create an API key: You can generate and restrict an API key specifically for the Developer Knowledge API within the Credentials page of your Google Cloud project.
  2. Enable the MCP server: Install the Google Cloud CLI, and then enable the MCP server via gcloud:

    gcloud beta services mcp enable developerknowledge.googleapis.com --project=PROJECT_ID
  3. Configure your tool: Update your tool's configuration file (such as mcp_config.json or settings.json). Detailed configuration steps for various AI assistants can be found in the documentation.

What’s next?

This preview release focuses on providing high-quality, unstructured Markdown. As we move toward general availability, we plan to add support for structured content such as specific code sample objects and API reference entities. We will expand the corpus to include more of Google's developer documentation and reduce re-indexing latency.

We can’t wait to see how you integrate official Google knowledge into your agentic workflows and developer tools. Check out the full documentation to dive deeper, and let us know what you build!

联系我们 contact @ memedata.com