Token导航 LogoToken导航

MCP Server · 数据服务

Aws Knowledge Base MCP Server

一个基于AWS Bedrock和Cloudflare Workers的模型上下文协议(MCP)服务器实现,用于AI助手通过知识库进行文档搜索。

stdio官方级别未说明来源级核验工具 1cdk
向量数据库Cloudflare WorkersClaudeClaude Desktop

快速开始

作者 / 组织
daohoangson
提供方
daohoangson
运行时
Node.js

工具数量

1

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

1

仓库热度

收录来源

1 个

MCP World

选型结论

Aws Knowledge Base MCP Server 属于数据服务类 MCP Server,公开资料标注 1 个工具,通过stdio 本地进程接入,适配 Claude Desktop、Claude,有可以直接复制的安装命令;接入前要先准备 OAuth 授权。

分类

数据服务

传输方式

stdio

认证方式

OAuth 授权

部署方式

公开资料未说明

安装与配置

安装命令

npx cdk deploy

客户端配置示例

{
  "mcpServers": {
    "aws-knowledge-base-mcp-server": {
      "command": "npx",
      "args": [
        "cdk",
        "deploy"
      ]
    }
  }
}

按公开安装命令拼出来的示例,字段名和参数以仓库 README 为准;带 YOUR_API_KEY 这类占位符的位置记得换成自己的值。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 1 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

AWS知识库MCP服务器

用法

Claude DesktopGitHub Copilot

{
  "mcpServers": {
    "knowledge-base": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://aws-knowledge-base-mcp-server.daohoangson.workers.dev/sse"
      ]
    }
  }
}
{
  "servers": {
    "aws-knowledge-base": {
      "type": "sse",
      "url": "https://aws-knowledge-base-mcp-server.daohoangson.workers.dev/sse"
    }
  }
}

!

!

模型上下文协议(MCP)服务器实现,使AI助手能够使用AWS Bedrock和Cloudflare Workers在知识库中搜索。该项目由三个主要部分组成:

建筑

  1. 基础设施 (/cdk):设置资源,包括:

- 用于文档嵌入的AWS基岩知识库 - Pinecone用于高效的文档搜索 - 用于存储文档文件的AWS S3存储桶 - 用于MCP服务器的AWS Lambda功能,支持流式HTTP传输 - AWS IAM用户和API访问策略

  1. MCP服务器 (/cloudflare-mcp-server):实现MCP服务器,该服务器:

- 提供 search_knowledge_base AI助手工具 - 与AWS Bedrock集成以进行文档检索 - 支持SSE(已弃用)和流式HTTP传输 - 在Cloudflare Workers上运行,兼容Node.js

  1. MCP客户端 (/ai-sdk-mcp-client):一个演示客户端,它:

- 用途 Vercel的AI SDK Nova Pro型号 - 充当MCP客户端,支持SSE和流式HTTP传输 - 通过工具调用流式传输文本响应

graph TD
  subgraph AWS
    S3[S3 Bucket] -->|Stores Documents| KnowledgeBase
    TitanModel[Titan Embed Text V2] -->|Embedding Model| KnowledgeBase
    Lambda -->|Retrieve API| KnowledgeBase
    NovaPro[Nova Pro]
  end

  subgraph Pinecone
    KnowledgeBase[Bedrock Knowledge Base] -->|Vector Embeddings| PineconeDb[Vector Database]
  end

  subgraph Cloudflare
    Worker -->|Retrieve API| KnowledgeBase
  end

  Demo -->|InvokeModel API| NovaPro
  Demo -->|MCP
Streamable HTTP| Lambda
  Demo -->|MCP
Server Sent Event| Worker
  Demo -->|MCP
Streamable HTTP| Worker

基础设施

设置

cd cdk

npm install

# Unique identifier for the CDK stack
export CDK_APP_ID="DocsMcpServer"

# Pinecone credentials to manage vector databases
export PINECONE_API_KEY="pcsk_foo"

# Deploy the stack
npx cdk deploy

输出示例

