CONNX MCP Server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Table of Contents
Related MCP server: DataGate
CONNX MCP Server
This project is a demonstration and reference implementation intended to show how an MCP server can be structured, configured, and hosted locally to enable AI-assisted access to Mainframe VSAM data via Software AG CONNX.
The server is not intended to be a complete or hardened production solution. Instead, it provides a focused, minimal example of MCP concepts, including tool definitions, resource exposure, ANSI SQL-92 query patterns, and safe interaction with legacy data sources.
Contact Demos Economacos (demos.economacos (at) softwareag.com) for any questions or suggestions.
Features
ODBC connection to CONNX for unified database access.
MCP tools: For example
query_connx,find_customers, andcount_customers.Resources: Schema discovery.
Async support for efficiency.
Optional split-server pattern: run separate MCP servers for VSAM and Adabas demos to keep tool routing clear.
Prerequisites
Python 3.11 or 3.12
CONNX ODBC driver installed and configured
For Windows: CONNX ODBC Driver.
For Linux: unixODBC with CONNX driver
Valid CONNX DSN (Data Source Name) configured in your system
Database and CONNX credentials with appropriate read permissions
Installation
If you are new to Python, the safest approach is to create a virtual environment in the project folder and use that Python for everything in this README.
Clone the repo and move into it:
git clone https://github.com/SoftwareAG/CONNX_MCP_Sample.gitcd CONNX_MCP_Sample
Create a virtual environment:
Windows:
py -3.12 -m venv .venvmacOS/Linux:
python3.12 -m venv .venv
Activate the virtual environment:
Windows PowerShell:
.\.venv\Scripts\Activate.ps1Windows Command Prompt:
.\.venv\Scripts\activate.batmacOS/Linux:
source .venv/bin/activate
Upgrade
pipand install dependencies:python -m pip install --upgrade pippip install -r requirements.txt
Create your local config file:
Windows:
Copy-Item .env.example .envmacOS/Linux:
cp .env.example .env
Edit
.envand set your CONNX values (see Configuration below).Run the smoke test to confirm Python and CONNX can connect before configuring Claude Desktop.
Configure Claude Desktop MCP connection.
If you already have Python 3.11 installed, you can use that instead of 3.12 in the commands above.
Visual Studio Code
If you are using Visual Studio Code, these steps usually make the setup smoother:
Open the project folder in VS Code:
File -> Open Folder...Select
CONNX_MCP_Sample
Install the Microsoft Python extension if VS Code prompts you.
Select the interpreter from this project’s virtual environment:
Open the Command Palette with
Ctrl+Shift+PRun
Python: Select InterpreterChoose
.venv\Scripts\python.exeon Windows or.venv/bin/pythonon macOS/Linux
Open a new terminal in VS Code:
Terminal -> New TerminalIf the virtual environment is not already active, activate it with the same command shown in the Installation section
Run a quick smoke test from the VS Code terminal:
Windows:
.\.venv\Scripts\python.exe .\scripts\smoke.pymacOS/Linux:
python ./scripts/smoke.py
Helpful tips:
If VS Code shows import errors even after dependencies are installed, the wrong interpreter is usually selected.
If the integrated terminal uses a different Python than the editor, re-run
Python: Select Interpreterand then open a fresh terminal window.You can edit
.envdirectly in VS Code; just be careful not to commit real credentials.
Configuration
Environment Variables
Create a .env file in the project root. The easiest way is to copy .env.example and then fill in your real values:
CONNX_DSN=your_connx_dsn_name
CONNX_DSN_ADABAS=your_adabas_dsn_name
CONNX_USER=your_username
CONNX_PASS=your_password
CONNX_TIMEOUT=30
CONNX_MAX_ROWS=1000CONNX_DSN is used by the VSAM-focused sample server in connx_server.py. CONNX_DSN_ADABAS is reserved for a separate Adabas-focused server entrypoint in connx_server_adabas.py.
Connection String Format
Most users do not need to edit connx_server.py. The server reads the environment variables above and builds the connection string internally like this:
connection_string = (
f"DSN={CONNX_DSN};"
f"UID={CONNX_USER};"
f"PWD={CONNX_PASS};"
)Security Note: Never commit credentials to version control. Always use environment variables or secure credential management in production.
Sample CDD Files
This project includes sample CONNX Data Dictionary (CDD) files for both demo backends:
mcp_vsam_sample.cdd: sample CDD for the VSAM-focused server inconnx_server.pymcp_adabas_sample.cdd: sample CDD for the Adabas-focused server inconnx_server_adabas.py
The VSAM sample CDD is pre-configured to connect to the DAEA mainframe VSAM files. It demonstrates:
How to define metadata for mainframe-based VSAM datasets
Connection parameters for accessing legacy data sources through CONNX
Table and field definitions for VSAM file structures
The Adabas sample CDD is intended to support the Adabas demo functions built around the EMPLOYEES and VEHICLES tables. It serves as the sample CONNX metadata/configuration starting point for the Adabas-focused MCP server.
Using the Sample CDDs:
Choose the sample CDD that matches the demo server you want to run
Update the DSN and connection details in the CDD file to point to your target system
Import the CDD into your CONNX configuration to enable database access through the MCP server
Refer to CONNX documentation for detailed information on creating and customizing CDD files
This approach allows you to leverage existing CONNX infrastructure to expose VSAM or Adabas data through the MCP interface without manual SQL schema definitions.
Important CDD Safety Guidance: Configure the CONNX CDD and related database access so the exposed objects are SELECT-only. Even though this sample MCP server is read-only, the safest setup is to enforce read-only behavior in CONNX and with database permissions as well, so accidental inserts, updates, or deletes are blocked below the MCP layer.
Usage
This server is designed to be launched by an MCP host (e.g., Claude Desktop) using stdio transport. See Integrate in MCP Host Config
You typically do not run the Python code manually except for smoke testing.
Separate VSAM and Adabas Servers
For demos that target multiple backends, the simplest setup is to run separate MCP servers instead of combining everything into one tool surface:
connx_server.py: VSAM-focused server with purpose-built demo toolsconnx_server_adabas.py: Adabas-focused read-only server forEMPLOYEESandVEHICLES, plus schema discovery
This keeps Claude from having to guess between VSAM-specific and Adabas-specific datasets when both are available in the same host.
MCP Tools
This server exposes functionality through MCP tools, allowing clients to execute database operations against CONNX-connected data sources using structured, validated entry points.
MCP tools provide a safe, well-defined interface for interacting with CONNX-backed data without exposing raw database connections to clients.
Sample of Currently Available Tools
query_connx
Purpose Executes a SQL SELECT statement against a CONNX-connected database and returns the results.
Parameters
query(str): SQL SELECT statement
Behavior
Executes asynchronously
Uses parameterized execution internally
Returns results as a list of dictionaries
Automatically sanitizes input to reduce SQL injection risk
Return format
{
"results": [
{ "COLUMN1": "value", "COLUMN2": 123 },
...
],
"count": 10
}Example
SELECT CUSTOMER_ID, CUSTOMER_NAME
FROM CUSTOMERS
WHERE STATE = 'CA'find_customers
Purpose-built helper tool for querying customers by location.
Arguments
{
"state": "Virginia",
"city": "Richmond",
"max_rows": 100
}Notes
Normalizes full state names to abbreviations
Handles fixed-width VSAM CHAR columns
ANSI SQL-92 compatible
MCP Client Examples
Below are examples of how MCP-compatible clients (such as Claude Desktop or other MCP hosts) can invoke the CONNX MCP Server.
Example: Query Data
{
"tool": "query_connx",
"arguments": {
"query": "SELECT CUSTOMER_ID, CUSTOMER_NAME FROM CUSTOMERS WHERE STATE = 'CA'"
}
}Response
{
"results": [
{ "CUSTOMER_ID": "C001", "CUSTOMER_NAME": "Acme Corp" }
],
"count": 1
}Example: Multi-Source Query
{
"tool": "query_connx",
"arguments": {
"query": "SELECT o.ORDER_ID, c.CUSTOMER_NAME, o.TOTAL FROM ORDERS o JOIN CUSTOMERS c ON o.CUSTOMER_ID = c.CUSTOMER_ID WHERE o.ORDER_DATE > '2024-01-01'"
}
}VSAM COBOL File Layouts
The CONNX MCP demo uses 3 Mainframe VSAM datasets. COBOL copybooks were used to create a CONNX Data Dictionary (CDD).
Customers
01 CUSTOMERS-VSAM.
05 CUSTOMERID PIC X(5).
05 CUSTOMERNAME PIC X(31).
05 CUSTOMERADDRESS PIC X(22).
05 CUSTOMERCITY PIC X(14).
05 CUSTOMERSTATE PIC X(10).
05 CUSTOMERZIP PIC X(8).
05 CUSTOMERCOUNTRY PIC X(7).
05 CUSTOMERPHONE PIC X(14). Orders
01 ORDERS-VSAM.
05 ORDERID PIC 9(4).
05 CUSTOMERID PIC X(5).
05 PRODUCTID PIC 9(4).
05 ORDERDATE PIC 9(8).
05 PRODUCTQUANTITY PIC 9(3).Products
01 PRODUCTS-VSAM.
05 PRODUCTID PIC 9(4).
05 PRODUCTNAME PIC X(40).
05 PRODUCTPRICE PIC 9(4).
05 PRODUCTKEYWORDS PIC X(48).
05 PRODUCTGROUPID PIC 9(4). Sample VSAM Questions
How many customers do we have in total?
Which customers live in California?
Which customers are in San Francisco?
How many customers do we have in each state?
Show me details for customer Z3375.
Do we have any customers missing phone numbers?
What products are most frequently ordered by customers?
Sample Adabas Questions
How many employees do we have in the Adabas server?
How many vehicles are assigned in the Adabas server?
Show me employee details for personnel ID
50005600.Show me vehicles for employee
50005600.Which departments have the most vehicles?
Which departments have the most leased vehicles?
Which countries have the most assigned vehicles?
Show me employees in Paris.
What vehicle makes appear most often?
What MCP tools are available for the CONNX?
CONNX Demo Database Server Tools:
Core Query Tools
query_connx - Execute SELECT queries (read-only, single statement) Customer-Specific Tools
count_customers - Return total number of customers
customers_by_state - Get customer counts grouped by state
customer_cities - Get distinct list of customer cities
customers_missing_phone - Find customers without phone numbers
get_customer - Get full customer details by customer ID
find_customers - Find customers by state and optional city (with max_rows limit)
customers_by_product - Find customers who ordered a specific product (with optional order count)
Entity/Metadata Tools
describe_entities - Describe known business entities (customers, orders, products) and their table mappings
count_entities - Count rows for any known business entity using natural language names
Resources (not tools, but available via MCP resources)
schema://schema - Get all table/column schema information
schema://schema/{table_name} - Get schema for a specific table
schema://domain/customers - Canonical metadata about customers domain
domain://datasets - Information about available datasets
semantic://entities - Semantic entity information with relationships
Tool Summary by Use Case
For exploring data:
describe_entities- Start here to see what's availablequery_connx- Flexible SQL queries
For customer operations:
get_customer- Single customer lookupfind_customers- Search by locationcustomers_by_product- Product-based customer searchcount_customers- Quick count
For analytics:
customers_by_state- Geographic distributioncustomers_missing_phone- Data quality checkscount_entities- Entity counts with natural language
The tools follow a pattern of providing both low-level SQL access (query_connx) and high-level purpose-built tools for common operations.
Adabas Tool Summary
If you run connx_server_adabas.py, the Adabas-focused server exposes read-only tools around EMPLOYEES and VEHICLES.
Core Adabas tools
query_connx- Execute read-only SELECT queries against the Adabas DSNdescribe_server- Return Adabas server metadata and advertised capabilities
Adabas entity tools
count_employees- Count employee recordscount_vehicles- Count vehicle recordsget_employee- Return a single employee byPERSONNEL_IDget_vehicles_for_employee- List vehicles assigned to one employeefind_employees_by_city- Find employees by cityemployees_with_vehicles- Return joined employee and vehicle rows
Adabas analytics tools
vehicles_by_department- Count assigned vehicles by departmentleased_vehicles_by_department- Count leased vehicles by departmentvehicles_by_country- Count assigned vehicles by employee countryvehicle_summary_by_make- Count vehicles by make
Adabas metadata tools/resources
describe_entities- Describe theemployeesandvehiclesentitiescount_entities- Count rows for a known Adabas entity aliasschema://domain/employees- Employee metadataschema://domain/vehicles- Vehicle metadatasemantic://entities- Employee/vehicle relationship metadata
Testing
This project uses pytest for unit testing. Tests mock database interactions to run without a real CONNX setup.
Make sure your virtual environment is activated first.
Install test deps:
pip install -r requirements-dev.txtRun tests:
Windows:
.\.venv\Scripts\python.exe -m pytest tests/macOS/Linux:
python -m pytest tests/
Command line smoke test:
Windows:
.\.venv\Scripts\python.exe -c "from dotenv import load_dotenv; load_dotenv(); from connx_server import get_connx_connection; c=get_connx_connection(); print('OK'); c.close()"macOS/Linux:
python -c "from dotenv import load_dotenv; load_dotenv(); from connx_server import get_connx_connection; c=get_connx_connection(); print('OK'); c.close()"
Run Python smoke test:
Windows:
.\.venv\Scripts\python.exe .\scripts\smoke.pymacOS/Linux:
python ./scripts/smoke.py
Coverage includes connection handling, query/update execution, sanitization, and MCP tools/resources.
Optional: Install the MCP inspector
The MCP Inspector is a tool for testing and debugging MCP servers. It requires Node.js because it is launched with npx.
# Install npx inspector
npx @modelcontextprotocol/inspector
# Run it against your server
npx @modelcontextprotocol/inspector python /path/to/your/connx_server.py
Example: npx @modelcontextprotocol/inspector python C:\\PythonProjects\\CONNX_MCP_Sample\\connx_server.pyThis opens a web UI where you can:
See all available tools
Test tools with different parameters
View responses
Debug issues

