Back to Home
rahulmeena0912 icon

icore_mcp_server

by rahulmeena0912

Overview

The iCore MCP Server acts as a Model Context Protocol (MCP) gateway to execute SQL queries on AWS Athena and provide data schema information for AI agents.

Installation

Run Command
npm run start

Environment Variables

  • AWS_REGION
  • ATHENA_DATABASE
  • ATHENA_OUTPUT_LOCATION
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Security Notes

The `query_athena` tool directly executes SQL statements provided in its arguments on AWS Athena without explicit sanitization or validation beyond basic type checking. This poses a significant SQL injection risk if the invoking AI agent or any upstream client can provide arbitrary or malicious SQL, potentially leading to data exfiltration, modification, or deletion depending on the AWS permissions granted. While AWS credentials can be managed via IAM roles (good practice), the direct execution without input filtering is a critical vulnerability. Additionally, static data files (`tableDescriptions.json`, `columnDescriptions.json`) are loaded using `process.cwd()`, making the server susceptible to misconfiguration if not deployed with the correct working directory. The server does implement basic web security with `helmet`, `express-rate-limit`, and robust error/logging practices.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens2500
Stars0
Forks0
Last Update2025-11-24

Tags

MCPAWS AthenaSQLData QueryAI Gateway