DocsMcpServer.AwsAccessKeyId = AKI123
DocsMcpServer.AwsRegion = us-east-1
DocsMcpServer.AwsSecretAccessKey = 4cQ456
DocsMcpServer.DataSourceId = OD6LTXXUNH
DocsMcpServer.DocsBucketName = docsmcpserver-docsbucketa5ce02e3-gg8g3crhlo1j
DocsMcpServer.KnowledgeBaseId = GZUYX1EGMF
DocsMcpServer.McpServerUrl = https://vc7ejtu4kk3ayeiqofkmxxzada0uwpzr.lambda-url.us-east-1.on.aws/

文档更新

这 /docs 目录包含用最新文档更新知识库的脚本:

cd docs

# Set environment variables from the CDK output
export DATA_SOURCE_ID="OD6LTXXUNH"
export DOCS_BUCKET_NAME="docsmcpserver-docsbucketa5ce02e3-gg8g3crhlo1j"
export KNOWLEDGE_BASE_ID="GZUYX1EGMF"

# Run the update script
./update.sh

这将:

  1. 从CloudFlare和MCP网站下载最新文档
  2. 将文件上传到S3
  3. 启动新的摄取作业以更新知识库

MCP服务器

MCP服务器提供 search_knowledge_base AI助手可以使用该工具搜索索引文档。该工具接受查询字符串并返回相关文档。

创建 .dev.vars CDK输出中的以下变量:

AWS_ACCESS_KEY_ID=AKI123
AWS_REGION=us-east-1
AWS_SECRET_ACCESS_KEY=4cQ456
KNOWLEDGE_BASE_ID=GZUYX1EGMF

设置

cd cloudflare-mcp-server

npm install

npm run cf-typegen

# run locally
npm run dev

# or deploy to Cloudflare
npm run deploy

MCP客户端

客户端演示了如何连接到MCP服务器,并使用其支持SSE和流式HTTP传输的工具。

设置

cd ai-sdk-mcp-client

npm install

# Set environment variables from the CDK output
export AWS_ACCESS_KEY_ID="AKI123"
export AWS_REGION="us-east-1"
export AWS_SECRET_ACCESS_KEY="4cQ456"

# Test connection to CloudFlare with SSE transport
npm start -- https://aws-knowledge-base-mcp-server.daohoangson.workers.dev/sse

# Test connection to CloudFlare with streamable HTTP transport
npm start -- https://aws-knowledge-base-mcp-server.daohoangson.workers.dev/mcp

# Test connection to Lambda
npm start -- https://vc7ejtu4kk3ayeiqofkmxxzada0uwpzr.lambda-url.us-east-1.on.aws/mcp

输出示例

Created MCP client

{ tools: [ 'search_knowledge_base' ] }

 To determine if CloudFlare works with the Model Context Protocol (MCP), I need to search the knowledge base for relevant documentation. 

Tool call: search_knowledge_base {
  "query": "Does CloudFlare work with Model Context Protocol (MCP)?"
}

Tool result

{
  "content": [
    {
      "type": "text",
    },
    {
      "type": "text",
      "text": "can call.  When you build MCP Servers with the `@cloudflare/model-context-protocol` package, you can define tools the ."
    },
    {
      "type": "text",
      "text": "See our [list of example servers](https://modelcontextprotocol.io/examples), or [get started building your own server](https://modelcontextprotocol.io/quickstart/server).   # Introduction Source: https://modelcontextprotocol.io/introduction  Get started with the Model Context Protocol (MCP)  C# SDK released! Check out [what else is new.](/development/updates)  MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.  ## Why MCP?  MCP helps you build agents and complex workflows on top of LLMs. LLMs frequently need to integrate with data and tools, and MCP provides:  * A growing list of pre-built integrations that your LLM can directly plug into * The flexibility to switch between LLM providers and vendors * Best practices for securing your data within your infrastructure  ### General architecture  At its core, MCP follows a client-server architecture where a host application can connect to multiple servers:  ```mermaid flowchart LR     subgraph \"Your Computer\"         Host[\"Host with MCP Client\\n(Claude, IDEs, Tools)\"]         S1[\"MCP Server A\"]         S2[\"MCP Server B"
    },
    {
      "type": "text",
    },
    {
      "type": "text",
      "text": "For instance, if the client doesn't have access to Claude models but has Gemini, it might map the sonnet hint to `gemini-1.5-pro` based on similar capabilities.  ## Error Handling  Clients **SHOULD** return errors for common failure cases:  Example error:  ```json {   \"jsonrpc\": \"2.0\",   \"id\": 1,   \"error\": {     \"code\": -1,     \"message\": \"User rejected sampling request\"   } } ```  ## Security Considerations  1. Clients **SHOULD** implement user approval controls 2. Both parties **SHOULD** validate message content 3. Clients **SHOULD** respect model preference hints 4. Clients **SHOULD** implement rate limiting 5. Both parties **MUST** handle sensitive data appropriately   # Specification Source: https://modelcontextprotocol.io/specification/2025-03-26/index    [Model Context Protocol](https://modelcontextprotocol.io) (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need."
    }
  ]
}
是的,CloudFlare支持模型上下文协议(MCP)。您可以在CloudFlare上构建和部署MCP服务器。文档表明,CloudFlare提供了包和示例,以帮助您开始使用MCP服务器。 有关更多详细信息,请参阅 CloudFlare上的模型上下文协议文档.

