Getting started
Keywords AI provides an MCP server that gives your AI tools direct access to your observability data. The server supports both HTTP streamable (for hosted deployments) and stdio (for local use).Installation
- Public HTTP (Recommended)
- Local Stdio
- Private HTTP (Teams)
Connect to Keywords AI’s hosted MCP server. The simplest setup - no installation required.
1
Get your API key
Get your Keywords AI API key from platform.keywordsai.co.
2
Configure your AI tool
Add to your MCP configuration file:
3
Restart your AI tool
Restart Cursor or Claude Desktop to load the MCP server.
Authentication
| Mode | API Key Location | Best For |
|---|---|---|
| Public HTTP | Authorization header | Individual users, quick setup |
| Local Stdio | KEYWORDS_API_KEY env var | Personal development, offline use |
| Private HTTP | Vercel environment variable | Teams, shared access |
Enterprise configuration
For enterprise users with a custom API endpoint (e.g.,endpoint.keywordsai.co), you can override the default API base URL.
- HTTP Mode
- Stdio Mode
Add the
keywords-api-base-url header:| Endpoint | URL |
|---|---|
| Default (Cloud) | https://api.keywordsai.co/api |
| Enterprise | https://endpoint.keywordsai.co/api |
| Local development | http://localhost:8000/api |
Available tools
Once connected, your AI tools have access to the following Keywords AI features.Logs
| Tool | Description |
|---|---|
list_logs | List and filter LLM request logs with powerful query capabilities |
get_log_detail | Retrieve complete details of a single log by unique ID |
- “Show me the most expensive requests from the last hour”
- “Find all failed requests for customer user_123”
- “List logs where latency > 5 seconds”
Traces
| Tool | Description |
|---|---|
list_traces | List and filter traces with sorting and pagination |
get_trace_tree | Retrieve complete hierarchical span tree of a trace |
- “Show me traces with errors in production”
- “Get the span tree for trace xyz123”
- “Find traces that cost more than $0.10”
Customers
| Tool | Description |
|---|---|
list_customers | List customers with pagination and sorting |
get_customer_detail | Get customer details including budget usage |
- “Who are my top 10 customers by cost?”
- “Show customer budget usage for user_abc”
- “List customers sorted by number of requests”
Prompts
| Tool | Description |
|---|---|
list_prompts | List all prompts in your organization |
get_prompt_detail | Get detailed prompt information |
list_prompt_versions | List all versions of a prompt |
get_prompt_version_detail | Get specific version details |
- “Show me all my prompts”
- “Get the latest version of my customer-support prompt”
- “What are the different versions of prompt xyz?”
Troubleshooting
MCP server not showing in Cursor/Claude Desktop
MCP server not showing in Cursor/Claude Desktop
- Verify your config file path is correct
- Check JSON syntax (use a JSON validator)
- Restart your AI tool completely (not just reload)
- For stdio mode: ensure
npm run buildcompleted successfully
Authentication errors
Authentication errors
- Verify your API key is correct
- For HTTP mode: ensure header is
Authorization: Bearer YOUR_KEY(not just the key) - For stdio mode: check the
KEYWORDS_API_KEYenv var is set correctly
Connection timeout or errors
Connection timeout or errors
- Check your internet connection
- For enterprise: verify
KEYWORDS_API_BASE_URLis correct - For private HTTP: ensure Vercel deployment is active
Source code
The Keywords AI MCP server is open source:GitHub Repository
View source code, report issues, and contribute