Combined MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
uv pip install -e ".[dev]"
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "REDSHIFT_CLUSTER_ID=${REDSHIFT_CLUSTER_ID}" -e "POSTGRES_SECRET_NAME=${POSTGRES_SECRET_NAME}" -e "KNOWLEDGEBASE_S3_BUCKET=${KNOWLEDGEBASE_S3_BUCKET}" -e "BEDROCK_EMBEDDING_MODEL=${BEDROCK_EMBEDDING_MODEL}" combined-mcp-server -- node "<FULL_PATH_TO_MCP_SERVERS>/dist/index.js"

Replace <FULL_PATH_TO_MCP_SERVERS>/dist/index.js with the actual folder you prepared in step 1.

Required:REDSHIFT_CLUSTER_IDPOSTGRES_SECRET_NAMEKNOWLEDGEBASE_S3_BUCKETBEDROCK_EMBEDDING_MODEL
README.md

Integrates Redshift database query capabilities with vector-based knowledgebase

Combined MCP Server

A production-grade MCP (Model Context Protocol) server combining Redshift query capabilities and Knowledgebase vector store features.

Features

Redshift Tools

  • run_query - Execute SQL with IAM authentication via get_cluster_credentials
  • list_schemas - List database schemas
  • list_tables - List tables in a schema
  • describe_table - Get table structure

Large results (>100 rows) are automatically stored in S3 with 20 sample rows returned.

Knowledgebase Tools

  • build_vectorstore - Build vector store from S3 markdown files
  • query_vectorstore - Hybrid search (semantic + keyword) with RRF reranking
  • get_vectorstore_status - Check build status and cache stats

Quick Start

Local Development

  1. Install uv (if not already installed):

    curl -LsSf https://astral.sh/uv/install.sh | sh
    # Or on Windows: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
    
  2. Start infrastructure:

    docker-compose up -d postgres localstack
    
  3. Install dependencies:

    uv pip install -e ".[dev]"
    
  4. Configure environment:

    cp .env.example .env.local
    # Edit .env.local with your settings
    
  5. Run the server:

    # With MCP Inspector
    mcp dev src/combined_mcp_server/main.py
    
    # Or directly
    python -m combined_mcp_server.main
    

ECS Deployment

# Build container
docker build -t combined-mcp-server .

# Run with health checks
docker run -p 8080:8080 --env-file .env combined-mcp-server

Health endpoints:

  • GET /health - Liveness probe
  • GET /ready - Readiness probe
  • GET /status - Detailed status

Configuration

See .env.example for all configuration options. Key settings:

Variable Description
REDSHIFT_CLUSTER_ID Redshift cluster identifier
POSTGRES_SECRET_NAME Secrets Manager secret for pgvector DB
KNOWLEDGEBASE_S3_BUCKET S3 bucket with markdown files
BEDROCK_EMBEDDING_MODEL Titan embedding model ID

Architecture

┌─────────────────────────────────────────────────────┐
│                  Combined MCP Server                 │
├─────────────────────┬───────────────────────────────┤
│   Redshift Tools    │     Knowledgebase Tools       │
│  ─────────────────  │  ───────────────────────────  │
│  • run_query        │  • build_vectorstore          │
│  • list_schemas     │  • query_vectorstore          │
│  • list_tables      │  • get_vectorstore_status     │
│  • describe_table   │                               │
├─────────────────────┴───────────────────────────────┤
│                    Core Services                     │
│  AWS (Secrets Manager, S3, Bedrock, Redshift)       │
│  PostgreSQL + pgvector                              │
└─────────────────────────────────────────────────────┘

Testing

# Unit tests
pytest tests/ -v

# With coverage
pytest tests/ -v --cov=combined_mcp_server

# Integration tests (requires Docker)
docker-compose up -d
pytest tests/ -v -m integration

License

MIT

Tools (7)

run_queryExecute SQL with IAM authentication via get_cluster_credentials
list_schemasList database schemas
list_tablesList tables in a schema
describe_tableGet table structure
build_vectorstoreBuild vector store from S3 markdown files
query_vectorstoreHybrid search (semantic + keyword) with RRF reranking
get_vectorstore_statusCheck build status and cache stats

Environment Variables

REDSHIFT_CLUSTER_IDrequiredRedshift cluster identifier
POSTGRES_SECRET_NAMErequiredSecrets Manager secret for pgvector DB
KNOWLEDGEBASE_S3_BUCKETrequiredS3 bucket with markdown files
BEDROCK_EMBEDDING_MODELrequiredTitan embedding model ID

Configuration

claude_desktop_config.json
{"mcpServers": {"combined-mcp-server": {"command": "python", "args": ["-m", "combined_mcp_server.main"], "env": {"REDSHIFT_CLUSTER_ID": "your-cluster-id", "KNOWLEDGEBASE_S3_BUCKET": "your-bucket-name", "BEDROCK_EMBEDDING_MODEL": "amazon.titan-embed-text-v1"}}}}

Try it

List all the schemas available in our Redshift cluster.
Run a query to get the top 10 most recent transactions from the sales table.
Search the knowledgebase for documentation regarding our internal deployment procedures.
Check the current status of the vector store build process.
Describe the structure of the user_activity table.

Frequently Asked Questions

What are the key features of Combined MCP Server?

Execute SQL queries on Redshift with IAM authentication. Automatic S3 storage for large query results. Hybrid semantic and keyword search on S3 markdown files. Vector store management with status tracking. Production-ready health check endpoints.

What can I use Combined MCP Server for?

Performing ad-hoc data analysis on Redshift data directly from Claude. Retrieving technical documentation from S3 via natural language queries. Building RAG applications that combine structured database data with unstructured markdown knowledge. Monitoring database schema changes and table structures.

How do I install Combined MCP Server?

Install Combined MCP Server by running: uv pip install -e ".[dev]"

What MCP clients work with Combined MCP Server?

Combined MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Combined MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare