Skip to main content
Glama
Amazon Bedrock Knowledge Base MCP Server

Amazon Bedrock Knowledge Base MCP Server

by Zlash65

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP server port.8000
MCP_HOSTNoHTTP server bind address.127.0.0.1
AWS_REGIONYesAWS region (e.g., us-west-2).
AWS_PROFILENoAWS profile name (recommended). Either AWS_PROFILE or IAM role credentials are required.
AUTH0_DOMAINNoAuth0 tenant domain (e.g., tenant.us.auth0.com). Required when MCP_AUTH_MODE=oauth.
MCP_AUTH_MODENoSet to `oauth` to enable Auth0 authentication.
MCP_STATELESSNoStateless mode (recommended for production).true
MCP_TRANSPORTNoTransport mode: stdio, sse, or streamable-http.stdio
AUTH0_AUDIENCENoAuth0 API identifier / audience. Required when MCP_AUTH_MODE=oauth.
MCP_RESOURCE_URLNoPublic URL clients connect to. Required when MCP_AUTH_MODE=oauth.
FASTMCP_LOG_LEVELNoLog level (DEBUG, INFO, WARNING, ERROR).INFO
MCP_ALLOWED_HOSTSNoComma-separated allowed Host headers.
MCP_ALLOWED_ORIGINSNoComma-separated allowed CORS origins (`*` for any).
KB_INCLUSION_TAG_KEYNoOnly include knowledge bases tagged with <key>=true.mcp-multirag-kb
BEDROCK_KB_FILTER_MODENoHow to combine explicit and implicit filters.explicit_then_implicit
BEDROCK_KB_SEARCH_TYPENoSearch type: DEFAULT, HYBRID, or SEMANTIC.DEFAULT
BEDROCK_KB_SCHEMA_MAP_JSONNoPath to KB ID to schema-path mapping (JSON).
BEDROCK_KB_ALLOW_RAW_FILTERNoAllow raw Bedrock RetrievalFilter passthrough.false
BEDROCK_KB_RERANKING_ENABLEDNoEnable reranking by default.false
BEDROCK_KB_SCHEMA_DEFAULT_PATHNoDefault schema file path (JSON).
BEDROCK_KB_IMPLICIT_FILTER_MODEL_ARNNoModel ARN for implicit filtering.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Retrieve information from Amazon Bedrock Knowledge Bases.

Recommended workflow:

  1. Call ListKnowledgeBases to find an eligible knowledge base and its data sources.

  2. Use QueryKnowledgeBases for content-focused retrieval.

  3. Use QueryKnowledgeBasesWithMetadata for discovery and metadata-aware exploration.

  4. If you want filtering, call DescribeMetadataSchema first, then use where (friendly) or filter (raw) constraints.

Prefer small number_of_results for focused answers, and enable reranking when you need better ordering.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
DescribeMetadataSchemaA

Describe the metadata schema used for filtering.

    Returns a JSON string describing the effective schema for a knowledge base. Use this before
    applying metadata filters via `where`, `filter`, or implicit filtering.
    
ListKnowledgeBasesA

List available knowledge bases and their data sources.

    Returns a JSON string mapping knowledge base IDs to `{name, description, data_sources}`.
    
QueryKnowledgeBasesB

Query a knowledge base and return relevant passages.

Returns a newline-separated set of JSON objects (one per retrieval result).

QueryKnowledgeBasesWithMetadataA

Query a knowledge base and include metadata in results.

Use this for metadata-driven exploration (discover what keys/values exist) before applying precise filters. Returns newline-separated JSON objects.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation4/5

ListKnowledgeBases and DescribeMetadataSchema are clearly distinct, but QueryKnowledgeBases and QueryKnowledgeBasesWithMetadata overlap heavily. The descriptions do explain the difference—metadata inclusion versus standard retrieval—so an agent can disambiguate with care, though misselection remains plausible.

Naming Consistency5/5

All tools use consistent PascalCase verb-noun naming: Describe..., List..., Query..., Query...WithMetadata. The suffix variant on the last tool is descriptive rather than a convention break.

Tool Count5/5

Four tools is well-scoped for a read-only knowledge base retrieval server. Each tool maps to a distinct retrieval concern: listing, schema discovery, standard query, and metadata-aware query.

Completeness4/5

The surface covers the core read-only workflow: discover knowledge bases, inspect metadata schema, and query with or without metadata. Minor gaps exist around data source detail or pagination, but agents can work around them using list and query tools.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues