MCP Server
Kravia offers an MCP server so that you can easily connect your preferred agents workflow to the Kravia API.
How to connect
In order to connect to the Kravia MCP server, you will need to add the following url inside Claude or similar:
Demo environment available at https://mcp-qa.kravia.ai/mcp
The MCP server is protected so you will need an API key in order to connect to it
You can use the same API key that the one you are using to access the rest of our API (ref https://developer.kravia.ai/api-guide/authentication) but authentication is slightly different.
The MCP server accepts the API key as a Basic authentication header where:
-
username: clientId
-
password: clientSecret
You can generate the Authorization header like this
Authorization: Basic Base64Encode(clientId:clientSecret)
Configure your preferred app
Once you have access to the MCP server, you can configure your preferred chat application.
Claude Desktop
Open the your claude_desktop_config.json configuration file and add the following section to your MCP servers list
{
"mcpServers": {
"kravia": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.kravia.ai/mcp",
"--header",
"Authorization: Basic <Base64Encode('clientId:clientSecret')>"
]
}
}
}
Claude code
Run the following command from a terminal console
claude mcp add --transport http kravia https://mcp.kravia.ai/mcp \
--header "Authorization: Basic <Base64Encode('clientId:clientSecret')>"

