Connect and execute queries on DX Data Cloud with the DX MCP Server for AI applications
The DX MCP Server is a Python-based tool designed to empower AI applications, such as Claude for Desktop and Cursor, to interact seamlessly with your organizational data stored in the DX Data Cloud. By setting up this server locally, you ensure that these AI tools can query and utilize the rich datasets hosted on the platform, thereby enriching their utility and functionality.
The DX MCP Server introduces a powerful bridge between modern AI applications and legacy database systems through Model Context Protocol (MCP). Key features include:
At its core, the DX MCP Server implements MCP by standardizing communication between AI applications and backend data sources. The protocol ensures secure and efficient data retrieval and manipulation, adhering strictly to predefined standards that simplify integration across diverse technologies.
Imagine using Claude for Desktop or Cursor to analyze customer demographics and purchasing behaviors stored in your DX Data Cloud. By integrating the DX MCP Server, these tools can instantly access relevant data, allowing marketers to generate insightful reports automatically.
# Sample Query Execution via MCP Client
def query_customer_data():
env = {"DB_URL": "https://your-database-url"}
command = "dx-mcp-server"
args = ["run"]
result = execute_mcp_query(command=command, args=args, env=env)
return result
query_results = query_customer_data()
A customer support team might use these AI tools to quickly retrieve product information from your database. The DX MCP Server ensures that queries are executed efficiently, providing real-time answers to common customer inquiries.
Getting started is straightforward. You can choose between two installation methods:
Install using pip
:
pip install dx-mcp-server
Note: macOS users might encounter an "externally-managed-environment" error. In such cases, use pipx
to install the package.
Clone this repository directly:
git clone https://github.com/get-dx/dx-mcp-server
By integrating the DX MCP Server, you enhance the capabilities of AI applications like Claude Desktop and Cursor, enabling them to perform tasks that require direct interaction with your organizational databases.
For both Claude for Desktop and Cursor:
Claude > Settings > Developer > Edit Config
. The config file location is ~/Library/Application Support/Claude/claude_desktop_config.json
on macOS or %APPDATA%\Claude\claude_desktop_config.json
on Windows.Cursor > Settings > Cursor Settings > MCP > Add New Global MCP Server
, which directly opens the mcp.json
file.Add the following configuration to your JSON file, making necessary adjustments based on your installation method:
{
"mcpServers": {
"DX Data": {
"command": "dx-mcp-server",
"args": ["run"],
"env": {
"DB_URL": "YOUR-DATABASE-URL"
}
}
}
}
{
"mcpServers": {
"DX Data": {
"command": "python",
"args": ["-m", "dx_mcp_server", "run"],
"cwd": "/path/to/dx-mcp-server",
"env": {
"DB_URL": "YOUR-DATABASE-URL"
}
}
}
}
After saving the configuration, restart your MCP client application to see “DX Data” in the available tools. You can then use the database query tool as needed.
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
The MCP client might not find the dx-mcp-server
/python
command due to PATH differences. Use the full path in your JSON config:
# Find paths on macOS/Linux
which dx-mcp-server
# On Windows (in Command Prompt)
where dx-mcp-server
{
"mcpServers": {
"DX Data": {
"command": "/full/path/to/dx-mcp-server",
"args": ["run"],
"env": {
"DB_URL": "YOUR-DATABASE-URL"
}
}
}
}
For troubleshooting:
~/Library/Logs/Claude/
(macOS) or %APPDATA%\Claude\logs\
~/Library/Application Support/Cursor/logs/[SESSION_ID]
(macOS) or %APPDATA%\Cursor\logs\[SESSION_ID]
dx-mcp-server
?Use /opt/local/bin/dx-mcp-server
on macOS and look in the installation directory for Windows. Always refer to the application's documentation or contact support.
Simply open your JSON config file, make changes, save it, and restart the client. The latest changes will take effect immediately.
Compatibility issues can result in degraded functionality or errors. Always ensure that you have an updated MCP client to match the server's protocol version, and refer to official release notes for details.
Yes, by configuring separate entries within your JSON configs for each instance, you can run multiple DX instances side-by-side without interference.
Ensure that your environment variables (DB_URL
, API_KEY
) are stored securely. Use encryption or environment variable management tools to prevent accidental exposure of sensitive information.
Contributors interested in developing and contributing to the DX MCP Server can explore the GitHub repository for more details on coding standards, testing frameworks, and branching policies. Collaboration is encouraged, and contributions from the community enhance the overall stability and functionality of the tool.
Explore additional resources on Model Context Protocol to learn more about its capabilities and best practices. Engage with a vibrant community through forums and discussions to share experiences and stay updated on new developments in the field of AI application integration.
By leveraging the DX MCP Server, developers can significantly enhance their AI applications' abilities to interact with structured data stores, ultimately driving innovation and efficiency within various industries.
This comprehensive documentation emphasizes the technical integration between the DX MCP Server and AI applications like Claude for Desktop and Cursor, providing detailed setup instructions, troubleshooting tips, and real-world use cases. The content is optimized for search engines and provides valuable insights to developers looking to enhance their AI application integrations with data from the DX Data Cloud platform.
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Python MCP client for testing servers avoid message limits and customize with API key
Explore community contributions to MCP including clients, servers, and projects for seamless integration
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Powerful GitLab MCP Server enables AI integration for project management, issues, files, and collaboration automation
SingleStore MCP Server for database querying schema description ER diagram generation SSL support and TypeScript safety