成本估算

假设:

  • us-east-1 区域
  • 共计2 000份文件
  • 每个文档约为5KB/约1250个令牌
  • 每月重新索引所有内容30次(实际实施将逐步完成)
  • 每月使用3000个请求
  • 每个请求占用5ms CPU时间/200ms墙时间
  • 每个查询大约有100个令牌
  • 每个请求返回10个文档
服务SKU标价每月计数每月成本(美元)
AWS基岩Titan嵌入(索引)0.00002/1K代币75000K1.5美元
Titan嵌入(查询)0.00002/1K代币300K0.006美元
AWS Lambda请求0.2/1M请求0.003M0.0006美元
ARM64持续时间0.0000133334/GB-s75美元 英镑0.001美元
数据传输输出$0.09/GB0.15 GB0.0135美元
AWS S3标准存储每月0.023美元/GB0.01 GB0.00023美元
列表请求0.005美元/1K请求6K0.03美元
GET请求0.0004/1K请求600000.024美元
CloudFlare标准版每月5美元15美元
请求0.30美元/百万0.0030.0009美元
CPU时间$0.00002/CPU秒15$0.0003
松果标准25美元/月125美元
矢量存储每月0.33美元/GB0.008 GB0.003美元
矢量插入(写入)4/百万美元写入0.06M0.24美元
向量查询(读取)16美元/百万读取0.03万0.48美元

- Aurora PostgreSQL无服务器,每月180美元,配备1个写入器、1个读取器、2个NAT网关等。(参见 分支 aurora) - Amazon OpenSearch Serverless最低每月350美元,因为它至少需要一个索引OCU和一个搜索OCU 0.24美元/OCU小时

工具与能力

工具数量

1

资源数量

0

提示词数量

0

能力标签

知识库搜索TypeScript本地部署AI助手AWSBedrockCloudflareWorkers向量数据库

支持客户端

Claude DesktopClaude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

用自然语言查库

不用手写 SQL,直接问数据,让模型组织查询语句。

数据巡检

定期拉指标、做对比,把异常项整理成一段说明。

打通业务数据

把数据库、数仓和接口接进同一个上下文,减少导出再上传。

选择建议

值得选的地方

  • 只提供 1 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已经适配 Claude Desktop、Claude,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好 Node.js,换机器要重新装一遍。
  • 需要自备OAuth 授权,没有凭据没法直接试。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在数据服务场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 暂时拿不到OAuth 授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Aws Knowledge Base MCP Server

MCP World · 本页

1stdio有1 个2026-05-17
Memory 9d25f64e

MCP World

9未说明未标注1 个2026-05-17
Prisma MCP Server

MCP World

0stdio有3 个2026-05-17
Astr Bot

MCP World

0stdio有1 个2026-05-17
Getzep MCP

MCP World

9stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Aws Knowledge Base MCP Server 怎么安装?

公开资料给出的安装命令是 npx cdk deploy,运行环境为 Node.js。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Aws Knowledge Base MCP Server 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Node.js;保存后完全退出客户端再打开,配置才会生效。

Aws Knowledge Base MCP Server 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Aws Knowledge Base MCP Server 需要 API Key 吗?

公开资料标注的认证方式是OAuth 授权,也就是要先拿到凭据才能连上;凭据只填在自己本地的配置里,不要写进公开仓库。

Aws Knowledge Base MCP Server 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP