Using Waii with Model Context Protocol (MCP)
WAII's MCP server integration allows AI language models like Claude to directly interact with your databases through natural language. This powerful capability enables AI assistants to:
Setting Up MCP with WAII
To enable your AI assistant to interact with databases through WAII, you'll need to configure and run the MCP server. The server acts as a bridge between the AI and your database, handling all the necessary translations and security measures.
Prerequisites
Before starting, ensure you have:
- A WAII account with API access
- Your WAII API endpoint URL
- Your WAII API key
- Database connection credentials supported by WAII
Configuration for Claude
To use WAII's database capabilities with Claude, you'll need to configure the MCP server in your Claude configuration. Here's how to set it up:
Follow instructions here: https://modelcontextprotocol.io/quickstart/user and add the following to the mcp config file to enable the waii database chatbot tool.
{
"mcpServers": {
"waii": {
"command": "uvx",
"args": [
"mcp_server_waii",
"--url",
"YOUR_WAII_URL",
"--api-key",
"YOUR_API_KEY",
"--database-key",
"YOUR_DATABASE_CONNECTION_STRING"
]
}
}
}
Replace the placeholder values with your actual credentials:
YOUR_WAII_URL
: Your WAII API endpoint (e.g., "http://WAII_URL/api/")YOUR_API_KEY
: Your WAII API keyYOUR_DATABASE_CONNECTION_STRING
: Your database connection string (e.g., for Snowflake: "snowflake://USER@HOST/DB?role=ROLE&warehouse=WAREHOUSE")
Using the Integration
Once configured, Claude can interact with your database using natural language. Here are some examples of what you can do:
For additional support, contact WAII's support team or consult the WAII documentation.