u2-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@u2-mcp List all customers in California"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
u2-mcp
Connect Claude to your Universe/UniData database using natural language.
u2-mcp is an MCP server that lets AI assistants like Claude query and interact with Rocket Universe and UniData MultiValue databases. Ask questions in plain English and get real answers from your data.
The first MCP server for the Pick/MultiValue database family.
What Can You Do With This?
Instead of writing RetrieVe queries, just ask Claude:
You Ask | Claude Does |
"How many customers are in California?" | Queries the database and tells you "1,247 customers" |
"Show me order ORD001" | Reads the record and displays all fields |
"What files are available?" | Lists all files in your account |
"Describe the CUSTOMERS file" | Shows field definitions from the dictionary |
Related MCP server: Vertica MCP Server
How It Works
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Claude Desktop │◄───►│ u2-mcp │◄───►│ Universe/UniData│
│ (You ask here) │ │ (Translates) │ │ (Your data) │
└─────────────────┘ └─────────────────┘ └─────────────────┘You ask Claude a question about your database
Claude calls u2-mcp with the appropriate tool
u2-mcp queries your Universe/UniData server
Results come back through Claude in a readable format
New to MCP? See What is MCP? for a complete explanation.
Documentation
Guide | Description |
Understanding MCP and how u2-mcp works | |
Complete installation guide | |
Get running in 10 minutes | |
All configuration options | |
Detailed tool documentation | |
Common usage patterns | |
Claude.ai integration with SSO |
Features
Connection Management - Connect to Universe/UniData servers with connection pooling and SSL support
File Operations - Read, write, and delete records while preserving MultiValue semantics
Query Execution - Run RetrieVe/UniQuery statements with safety controls
Dictionary Access - Explore file structures and field definitions
BASIC Subroutine Calls - Execute cataloged BASIC programs
Transaction Support - Full transaction management with commit/rollback
AI-Optimized - Built-in query examples and syntax help for better LLM interactions
Installation
pip install u2-mcpOr using uvx for isolated execution:
uvx u2-mcpQuick Start
Prerequisites
Python 3.10+
Access to a Rocket Universe or UniData server
The
uopypackage (installed automatically as a dependency)
Configuration
Set environment variables for your database connection:
export U2_HOST=server.example.com
export U2_USER=username
export U2_PASSWORD=password
export U2_ACCOUNT=MYACCOUNT
export U2_SERVICE=uvcs # or 'udcs' for UniDataClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"u2": {
"command": "uvx",
"args": ["u2-mcp"],
"env": {
"U2_HOST": "server.example.com",
"U2_USER": "user",
"U2_PASSWORD": "password",
"U2_ACCOUNT": "MYACCOUNT"
}
}
}
}Usage Examples
Once connected, you can use natural language to interact with your Universe database:
"List all customers in California"
"Read record CUST001 from the CUSTOMERS file"
"Show me the dictionary for the ORDERS file"
"Count all open invoices over $1000"
Available Tools
Connection Management
connect- Establish connection to Universe/UniData serverdisconnect- Close connectionslist_connections- Show active connections
File Operations
list_files- List available files in the accountread_record- Read a single record by IDread_records- Read multiple recordswrite_record- Write/update a recorddelete_record- Delete a recordget_file_info- Get file statistics
Query Execution
execute_query- Run RetrieVe/UniQuery statementsexecute_tcl- Run TCL/ECL commandsget_select_list- Execute SELECT and return record IDs
Dictionary Access
list_dictionary- List dictionary itemsget_field_definition- Get field detailsdescribe_file- High-level file description
Advanced Features
call_subroutine- Call BASIC subroutinesbegin_transaction/commit_transaction/rollback_transaction- Transaction management
Knowledge Persistence
save_knowledge- Save learned information about the databaselist_knowledge- List all saved knowledge topicsget_knowledge_topic- Retrieve specific topicsearch_knowledge- Search across saved knowledgedelete_knowledge- Remove a knowledge topic
Configuration Options
Variable | Description | Default |
| Server hostname or IP | Required |
| Username | Required |
| Password | Required |
| Account name | Required |
| Service type ( |
|
| Server port |
|
| Enable SSL |
|
| Connection timeout (seconds) |
|
| Disable write operations |
|
| Maximum SELECT results |
|
| Comma-separated blocked TCL commands |
|
| Custom path for knowledge file |
|
Knowledge Persistence
The MCP server includes a knowledge persistence feature that allows Claude to save and recall learned information about your database across sessions. This eliminates repetitive discovery work and speeds up future interactions.
How It Works
When Claude discovers useful information about your database (file purposes, field meanings, working queries), it can save this knowledge using the save_knowledge tool. This information is stored in a markdown file and automatically available in future conversations via the u2://knowledge resource.
What Gets Saved
File descriptions - What each file contains (e.g., "AR-CUST is the customer master file")
Field mappings - Which fields contain what data (e.g., "Field 1 is customer name")
Query patterns - Queries that produced good results
Data formats - Date formats, code meanings, conversion notes
Relationships - How files relate to each other
Storage Location
Knowledge is stored in ~/.u2-mcp/knowledge.md by default. You can customize this location using the U2_KNOWLEDGE_PATH environment variable:
{
"env": {
"U2_KNOWLEDGE_PATH": "/path/to/custom/knowledge.md"
}
}Example Usage
After Claude discovers that AR-CUST contains customer records:
Claude: I found that AR-CUST is the customer master file. Let me save this for future reference.
[Calls save_knowledge("AR-CUST file", "Customer master file. Key is customer number. Field 1=name, Field 2=address...")]In the next conversation, Claude will already know this and won't need to rediscover it.
Centralized Deployment (HTTP/SSE Mode)
For team environments, you can run u2-mcp as a centralized HTTP server instead of local stdio mode. This allows:
Single database connection for the whole team
Shared knowledge base
Centralized credential management
Access from any MCP-compatible client
Running the HTTP Server
# Basic HTTP server on default port 8080
u2-mcp --http
# Custom host and port
u2-mcp --http --host 0.0.0.0 --port 3000
# Or using environment variables
export U2_HTTP_HOST=0.0.0.0
export U2_HTTP_PORT=3000
u2-mcp --httpDocker Deployment
FROM python:3.12-slim
RUN pip install u2-mcp
ENV U2_HOST=your-universe-server
ENV U2_USER=username
ENV U2_PASSWORD=password
ENV U2_ACCOUNT=MYACCOUNT
ENV U2_HTTP_PORT=8080
EXPOSE 8080
CMD ["u2-mcp", "--http"]docker build -t u2-mcp-server .
docker run -p 8080:8080 u2-mcp-serverHTTP Configuration Options
Variable | Description | Default |
| Host to bind HTTP server to |
|
| Port for HTTP server |
|
| Allowed CORS origins (comma-separated or |
|
Connecting Clients
The HTTP server exposes an SSE (Server-Sent Events) endpoint at /sse. MCP clients that support remote servers can connect to:
http://your-server:8080/sseNote: As of late 2024, Claude Desktop only supports local stdio MCP servers. HTTP/SSE mode is for:
Custom MCP clients
Future Claude Desktop versions with remote server support
Integration with other AI tools that support MCP over HTTP
Claude.ai Integration (Streamable HTTP + OAuth)
Deploy u2-mcp as a Custom Connector in Claude.ai with enterprise authentication via your identity provider (Duo, Auth0, Okta, etc.).
Quick Setup
Deploy u2-mcp with OAuth enabled:
u2-mcp --streamable-http --host 0.0.0.0 --port 8080Configure OAuth in your
.env:
U2_AUTH_ENABLED=true
U2_AUTH_ISSUER_URL=https://u2-mcp.example.com
U2_IDP_PROVIDER=duo
U2_IDP_DISCOVERY_URL=https://sso-xxx.sso.duosecurity.com/oidc/CLIENT_ID/.well-known/openid-configuration
U2_IDP_CLIENT_ID=your_client_id
U2_IDP_CLIENT_SECRET=your_client_secretAdd to Claude.ai: Go to Settings → Connectors → Add Custom Connector → Enter your URL
Users authenticate through your IdP and can then query your database directly from Claude.ai.
Supported Identity Providers
Cisco Duo - Enterprise MFA and SSO
Auth0 - Flexible identity platform
Any OIDC Provider - Okta, Azure AD, Google Workspace, Keycloak, etc.
See the OAuth Guide for detailed setup instructions.
Security
Credentials are never logged
Configurable command blocklist prevents dangerous operations
Optional read-only mode for safe exploration
Honors Universe's built-in security model
See SECURITY.md for reporting security vulnerabilities.
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Documentation
Getting Started
Quickstart Guide - Get running in 10 minutes
What is MCP? - Understanding MCP and how u2-mcp works
Installation Guide - Detailed installation instructions
Reference
Configuration Reference - All environment variables
Tools Reference - Complete tool documentation
Usage Examples - Common usage patterns
OAuth & Claude.ai Integration - Deploy as a Claude.ai Custom Connector
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Acknowledgments
Rocket Software for the
uopypackageAnthropic for the Model Context Protocol specification
The MultiValue database community
Available Tools
33 toolsanalyze_file_structureA
Analyze file structure by sampling records to infer field usage patterns.
Samples records from the file to detect:
Which fields are populated
Multivalue patterns
Data types and common values
Useful when dictionary is incomplete or for understanding actual data usage.
Args: file_name: Name of the Universe file to analyze sample_size: Number of records to sample (default 100)
Returns: Analysis results including field usage statistics and patterns.
Inputs: file_name (required), sample_size. Returns: object
begin_transactionA
Begin a database transaction.
Starts a new transaction. All subsequent write operations (write_record, delete_record) will be part of this transaction until commit_transaction or rollback_transaction is called.
Returns: Dictionary containing: - status: success or error - in_transaction: True if transaction is now active - started_at: Timestamp when transaction started
Note: Only one transaction can be active at a time. Attempting to start a new transaction while one is active will fail.
Inputs: no named parameters. Returns: object
call_subroutineA
Call a cataloged BASIC subroutine with arguments.
Executes a cataloged BASIC program and returns the results. Arguments are passed by reference, so output arguments will be returned in the response.
Args: name: Name of the cataloged subroutine args: List of argument values to pass (input arguments). Arguments are passed as strings and converted by the subroutine. num_args: Total number of arguments the subroutine expects. If not specified, uses len(args). Required if subroutine has output-only arguments.
Returns: Dictionary containing: - status: success or error - args_out: List of argument values after subroutine execution - original_args: The input arguments that were passed
Example: # Call GET.CUSTOMER.DATA with customer ID, returns data in args 2-3 call_subroutine("GET.CUSTOMER.DATA", ["CUST001", "", ""], num_args=3)
Inputs: name (required), args, num_args. Returns: object
commit_transactionA
Commit the current transaction.
Saves all changes made since begin_transaction was called. The transaction is closed after commit.
Returns: Dictionary containing: - status: success or error - in_transaction: False after successful commit - message: Confirmation message
Note: If no transaction is active, returns an error.
Inputs: no named parameters. Returns: object
connectA
Establish connection to the Universe/UniData server.
Uses configuration from environment variables:
U2_HOST: Server hostname
U2_USER: Username
U2_PASSWORD: Password
U2_ACCOUNT: Account name
U2_SERVICE: Service type (uvcs/udcs), defaults to uvcs
Returns: Connection status and details including host, account, service, and timestamp.
Inputs: no named parameters. Returns: object
delete_knowledgeA
Delete a saved knowledge topic.
Removes a topic from the knowledge base. Requires confirmation.
Args: topic: The topic name to delete. confirm: Must be True to execute the deletion.
Returns: Status of the delete operation.
Inputs: topic (required), confirm. Returns: object
delete_recordA
Delete a record from a Universe file.
Args: file_name: Target file name record_id: Record ID to delete confirm: Must be True to execute the delete. This is a safety measure.
Returns: Status of the delete operation. Requires confirm=True to execute. Disabled in read-only mode.
Inputs: file_name (required), record_id (required), confirm. Returns: object
describe_fileA
Get a comprehensive description of a Universe file.
Combines file statistics with dictionary information to provide full context about the file structure. Useful for understanding data structure before querying.
Args: file_name: Name of the Universe file
Returns: Dictionary containing file stats, field definitions, and counts.
Inputs: file_name (required). Returns: object
disconnectA
Close all connections to the Universe/UniData server.
Returns: Disconnection status and count of closed connections.
Inputs: no named parameters. Returns: object
execute_queryA
Execute a RetrieVe/UniQuery statement and return results.
Supports read-only query commands: LIST, SELECT, SORT, COUNT, SUM, SSELECT. Results are limited by max_rows parameter or the U2_MAX_RECORDS configuration.
Args: query: RetrieVe/UniQuery statement Examples: - 'LIST CUSTOMERS WITH STATE = "CA"' - 'SELECT ORDERS WITH ORDER.DATE >= "01/01/2024" BY ORDER.DATE' - 'COUNT INVOICES WITH STATUS = "OPEN"' max_rows: Maximum rows to return (optional, defaults to U2_MAX_RECORDS)
Returns: Dictionary containing query, output, status, and row limit applied.
Inputs: query (required), max_rows. Returns: object
execute_tclA
Execute a TCL/ECL command and return the output.
TCL (Terminal Control Language) commands provide system-level operations. Dangerous commands are blocked by the safety validator. Some commands are disabled in read-only mode.
Args: command: TCL/ECL command to execute Examples: - 'WHO' - Show current user info - 'DATE' - Show current date - 'LISTFILES' - List available files - 'FILE.STAT CUSTOMERS' - Show file statistics
Returns: Dictionary containing command, output, and status. Returns error if command is blocked.
Inputs: command (required). Returns: object
export_to_csvA
Export records from a Universe file to CSV format.
Reads the specified records and returns them as a CSV string. Useful for spreadsheet import and data analysis.
Args: file_name: Name of the Universe file record_ids: List of record IDs to export expand_mv: If True, expand multivalues into separate rows. If False (default), join multivalues with delimiter. mv_delimiter: Delimiter for multivalues when expand_mv=False. Default is "|".
Returns: Dictionary containing: - status: success or error - format: "csv" - record_count: Number of records exported - row_count: Number of rows in CSV (may differ if expand_mv=True) - data: CSV string of the exported records
Inputs: file_name (required), record_ids (required), expand_mv, mv_delimiter. Returns: object
export_to_jsonA
Export records from a Universe file to JSON format.
Reads the specified records and returns them as a JSON string. Useful for data analysis and integration with other tools.
Args: file_name: Name of the Universe file record_ids: List of record IDs to export expand_mv: If True, expand multivalues into separate objects. If False (default), preserve multivalue arrays.
Returns: Dictionary containing: - status: success or error - format: "json" - record_count: Number of records exported - data: JSON string of the exported records
Inputs: file_name (required), record_ids (required), expand_mv. Returns: object
get_account_infoA
Get information about the current Universe account.
Returns account-level metadata including available files, VOC entries, and system information.
Returns: Dictionary containing account information, file list, and system details.
Inputs: no named parameters. Returns: object
get_all_knowledgeA
Get ALL saved knowledge about this Universe database.
IMPORTANT: Call this tool at the start of conversations to retrieve previously learned information about the database. This includes:
File descriptions and purposes
Field definitions and meanings
Working query patterns
Relationships between files
Data format notes and conventions
This knowledge was saved from previous conversations to help you work more efficiently with this specific database.
Returns: All saved knowledge as markdown text.
Inputs: no named parameters. Returns: object
get_field_definitionA
Get detailed definition for a specific dictionary field.
Returns the complete field definition including type, field number, conversion code, format, heading, and other attributes.
Args: file_name: Name of the Universe file field_name: Dictionary field/item name
Returns: Detailed field definition or error if not found.
Inputs: file_name (required), field_name (required). Returns: object
get_file_infoC
Get information about a Universe file.
Returns file statistics including type, modulo, separation, and record count.
Args: file_name: Name of the Universe file
Returns: Dictionary containing file statistics and metadata.
Inputs: file_name (required). Returns: object
get_knowledge_topicA
Get saved knowledge for a specific topic.
Retrieves the full content of a previously saved knowledge topic.
Args: topic: The topic name to retrieve.
Returns: The topic content or error if not found.
Inputs: topic (required). Returns: object
get_select_listA
Execute a SELECT statement and return the list of record IDs.
This is useful for getting a list of matching records for further processing, without retrieving the full record data.
Args: query: SELECT or SSELECT statement Example: 'SELECT CUSTOMERS WITH STATE = "CA"' max_ids: Maximum IDs to return (optional, defaults to U2_MAX_RECORDS)
Returns: Dictionary containing query, list of record IDs, count, and whether results were truncated.
Inputs: query (required), max_ids. Returns: object
get_transaction_statusA
Get the current transaction status.
Returns information about whether a transaction is active and when it was started.
Returns: Dictionary containing: - in_transaction: True if transaction is active - started_at: Timestamp when transaction started (if active) - read_only_mode: Whether server is in read-only mode
Inputs: no named parameters. Returns: object
list_catalogA
List available cataloged programs in the account.
Searches the system catalog for programs matching the pattern. This includes BASIC subroutines that can be called with call_subroutine.
Args: pattern: Program name pattern (supports * wildcard). Default "*" lists all cataloged programs.
Returns: Dictionary containing list of program names and count.
Inputs: pattern. Returns: object
list_connectionsA
List all active database connections.
Returns: List of active connections with their details (name, host, account, service, connection time, and active status).
Inputs: no named parameters. Returns: object
list_dictionaryB
List all dictionary items for a Universe file.
Returns D-type (data), I-type (calculated), and other field definitions from the file's dictionary.
Args: file_name: Name of the Universe file include_system: If True, include system dictionary items (@ prefixed)
Returns: Dictionary containing file name, list of dictionary items with their types, and total count.
Inputs: file_name (required), include_system. Returns: object
list_filesA
List available files in the current Universe account.
Args: pattern: File name pattern to match (supports * wildcard). Default "*" lists all files.
Returns: Dictionary containing list of matching file names and count.
Inputs: pattern. Returns: object
list_knowledgeA
List all saved knowledge topics.
Returns a list of topics that have been saved about this database. Use get_knowledge_topic to retrieve the full content of a specific topic, or get_all_knowledge to retrieve everything at once.
Returns: Dictionary containing list of topics with summaries.
Inputs: no named parameters. Returns: object
read_recordA
Read a single record from a Universe file.
The record is returned with fields parsed into structured JSON, preserving multivalue and subvalue structure.
Args: file_name: Name of the Universe file record_id: Record ID (key) to read
Returns: Dictionary containing record id, fields (by number), and optionally the raw record data. Returns error if record not found.
Inputs: file_name (required), record_id (required). Returns: object
read_recordsA
Read multiple records from a Universe file efficiently.
Args: file_name: Name of the Universe file record_ids: List of record IDs to read
Returns: Dictionary containing file name, list of records, count, and any errors. Each record includes id and fields. Records not found are listed in errors.
Inputs: file_name (required), record_ids (required). Returns: object
rollback_transactionA
Rollback the current transaction.
Discards all changes made since begin_transaction was called. The transaction is closed after rollback.
Returns: Dictionary containing: - status: success or error - in_transaction: False after successful rollback - message: Confirmation message
Note: If no transaction is active, returns an error.
Inputs: no named parameters. Returns: object
save_knowledgeA
Save learned information about the Universe database.
Use this to persist useful discoveries about the database schema, file structures, query patterns, and data meanings. This information will be available in future conversations.
Good things to save:
File purposes (e.g., "AR-CUST contains customer master records")
Field meanings (e.g., "In CUSTOMERS, field 1 is name, field 5 is phone")
Working query patterns that produced good results
Relationships between files
Data format notes (date formats, codes, etc.)
Args: topic: A short descriptive name for this knowledge (e.g., "CUSTOMERS file", "Invoice queries", "Date formats") content: The knowledge to save. Use markdown formatting. append: If True, add to existing topic. If False, replace it.
Returns: Status of the save operation.
Examples: save_knowledge("AR-CUST file", "Customer master file. Key is customer number.") save_knowledge("Date formats", "Dates stored as internal format. Use D2/ conversion.")
Inputs: topic (required), content (required), append. Returns: object
search_knowledgeA
Search saved knowledge for specific information.
Searches all saved knowledge for mentions of the query string. Useful for finding previously learned information about specific files, fields, or concepts.
Args: query: Text to search for (case-insensitive).
Returns: List of matching topics and relevant lines.
Inputs: query (required). Returns: object
validate_queryA
Validate a RetrieVe/UniQuery statement before execution.
Checks query syntax and safety without executing it. Useful for validating AI-generated queries before running them.
Args: query: Query statement to validate
Returns: Dictionary containing validation results: - valid: Boolean indicating if query is valid - command: The query command detected (LIST, SELECT, etc.) - warnings: List of potential issues - suggestions: Helpful hints for common patterns
Inputs: query (required). Returns: object
watchdog_statusA
Get the connection watchdog status and statistics.
The watchdog monitors connection health and automatically recovers from hung database connections.
Returns: Watchdog configuration and statistics including check counts, failure counts, and forced reconnects.
Inputs: no named parameters. Returns: object
write_recordA
Write or update a record in a Universe file.
Args: file_name: Target file name record_id: Record ID to create or update fields: Field values as JSON object. Keys are field numbers as strings, values can be strings (single value), lists (multivalues), or nested lists (subvalues). confirm: Must be True to execute the write. This is a safety measure.
Returns: Status of the write operation. Requires confirm=True to execute. Disabled in read-only mode.
Example fields: {"1": "John Doe", "2": ["555-1234", "555-5678"], "3": "CA"}
Inputs: fields (required), file_name (required), record_id (required), confirm. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Each tool has a clearly distinct purpose within its group (connection, schema, CRUD, export, knowledge, query, TCL, subroutines, transactions). Any slight overlaps (e.g., describe_file vs analyze_file_structure) are complementary rather than ambiguous.
All tools follow a consistent verb_noun pattern in snake_case (e.g., list_files, write_record, begin_transaction). No mixing of conventions or vague verbs.
33 tools is somewhat high, but each set (connection, schema, CRUD, export, knowledge, query, TCL, subroutines, transactions) earns its place. The knowledge management group (6 tools) is slightly bloated but supports a unique feature.
The tool surface covers the full lifecycle for a Universe database: connection, schema exploration, record CRUD with safety confirmations, query execution, TCL commands, subroutine calls, transactions, data export, and persistent knowledge. No obvious gaps for its purpose.
Maintenance
Related MCP Connectors
Query, explore, and manage your databases through natural conversation.
Ask questions in plain language, get answers from your business database. No SQL required.
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceBridges legacy MultiValue databases to modern AI assistants like Claude Desktop, allowing natural language queries and data manipulation through a secure, OAuth-authenticated connection.-
- AlicenseAqualityBmaintenanceEnables AI assistants to query and explore Vertica databases through natural language with readonly protection by default. Supports SQL execution, schema discovery, large dataset streaming, and Vertica-specific optimizations like projection awareness.619 npm8MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to interact with Vertica Analytics Databases for querying, schema exploration, and performance optimization through natural language. It provides enterprise-grade features like fine-grained permissions, query streaming, and secure SSL/TLS connections.124Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query and analyze databases using natural language through MCP and HTTP API. Supports 17+ databases and integrates with 55+ platforms.MIT