Sponsored by Deepsite.site

MCP Server using Amazon Q Business Cross App index

Created By
windson6 months ago
MCP Server using Amazon Q Business Cross App index
Content

MCP Server using Amazon Q Business Cross App index

This is an MCP (Model Context Provider) server for Acme Company that uses Amazon Q Business' cross-app index.

Prerequisites

Upload Data to S3

Upload the files present in synthetic_data directory to S3 and use this as data source for Q Business APP you create as part of instructions in TVM Set up.

(Token Vending Machine) TVM Set up

Set up the amzn-q-auth-tvm from repository https://github.com/aws-samples/custom-ui-tvm-amazon-q-business

Copy the contents of cdk-outputs.json generated after successful deployment of amzn-q-auth-tvm to tvm_values.json file of this repository. No need to configure QUI.

Configuration

Create .env file in the root of this module.

touch .env

The application uses environment variables for configuration. You can modify these in the .env file:

REGION=us-east-1
Q_BUSINESS_APP_NAME=REPLACE_WITH_YOUR_Q_BUSINESS_APP_NAME

Setup and Running with UV

This project uses uv for dependency management instead of traditional Python venv.

For Mac, you MUST run brew install uv for smooth MCP experience. Otherwise you may run into ENOENT challenges

brew install uv

Running the Server

You can run the server using the provided script:

./run_with_uv.sh

This script will:

  1. Create a uv environment if it doesn't exist
  2. Install the required dependencies
  3. Run the MCP server

Manual Setup

If you prefer to set up manually:

# Create and activate uv environment
uv venv .uv
source .uv/bin/activate

# Install dependencies
uv pip install boto3 "mcp[cli]" requests fastmcp httpx python-dotenv

# Run the server
python mcp_server.py

Required Packages

  • boto3
  • mcp[cli]
  • requests
  • fastmcp
  • httpx
  • python-dotenv

Test Client

python test_mcp_client.py

Questions to Ask based on tickets in synthetic_data directory

What are some of the reasons of keyboard failure?
What are software installation issues caused by?
What is the remediation of password not working?
What do I do if I am unable to access my backup files?

What immediate action did AnyCompany take to improve the Voice receptionist service while discussing the upgrade?
During which hours did Michael Chen notice the most significant delays?

Installing and Configuring Claude Desktop

Download and install Claude Desktop for your operating system. Complete the MCP Host setup by following the For Claude Desktop Users guide.

Turn off Web Search for grounded responses to the data synced.

alt text

alt text

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Playwright McpPlaywright MCP server
ChatWiseThe second fastest AI chatbot™
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Tavily Mcp
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
CursorThe AI Code Editor
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Amap Maps高德地图官方 MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"