AWS Machine Learning Blog 07月24日 00:41
Enhance generative AI solutions using Amazon Q index with Model Context Protocol – Part 1
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文探讨了在企业AI应用中,如何通过集成Amazon Q 索引与模型上下文协议(MCP),实现安全、高效的数据检索,赋能AI驱动的决策和工作流程。文章详细介绍了MCP和Amazon Q 索引的核心功能,阐述了两种主要的集成模式——直接数据访问器模式和MCP工具集成模式,并分析了各自的优劣和适用场景。通过这些集成,独立软件供应商(ISVs)能够轻松地将客户的权威数据注入AI应用,提升客户体验,同时确保数据安全和权限合规。文章强调了权威数据在结构化操作中的关键作用,并预告了后续的集成能力探索。

🚀 **MCP与Amazon Q 索引的协同作用**:MCP作为开放标准,简化了AI应用与第三方数据源的连接,而Amazon Q 索引则提供了安全、实时的企业数据检索能力。两者的结合,使得AI应用能够安全地访问和利用存储在不同企业数据仓库中的信息,从而实现更智能的决策和优化的客户体验。这种集成减少了工程复杂性,并支持轻量级、实时的交互。

🔐 **安全的数据访问与权限管理**:Amazon Q 索引通过跨账户访问,允许独立软件供应商(ISVs)安全地查询客户的Amazon Q 索引,并且严格按照用户权限返回数据,确保了敏感信息的安全。它能够索引文档、票据、聊天记录、CRM记录等多种企业数据,并利用混合语义+关键词排名来提供丰富的上下文信息,无需ISV自行构建搜索栈。

🔄 **两种主要的集成模式**:文章提出了两种集成Amazon Q 索引与MCP的模式。模式一(数据访问器模式)侧重于简单快速的部署,ISV通过IAM角色直接调用Amazon Q 索引的SearchRelevantContent API,AWS负责所有后端管理。模式二(MCP工具集成)则将Amazon Q 索引作为MCP工具的一部分,适用于已使用MCP架构的ISV,以提供统一的MCP接口,同时增加了自定义日志和限流等功能。

💡 **选择集成模式的关键考量**:在选择集成模式时,需要权衡部署速度、运营复杂性、安全需求和现有的MCP承诺。如果优先考虑快速部署和最小化运营开销,直接使用数据访问器模式更为合适。如果ISV需要为多个客户提供一致的MCP接口,并期望更高的编排灵活性,那么集成MCP工具的模式则更优,但需要ISV自行管理MCP服务器基础设施。

🌐 **权威数据是AI驱动行动的关键**:文章强调,无论采用何种集成方式,权威、准确、安全的数据都是实现AI驱动的结构化操作(如创建工单、处理审批)的基础。通过结合MCP的自动化能力和Amazon Q 索引的数据检索能力,企业和ISV可以快速解决关键业务问题,降低运营风险,减少错误,并增强对AI解决方案的信任。

Today’s enterprises increasingly rely on AI-driven applications to enhance decision-making, streamline workflows, and deliver improved customer experiences. Achieving these outcomes demands secure, timely, and accurate access to authoritative data—especially when such data resides across diverse repositories and applications within strict enterprise security boundaries.

Interoperable technologies powered by open standards like the Model Context Protocol (MCP) are rapidly emerging. MCP simplifies the process for connecting AI applications and agents to third-party tools and data sources, enabling lightweight, real-time interactions and structured operations with minimal engineering effort. Independent software vendor (ISV) applications can securely query their customers’ Amazon Q index using cross-account access, retrieving only the content each user is authorized to see, such as documents, tickets, chat threads, CRM records, and more. Amazon Q connectors regularly sync and index this data to keep it fresh. Amazon Q index’s hybrid semantic-plus-keyword ranking then helps ISVs deliver context-rich answers without building their own search stack.

As large language models (LLMs) and generative AI become integral to enterprise operations, clearly defined integration patterns between MCP and Amazon Q index become increasingly valuable. ISVs exploring the MCP landscape to automate structured actions such as creating tickets or processing approvals can seamlessly integrate Amazon Q index to retrieve authoritative data. Authoritative data enables accurate and confident execution of these actions, reducing risk, minimizing costly errors, and strengthening trust in AI-driven outcomes. For example, a customer support assistant using MCP can automatically open an urgent ticket and instantly retrieve a relevant troubleshooting guide from Amazon Q index to accelerate incident resolution. AWS continues to invest in tighter interoperability between MCP and Amazon Q index within enterprise AI architectures. In this post, we explore best practices and integration patterns for combining Amazon Q index and MCP, enabling enterprises to build secure, scalable, and actionable AI search-and-retrieval architectures.

Key components overview

Let’s break down the two key components referenced throughout the post: MCP and Amazon Q index.

MCP is an open JSON-RPC standard that lets LLMs invoke external tools and data using structured schemas. Each tool schema defines actions, inputs, outputs, versioning, and access scope, giving developers a consistent interface across enterprise systems. To learn more, refer to the MCP User Guide.

Amazon Q index is a fully managed, cross-account, semantic search service within Amazon Q Business that helps ISVs augment their generative AI chat assistants with customer data. It combines semantic and keyword-based ranking to securely retrieve relevant, user-authorized content through the SearchRelevantContent API, so ISVs can enrich their applications with precise, customer-specific context.

Companies like Zoom and PagerDuty use Amazon Q index to enhance their AI-driven search experiences. For example, Zoom uses Amazon Q index to help users securely and contextually access their enterprise knowledge directly within the Zoom AI Companion interface, enhancing real-time productivity during meetings. Similarly, PagerDuty Advance uses Amazon Q index to surface operational runbooks and incident context during live alerts, dramatically improving incident resolution workflows.

Enhancing MCP workflows with Amazon Q index

To fully capitalize on MCP-driven structured actions, modern AI assistants require enterprise-grade knowledge retrieval capabilities—fast responses, precise relevance ranking, and robust permission enforcement. Effective actions depend on timely, accurate, and secure access to authoritative enterprise data. Amazon Q index directly meets these advanced search needs, providing a secure, scalable retrieval layer that enhances and accelerates MCP workflows:

By managing indexing, ranking, and security, Amazon Q index helps organizations deploy sophisticated enterprise search quickly—typically within weeks. To learn more, see Amazon Q index for independent software vendors (ISVs).

Amazon Q index integration patterns

Now that we’ve explored how Amazon Q index enhances MCP workflows, let’s look at two practical integration patterns enterprises and ISVs commonly adopt to combine these complementary technologies. ISVs and enterprises can access a unified, identity-aware semantic search API called SearchRelevantContent that securely accesses connected enterprise data sources (to learn more, see New capabilities from Amazon Q Business enable ISVs to enhance generative AI experiences).

When planning their integration strategy, organizations typically evaluate factors such as implementation speed, operational complexity, security requirements, and existing MCP commitments. The following patterns highlight common integration approaches, outlining the associated trade-offs and benefits of each scenario:

Pattern 1: Amazon Q index integration with a data accessor (no MCP layer)

Customers might opt for simplicity and speed by directly using Amazon Q index without involving MCP. The following diagram illustrates this straightforward and fully managed approach.

This pattern is best suited when your primary requirement is direct, performant search through a fully managed API, and you don’t currently need the orchestration and standardization provided by MCP integration. To learn more, refer to Q index workshop and the following GitHub repo.

The pattern includes the following components:

Pattern 2: Integrating Amazon Q index using MCP tools

By adding Amazon Q index retrieval using MCP, ISVs maintain a consistent MCP-based architecture across actions and retrieval, as illustrated in the following diagram.

This pattern provides a uniform MCP interface for ISVs who already use MCP tools for multiple structured actions. To learn more, refer to the following GitHub repo.

The pattern includes the following components:

Considerations for choosing your integration pattern

When choosing your integration pattern, consider these key questions:

Your ideal integration path ultimately depends on balancing rapid deployment, orchestration flexibility, and compliance requirements specific to your organization.

Determining when MCP-only retrieval is sufficient

Although integrating MCP with Amazon Q index effectively addresses most scenarios for enriching ISV application responses with enterprise data, certain clearly defined use cases benefit from a simpler, MCP-only approach. MCP’s schema-driven architecture is ideal for straightforward, keyword-based queries involving a single or limited set of repositories, such as checking ticket statuses. It also excels when real-time data retrieval is essential, including inventory monitoring, streaming log analysis, or accessing real-time metrics, where pre-indexing content offers little value. Additionally, some vendors offer ready-made, MCP-compatible endpoints, such as Atlassian’s interface for Confluence, so enterprises can quickly plug into these MCP servers, access real-time data without indexing, and use secure, feature-rich integrations that are supported and maintained by the vendor.In these scenarios, MCP-only retrieval serves as an efficient, lightweight alternative to fully indexed search solutions like Amazon Q index—especially when the need for orchestration, ranking, and semantic understanding is minimal.

Conclusion

In this post, we explored how ISVs can integrate Amazon Q index into the MCP landscape for enterprise data retrieval, complementing other structured-action tools. Authoritative data is critical for structured actions because it enables accurate decision-making, reduces operational risk, minimizes costly errors, and strengthens trust in AI-driven solutions. By combining MCP’s ability to automate real-time actions with the powerful data retrieval capabilities of Amazon Q index, enterprises and ISVs can rapidly address critical business problems using generative AI. This integrated approach reduces complexity, streamlines operations, and helps organizations meet stringent governance, compliance, and performance standards without the need to build custom indexing and retrieval infrastructure. AWS continues to actively invest in enhancing interoperability between MCP and Amazon Q index. Stay tuned for part two of this blog series, where we explore upcoming integration capabilities and share guidance for building your enterprise AI architectures. To explore Amazon Q index and MCP integrations further, refer to the following resources:

You can also contact AWS directly or sign in to your AWS Management Console to get started today.


About the authors

Ebbey Thomas is a Senior Generative AI Specialist Solutions Architect at AWS. He designs and implements generative AI solutions that address specific customer business problems. He is recognized for simplifying complexity and delivering measurable business outcomes for clients. Ebbey holds a BS in Computer Engineering and an MS in Information Systems from Syracuse University.

Sonali Sahu is leading the Generative AI Specialist Solutions Architecture team in AWS. She is an author, thought leader, and passionate technologist. Her core area of focus is AI and ML, and she frequently speaks at AI and ML conferences and meetups around the world. She has both breadth and depth of experience in technology and the technology industry, with industry expertise in healthcare, the financial sector, and insurance.

Vishnu Elangovan is a Worldwide Generative AI Solution Architect with over seven years of experience in Data Engineering and Applied AI/ML. He holds a master’s degree in Data Science and specializes in building scalable artificial intelligence solutions. He loves building and tinkering with scalable AI/ML solutions and considers himself a lifelong learner. Outside his professional pursuits, he enjoys traveling, participating in sports, and exploring new problems to solve.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Amazon Q 索引 MCP 企业AI 数据集成 生成式AI
相关文章