Amazon Quick integration with time-series databases for market intelligence using MCP Amazon Quick has integrated Model Context Protocol (MCP) to allow financial analysts to query time-series databases using conversational language, eliminating the need for complex SQL queries. The integration connects Amazon Quick with KDB-X time-series databases through an MCP server running on Amazon EC2, using Amazon Bedrock AgentCore Gateway for authentication and routing. This capability enables traders and analysts to ask natural language questions and receive actionable insights from high-frequency market data, with applicability extending to IoT sensor monitoring and DevOps performance dashboards. Artificial Intelligence https://aws.amazon.com/blogs/machine-learning/ Amazon Quick integration with time-series databases for market intelligence using MCP Model Context Protocol MCP integration in Amazon Quick transforms how financial analysts access time-series market intelligence, removing the need for complex database queries. As a financial analyst, you navigate millions of stock trades flowing through markets every second, searching for patterns that drive trading decisions. Financial institutions often use time series databases to analyze high-frequency market data. In this post, we walk through a practical implementation using KDB-X MCP https://github.com/KxSystems/kdb-x-mcp-server server integration with Amazon Quick https://docs.aws.amazon.com/quicksuite/latest/userguide/what-is.html , demonstrating how traders and analysts can ask questions using conversational language and receive actionable insights from datasets. You can apply this same integration pattern across various domains, from financial market analysis to IoT sensor monitoring to DevOps performance dashboards, where you need to simplify access to time series insights. Solution overview Amazon Quick is a comprehensive, generative AI-powered business intelligence service that you can use to analyze data, create visualizations, automate workflows, and collaborate across your organization. With MCP integration in Amazon Quick, you can connect to MCP servers for both task execution and data access capabilities. MCP provides a standardized way to connect AI systems with external tools and data sources. In this example, you’ll work with time series databases provided by KDB-X, which is built on the industry-leading kdb+ https://code.kx.com/q/ . kdb+ is a high-performance time-series database and analytics engine, powered by the vector language q. We begin by installing the KDB-X MCP server on an Amazon Elastic Compute Cloud Amazon EC2 https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html instance. This installation enables the KDB-X service to run continuously and establishes the connection between the MCP server and KDB-X service for query execution. Quick translates natural language queries into SQL statements and passes them to the KDB-X MCP server, which executes these queries against the KDB-X database. To connect the MCP server with Quick, we use Amazon Bedrock AgentCore Gateway https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway.html as an authentication and routing layer. The AgentCore Gateway serves as a single access point for the agent to interact with its tools. In our architecture, we configure MCP servers as targets within the AgentCore Gateway, enabling communication with the MCP server running on Amazon EC2. We also implement inbound authorization for the AgentCore Gateway, which validates users attempting to access targets through the gateway. Since MCP integration in Quick requires authentication credentials, the inbound authentication to the gateway fulfills this requirement for the MCP connector. For this solution, we configure Amazon Cognito https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools.html as the identity provider for accessing the AgentCore Gateway. This integration appears in the Quick chat interface as actions, allowing users to perform relevant tasks and boosting productivity through third-party service integration. Prerequisites Verify that you meet the following prerequisites to deploy the solution in your own AWS account using the step-by-step instructions in this post. Before you begin, make sure that you have the following: - An AWS account https://docs.aws.amazon.com/accounts/latest/reference/welcome-first-time-user.html getting-started-step1 - Amazon Quick set up with Author Pro subscription - Permission to create AWS resources and AWS Identity and Access Management IAM http://aws.amazon.com/iam roles and policies - Basic knowledge of AWS services - Access to KDB-X sign up to the KDB-X public preview https://developer.kx.com/products/kdb-x/install UV Installed https://docs.astral.sh/uv/getting-started/installation/ for running the KDB-X MCP Server Configuration of MCP server With the prerequisites in place, we will configure the MCP server on your EC2 instance. The KDB-X MCP server provides access to domain-specific tools such hybrid search, run sql query and similarity search. These tools are implemented as custom Python functions. The server extends the ability to query KDB-X data through natural language. Users can perform specialized tasks such as computing volatility, querying market data, or semantically searching SEC filings within KDB-X tables. Follow these steps to install and run the MCP server on EC2. Start by launching an EC2 instance https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2 GetStarted.html , preferably t2.medium or larger. - Clone the repository Begin by cloning the KDB-X MCP server https://github.com/KxSystems/kdb-x-mcp-server/tree/main?tab=readme-ov-file clone-the-repository repository to your EC2 instance. - Install KDB-X Service The MCP server requires KDB-X service running in the background. Install KDB-X by signing up for the KDB-X public preview https://developer.kx.com/products/kdb-x/install as mentioned in the prerequisites section. - Configure KDB-X Service Configure the KDB-X service to listen on port 5000. We will create a sample dataset that simulates trade data over time with random values for price, size, and symbols. Create a dedicated OS service account for KDB-X: Download the stocks.txt file containing stock symbols. Create the startup script. Copy the following into a plain text editor and paste into the terminal: This script initializes the KDB-X service and creates a dummy table with stock data. It randomly selects 100 stock symbols from the file. The script also prints 10 sample rows to verify successful data ingestion. - Start and Verify KDB-X Service Create the systemd service unit. Copy the following into a plain text editor and paste into the terminal: Run the following commands to check the service status and verify the logs: When you check the status, you should see output similar to this: Note: KDB-X runs as a dedicated kdbx-svc account with no login shell, no sudo, and no SSH keys. The systemd unit enforces NoNewPrivileges , ProtectSystem=strict , and PrivateTmp=true to limit blast radius if the process is compromised. The service is enabled to auto-start after a reboot. - Start the MCP Server Install uv and set up the MCP server service: Create the MCP server systemd service. Copy the following into a plain text editor and paste into the terminal: - Verify MCP Server configuration To confirm the MCP server is configured correctly, run this command to display available tools: - Configure HTTPS endpoint for KDB-X MCP Server Replace