klavis
Klavis-AI · Klavis-AI/klavis
Klavis AI provides MCP integration platforms and SDKs to enable AI agents to reliably use tools and access various integrations, optimizing context windows.
Klavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
5.8k stars564License: Apache-2.0Updated 5 months ago0 opens
Preview
▍
What you can do with it
- Connect your AI agent to 100+ prebuilt integrations with OAuth support.
- Create scalable MCP environments for LLM training and reinforcement learning.
- Integrate various services into an AI agent's workflow using the Python or TypeScript SDK.
Safety check
Safe
No risky patterns found in the files we scanned.
Automated scan of the repo files. Always review code you run.
From the README
🎯 Choose Your Solution
Strata
<strong>Intelligent connectors for your AI agent, optimize context window</strong>
MCP Integrations
<strong>100+ prebuilt integrations out-of-the-box, with OAuth support</strong>
MCP Sandbox
<strong>scalable MCP environments for LLM training and RL</strong>
Quick Start
Option 1: Cloud-hosted - klavis.ai
Option 2: Self-host
# Run any MCP Integration
docker pull ghcr.io/klavis-ai/github-mcp-server:latest
docker run -p 5000:5000 ghcr.io/klavis-ai/github-mcp-server:latest
# Install Open Source Strata locally
pipx install strata-mcp
strata add --type stdio playwright npx @playwright/mcp@latest
Option 3: SDK
# Python SDK
from klavis import Klavis
from klavis.types import McpServerName
klavis = Klavis(api_key="your-key")
# Create Strata instance
strata = klavis_client.mcp_server.create_strata_server(
user_id="user123",
servers=[McpServerName.GMAIL, McpServerName.SLACK],
)
# Or use individual MCP servers
gmail = klavis.mcp_server.create_server_instance(
server_name=McpServerName.GMAIL,
user_id="user123",
)
// TypeScript SDK
import { KlavisClient, McpServerName } from 'klavis';
const klavis = new KlavisClient({ apiKey: 'your-api-key' });
// Create Strata instance
const strata = await klavis.mcpServer.createStrataServer({
userId: "user123",
servers: [Klavis.McpServerName.Gmail, Klavis.McpServerName.Slack],
});
// Or use individual MCP servers
const gmail = await klavis.mcpServer.createServerInstance({
serverName: McpServerName.GMAIL,
userId: "user123"
});
Option 4: REST API
# Create Strata server
curl -X POST "https://api.klavis.ai/v1/mcp-server/strata" \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"user_id": "user123",
"servers": ["GMAIL", "SLACK"]
}'
# Create individual MCP server
curl -X POST "https://api.klavis.ai/v1/mcp-server/instance" \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"server_name": "GMAIL",
"user_id": "user123"
}'
Resources
Made with ❤️ by the Klavis Team