Troubleshooting
Common Issues
ODBC Connection Failure
Check credentials and network connectivity
Ensure CONNX service is running
Verify CONNX DSN is properly configured:
Windows: Open the ODBC Data Source Administrator by searching for "ODBC Data Sources" in the Start menu (use the 64-bit version if applicable, or odbcad32.exe for 32-bit). Check if your CONNX DSN is listed under the "User DSN" or "System DSN" tab. Double-click the DSN to test the connection.
Linux: Use
odbcinst -q -s(from unixODBC) to list configured DSNs and confirm yours appears. To list drivers, useodbcinst -q -d. Test the connection withisql -v your_dsn_name your_username your_password.macOS: If using unixODBC (common setup), follow the Linux instructions above. If using iODBC, use
iodbctestor check/Library/ODBC/odbc.ini(system-wide) or~/Library/ODBC/odbc.ini(user-specific) for DSN entries. Test withiodbctest "DSN=your_dsn_name;UID=your_username;PWD=your_password".
Permission Denied
Verify database user has appropriate SELECT privileges
Check firewall rules for database access
Timeout Errors
Increase connection timeout in environment variables
Optimize complex queries
Check database performance and indexes
Module Import Errors
Ensure all dependencies installed:
pip install -r requirements.txtVerify Python version compatibility (3.8+)
Integrate in MCP Host Config
To integrate this server with an MCP-compatible client, you need to add the server configuration to your MCP host settings.
Claude Desktop Integration
Claude Desktop uses a configuration file to manage MCP servers. Follow these steps:
1. Locate the Configuration File
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonFull path example: C:\Users\YourUsername\AppData\Roaming\Claude\claude_desktop_config.json
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json2. Edit the Configuration File
Open claude_desktop_config.json in a text editor and add the CONNX MCP server configuration.
For teammates with limited Python experience, the most reliable option is to point Claude Desktop to the Python inside this repo's virtual environment instead of a system-wide python command.
VSAM example:
{
"mcpServers": {
"connx-database-server": {
"command": "C:\\path\\to\\CONNX_MCP_Sample\\.venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\CONNX_MCP_Sample\\connx_server.py"
],
"env": {
"CONNX_DSN": "your_dsn_name",
"CONNX_USER": "your_username",
"CONNX_PASS": "your_password"
}
}
}
}Adabas example:
{
"mcpServers": {
"connx-adabas-server": {
"command": "C:\\path\\to\\CONNX_MCP_Sample\\.venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\CONNX_MCP_Sample\\connx_server_adabas.py"
],
"env": {
"CONNX_DSN_ADABAS": "your_adabas_dsn_name",
"CONNX_USER": "your_username",
"CONNX_PASS": "your_password"
}
}
}
}Important Notes:
Use absolute paths for the Python script
Prefer the virtual-environment Python shown above; it avoids "module not found" issues when multiple Python versions are installed
On Windows, use double backslashes (
\\) in paths or forward slashes (/)Environment variables can be set directly in the config or loaded from a
.envfileIf you already have other MCP servers configured, add the
connx-database-serverentry to the existingmcpServersobject
3. Example with Multiple Servers
If you have multiple MCP servers:
{
"mcpServers": {
"connx-database-server": {
"command": "C:\\projects\\connx-mcp-server\\.venv\\Scripts\\python.exe",
"args": ["C:\\projects\\connx-mcp-server\\connx_server.py"],
"env": {
"CONNX_DSN": "PROD_DB",
"CONNX_USER": "app_user",
"CONNX_PASS": "secure_password"
}
},
"connx-adabas-server": {
"command": "C:\\projects\\connx-mcp-server\\.venv\\Scripts\\python.exe",
"args": ["C:\\projects\\connx-mcp-server\\connx_server_adabas.py"],
"env": {
"CONNX_DSN_ADABAS": "DEMO_ADABAS",
"CONNX_USER": "app_user",
"CONNX_PASS": "secure_password"
}
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\YourName\\Documents"]
}
}
}4. Using Python Virtual Environment
If you're using a virtual environment for your Python dependencies:
Windows:
{
"mcpServers": {
"connx-database-server": {
"command": "C:\\path\\to\\venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\connx_server.py"],
"env": {
"CONNX_DSN": "your_dsn_name",
"CONNX_USER": "your_username",
"CONNX_PASS": "your_password"
}
}
}
}Adabas on Windows:
{
"mcpServers": {
"connx-adabas-server": {
"command": "C:\\path\\to\\venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\connx_server_adabas.py"],
"env": {
"CONNX_DSN_ADABAS": "your_adabas_dsn_name",
"CONNX_USER": "your_username",
"CONNX_PASS": "your_password"
}
}
}
}macOS/Linux:
{
"mcpServers": {
"connx-database-server": {
"command": "/path/to/venv/bin/python",
"args": ["/path/to/connx_server.py"],
"env": {
"CONNX_DSN": "your_dsn_name",
"CONNX_USER": "your_username",
"CONNX_PASS": "your_password"
}
}
}
}Adabas on macOS/Linux:
{
"mcpServers": {
"connx-adabas-server": {
"command": "/path/to/venv/bin/python",
"args": ["/path/to/connx_server_adabas.py"],
"env": {
"CONNX_DSN_ADABAS": "your_adabas_dsn_name",
"CONNX_USER": "your_username",
"CONNX_PASS": "your_password"
}
}
}
}5. Restart Claude Desktop
After saving the configuration file, restart Claude Desktop completely:
Quit Claude Desktop (not just close the window)
Reopen Claude Desktop
The CONNX MCP server should now be available
6. Verify the Integration
In Claude Desktop, you can test the integration by asking:
"What tools are available?"
"Query the CUSTOMERS table from CONNX"
"Show me the first 5 records from the ORDERS table"
If the server is properly configured, Claude will be able to use the read-only MCP tools such as query_connx to interact with your CONNX databases.
Troubleshooting Claude Desktop Integration
Server Not Appearing:
Check that the JSON syntax is valid (use a JSON validator)
Verify the Python path is correct and accessible
Ensure all required environment variables are set
Check Claude Desktop logs for errors
Connection Errors:
Verify CONNX DSN is configured in your system
Test the connection using the smoke test script
Check that credentials are correct
Ensure CONNX service is running
Example query using Claude Desktop
This example queries a Mainframe VSAM file. Claude Desktop formulates the SQL statement that is passed to CONNX. CONNX communicates with VSAM on the z/OS Mainframe.
Example Adabas Questions for Claude
When connx_server_adabas.py is configured in Claude Desktop, these prompts are good demo starters:
"How many employees are in the Adabas server?"
"Show me vehicles by department."
"Which departments have the most leased vehicles?"
"Show me vehicles assigned to personnel ID 50005600."
"Find employees in Paris."
"Which countries have the most company vehicles?"
These tend to steer Claude toward the purpose-built Adabas tools instead of raw SQL.
Example query using Claude Desktop
This example queries Mainframe Adabas files Employees and Vehicles. Claude Desktop formulates the SQL statement that is passed to CONNX. CONNX communicates with Adabas on the z/OS Mainframe.
Summary
query_connxis used for read-only SQL queriesThe MCP tool surface is read-only by design
Tools are asynchronous, safe, and testable
Extending the toolset follows a simple, repeatable pattern
CI and test coverage protect against regressions
Extending MCP Tools
Adding new tools is intentionally simple and testable.
General Pattern:
Create a Python function
Decorate it with
@mcp.tool()Call existing helper functions such as
execute_query_asyncReturn a JSON-serializable dictionary
Example: Add a count_connx Tool
@mcp.tool()
async def count_connx(table_name: str) -> Dict[str, Any]:
"""
Return the number of rows in a table.
"""
query = f"SELECT COUNT(*) AS ROW_COUNT FROM {sanitize_input(table_name)}"
try:
results = await execute_query_async(query)
return {
"table": table_name,
"row_count": results[0]["ROW_COUNT"]
}
except ValueError as e:
return {"error": str(e)}Usage
{
"tool": "count_connx",
"arguments": {
"table_name": "CUSTOMERS"
}
}What is MCP?
The Model Context Protocol (MCP) is an open-source standard developed by Anthropic and launched in November 2024. It enables AI models and applications to securely connect to and interact with external data sources, tools, and workflows through a standardized interface.
MCP acts as a universal "USB-C" port for AI, allowing seamless integrations without the need for custom code for each connection. This protocol builds on existing concepts like tool use and function calling but standardizes them, reducing the fragmentation in AI integrations. By providing access to live, real-world data, MCP empowers large language models (LLMs) like Claude to perform tasks, deliver accurate insights, and handle actions that extend beyond their original training data.
MCP addresses the challenge of AI models being isolated from real-time data and external capabilities. It enables LLMs to:
Access current data from diverse sources.
Perform actions on behalf of users, such as querying databases or sending emails.
Utilize specialized tools and workflows without custom integrations.
Why MCP for CONNX?
CONNX already provides unified access to diverse data sources, and MCP adds an AI-powered natural language interface on top. This combination enables:
Simplified Legacy Access: Query mainframe and legacy systems using plain English instead of complex SQL
Democratized Data: Non-technical users can access enterprise data without SQL knowledge
Reduced Integration Complexity: One MCP server provides AI access to all CONNX-connected sources
Enterprise Security: Leverage CONNX's proven security model while adding AI capabilities
Faster Time-to-Insight: From question to answer in seconds, not hours
Building Blocks
MCP servers expose capabilities through three primary building blocks, which standardize how AI applications interact with external systems:
Feature | Explanation | Examples | Who Controls It |
Tools | Active functions that the LLM can invoke based on user requests. These can perform actions like writing to databases, calling APIs, or modifying files. Hosts must obtain user consent before invocation. | Search flights, send messages, create calendar events | Model (LLM decides when to call) |
Resources | Passive, read-only data sources providing context, such as file contents, database schemas, or API documentation. | Retrieve documents, access knowledge bases, read calendars | Application (host manages access) |
Prompts | Pre-built templates or workflows that guide the LLM in using tools and resources effectively. | Plan a vacation, summarize meetings, draft an email | User (selects or customizes) |
How MCP Works
At its core, MCP allows an LLM to request assistance from external systems to fulfill user queries. The process involves discovery, invocation, execution, and response.
Simplified Workflow Example
Consider a user query: "Find the latest sales report in our database and email it to my manager."
Request and Discovery: The LLM recognizes it needs external access (e.g., database query and email sending). Via the MCP client, it discovers available servers and relevant tools, such as
database_queryandemail_sender.Tool Invocation: The LLM generates a structured request. The client sends it to the appropriate server (e.g., first invoking
database_querywith the report details).External Action and Response: The server translates the request (e.g., into a secure SQL query), executes it on the backend system, retrieves the data, and returns it in a formatted response to the client.
Subsequent Actions: With the data, the LLM invokes the next tool (e.g.,
email_sender), and the server confirms completion.Final Response: The LLM replies to the user: "I have found the latest sales report and emailed it to your manager."
This bidirectional flow ensures efficient, secure interactions. Real-world examples include generating web apps from Figma designs, analyzing data across multiple databases via natural language, or creating 3D models in Blender for printing.
CONNX MCP Use Cases
Business Intelligence & Analytics
Natural Language Queries: "Show me top 10 customers by revenue in Q4 2024"
Cross-Database Analysis: Query data from multiple CONNX-connected sources (mainframe, Oracle, SQL Server) in a single conversation
Trend Analysis: "Compare sales performance across regions for the last 3 quarters"
Data Operations
Data Validation: "Check for duplicate customer records and show me conflicts"
Data Migration Support: "Extract customer data from legacy system and prepare for transformation"
Enterprise Integrations
Mainframe Access: Access legacy VSAM, IMS, or DB2 data through natural language
Multi-Platform Queries: Combine data from AS/400, Oracle, and SQL Server in a single query
Real-Time Reporting: Generate reports from live enterprise data without manual SQL
Development & Testing
Schema Exploration: "What tables contain customer information?"
Data Sampling: "Show me sample records from the orders table"
Query Optimization: Test and refine queries with AI assistance
Security Best Practices
Input Sanitization: All queries are sanitized to prevent SQL injection attacks
Parameterized Queries: Use parameterized execution where possible
Least Privilege: Grant database users only necessary permissions
CDD Configuration: Configure the CONNX CDD to expose
SELECT-only access wherever possibleAudit Logging: Enable CONNX audit logs to track all database operations
Credential Management: Use environment variables or secret management services (AWS Secrets Manager, Azure Key Vault)
Network Security: Use VPN or private networks for database connections
Rate Limiting: Consider implementing rate limits for MCP tool invocations
Disclaimer
This project is provided as-is, without warranty of any kind.
It is intended as:
A learning resource
A reference implementation
A starting point for secure MCP server development
It is not intended to replace enterprise-grade security controls.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloud-hosted MCP server for secure AI access to enterprise data sources via CData Connect AI.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
One governed MCP endpoint for 40+ business systems. Read-only, source-cited answers.
Draxlr's remote MCP server connects AI assistants to your SQL databases and dashboards. Explore schemas, run read-only queries, manage saved queries and dashboards, and export results, all with row-level security so each user sees only their own data.
Related MCP Servers
- AlicenseAqualityDmaintenanceA read-only MCP server that provides AI coding tools with database schema structure (tables, columns, keys, relationships) without exposing row data.3Apache 2.0
- AlicenseNot gradedqualityCmaintenanceProvides a secure, policy-driven read-only gateway that exposes multiple databases to AI tools via MCP, with governed select, search, and aggregate operations and no free-form SQL.Apache 2.0

sql-to-mcpofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query PostgreSQL, MySQL, SQL Server, Oracle, and MongoDB databases through MCP with read-only, audited access.3AGPL 3.0- AlicenseNot gradedqualityCmaintenanceEnables AI assistants and LLM agents to query operational databases through a read-only MCP gateway with table whitelisting, automatic row limits, sensitive-data masking, and audit logging.1MIT

