4,500+ servers built on MCP Fusion
Vinkius
Amazon Bedrock KB logo
Vinkius
LangChain logo

How to Use the Amazon Bedrock KB MCP in LangChain

Run multi-step AWS retrieval chains with LangChain and Amazon Bedrock KB to ground your agents in live enterprise data.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Amazon Bedrock KB MCP on Cursor AI Code Editor MCP Client Amazon Bedrock KB MCP on Claude Desktop App MCP Integration Amazon Bedrock KB MCP on OpenAI Agents SDK MCP Compatible Amazon Bedrock KB MCP on Visual Studio Code MCP Extension Client Amazon Bedrock KB MCP on GitHub Copilot AI Agent MCP Integration Amazon Bedrock KB MCP on Google Gemini AI MCP Integration Amazon Bedrock KB MCP on Lovable AI Development MCP Client Amazon Bedrock KB MCP on Mistral AI Agents MCP Compatible Amazon Bedrock KB MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
LangChain

Connect Amazon Bedrock KB MCP to LangChain

Create your Vinkius account to connect Amazon Bedrock KB to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.

GDPR Free for Subscribers

Ground LangChain agents using the Amazon Bedrock KB MCP Server

This MCP server exposes `retrieve` and `retrieve_and_generate` to feed verified AWS knowledge base results directly into your LangChain runnables. Your agent queries the vector index, receives grounded context, and formulates answers without hallucinating. You track the entire retrieval path inside LangSmith. The tool outputs flow as raw text nodes into your prompt templates, letting you inspect latency and vector distance metrics for every single query.

Control Bedrock ingestion directly from your chains

The `list_ingestion_jobs` and `list_data_sources` tools give your LangChain agent direct visibility into your AWS data pipeline status. If a user asks why their latest document is missing, the agent checks the sync status on the fly. You build self-healing chains that trigger alerts or pause queries when an ingestion job fails. This keeps your agent from making decisions based on stale vector indices.

Inspect AWS Bedrock structures dynamically

The `get_knowledge_base` and `list_knowledge_bases` tools let your LangChain agent discover which vector targets are active. Instead of hardcoding IDs, the agent queries AWS to find the right index for the user's specific department. This dynamic routing saves you from writing complex branching logic in python. The agent inspects the available metadata and selects the correct knowledge base ID automatically.

Setup guide

Set up Amazon Bedrock KB MCP in LangChain

Prerequisites

  • Python 3.10+ installed
  • langchain-mcp-adapters + langgraph packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChain BaseTool objects.

  2. 2

    Connect via HTTP transport

    Use MultiServerMCPClient with "transport": "http" pointing to your Vinkius endpoint. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Create a ReAct agent

    Pass the discovered tools to create_react_agent() from LangGraph. The agent automatically routes Amazon Bedrock KB tool calls through the MCP protocol.

  4. 4

    Run with any LLM

    Swap ChatOpenAI for ChatAnthropic, ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.

agent.py
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI

async with MultiServerMCPClient({
    "amazon-bedrock-kb-mcp": {
        "transport": "http",
        "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
    }
}) as client:
    tools = client.get_tools()

    agent = create_react_agent(
        ChatOpenAI(model="gpt-4o"),
        tools,
    )
    result = await agent.ainvoke({
        "messages": "List recent Amazon Bedrock KB transactions"
    })
    print(result["messages"][-1].content)

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Amazon Bedrock. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about Amazon Bedrock KB MCP in LangChain

Map the output of `retrieve` directly to your prompt's context variable. The tool returns raw text chunks that you feed into your template before sending the payload to your LLM.
Yes, every tool execution shows up as a distinct step in your LangSmith trace. You see the exact query sent to `retrieve` and the raw vector chunks returned from AWS.
The LangChain MCP adapter wraps the connection in standard execution blocks. If the server drops, your chain throws a standard python exception that you catch with standard error-handling runnables.
Install `langchain-mcp-adapters` and initialize the MCP client with the Vinkius HTTP endpoint. Grab the tools with `client.get_tools()` and pass them directly to your agent constructor.
Vinkius runs the server in a sandboxed V8 isolate, meaning your AWS keys and vector query inputs never persist. Only the raw query strings pass through the runtime to hit the AWS Bedrock endpoint, leaving no local footprint.

Start using the Amazon Bedrock KB MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 6 tools

We've already built the connector for Amazon Bedrock KB. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 6 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.