mcp-kyvos-server is a server implementation that integrates the Kyvos platform with the Model Context Protocol (MCP). It enables users to query Kyvos semantic models using natural language, translating prompts into executable queries and returning results from Kyvos. The server supports both SSE and STDIO communication modes and allows secure authentication using user-provided Kyvos credentials (basic and OAuth2.0).
Project description
MCP Kyvos Server
The MCP Kyvos Server enables agentic applications to interact with the Kyvos platform for querying business data. It supports two transport modes:
- SSE (Server-Sent Events): This transport is suited for remote integrations. It uses HTTP requests for communication. It allows servers to handle multiple client connections efficiently. SSE mode supports both Basic and OAuth authorization. OAuth requires users to authenticate using their Kyvos credentials before establishing a connection, providing a secure and standardized login mechanism.
- STDIO (Standard I/O): This transport is primarily used for inter-process communication within the same system. It’s particularly suitable for command-line tools and local integrations where the client and server operate within the same process. Only Basic authorization is supported in this mode.
Tools
The MCP Kyvos server exposes the following tools:
-
kyvos_list_semantic_model- Description: Lists available semantic model with schema details.
-
kyvos_list_semantic_model_columns- Description: Retrieves column metadata for a specified semantic model.
-
kyvos_sql_generation_prompt- Description: Provides the system prompt template for SQL generation.
-
kyvos_execute_query- Description: Executes a Spark SQL query on Kyvos and returns a json based result set.
Installation
Using uv (Recommended)
When using uv, no specific installation is needed. We will use uvx to directly run mcp-kyvos-server.
Note: Make sure you have
uvinstalled. See the uv installation guide.
Using pip
Install the mcp-kyvos-server package from pip:
pip install mcp-kyvos-server
Configuration & Parameters
The server can be configured via environment variables or command-line flags. CLI flags override environment variables.
| Parameter | Environment Variable | CLI Flag | Required | Default Value | Description |
|---|---|---|---|---|---|
| Kyvos URL | KYVOS_URL |
--kyvos-url <url> |
Yes | — | The base URL of the Kyvos server. Example: https://<server-address>:<port>/kyvos |
| Kyvos Username | KYVOS_USERNAME |
--kyvos-username <username> |
Yes | — | The Kyvos account username used to authenticate and log in to the Kyvos application. Will be overridden if using OAuth or basic-auth flow |
| Kyvos Password | KYVOS_PASSWORD |
--kyvos-password <password> |
Yes | — | The corresponding password for the provided KYVOS_USERNAME, used for authentication with the Kyvos application. Will be overridden if using OAuth or basic-auth flow |
| Prompt File Path | KYVOS_PROMPT_FILE |
--kyvos-prompt-file <file_path> |
No | — | Path to the .txt file containing the prompt for Spark SQL generation |
| Default Folder | KYVOS_DEFAULT_FOLDER |
--kyvos-default-folder <folder> |
No | — | Folder containing multiple semantic models used for querying and metadata management in the Kyvos platform |
| Transport | — | --transport <stdio or sse> |
No | stdio |
The type of communication transport to use: stdio for standard input/output or sse for Server-Sent Events |
| SSL Verification | VERIFY_SSL |
--verify-ssl <true or false> |
No | false |
Flag to enable or disable SSL certificate verification when making HTTP requests to Kyvos |
| Max Rows | MAX_ROWS |
--max-rows <max_rows> |
No | 1000 | Limit the number of rows in the query response |
| Environment File | — | --env-file <file_path> |
No | — | Path to an .env file from which to load environment variables |
| SSL Key | SSL_KEY_FILE |
--ssl-key-file <file_path> |
No | — | Path to the SSL private key file used to enable HTTPS on the server |
| SSL Certificate | SSL_CERTIFICATE_FILE |
--ssl-certificate-file <file_path> |
No | — | Path to the SSL certificate file used to enable HTTPS on the server |
| Auth Type | SERVER_AUTH_TYPE |
--server-auth-type <basic/oauth> |
No | basic |
Type of authorization to start the server with |
| Port | — | --port <port> |
No | 8000 | Port on which to run the server |
| MCP Server URL | MCP_SERVER_URL |
--mcp-server-url <url> |
Yes | - | The full URL where the MCP server will run (e.g., http://mcp.server:9090) |
| MCP Kyvos Server Database Path | MCP_KYVOS_DB_PATH |
— | No | HOME_PATH/.mcp_kyvos_server |
The path where the MCP server database will be created |
| Log Level | — | --log-level |
No | DEBUG |
Specifies the log level to use (e.g., DEBUG, INFO, WARNING, ERROR, CRITICAL). |
| Folder Name Required | IS_FOLDERNAME_REQUIRED |
--is_foldername_required |
No | False |
Specifies whether a folder name is required when making a request from the client side. If set to True, an error will be returned if no folder name is provided. If set to False, the request will return all semantic models across all folders. |
Sample .env File
Create a .env file with the required parameters for your MCP-Kyvos server:
KYVOS_URL=https://kyvos.cloud/kyvos
KYVOS_USERNAME=your-username
KYVOS_PASSWORD=your-password
KYVOS_DEFAULT_FOLDER=Business Catalog
Usage
SSE Mode
-
Start the MCP server with SSE transport.
Using env file:
mcp-kyvos-server --transport sse --env-file /path/to/.env
Or provide arguments directly:
mcp-kyvos-server \ --kyvos-url https://your-kyvos-endpoint \ --kyvos-username user123 \ --kyvos-password pass123
-
Configure your client application to include the SSE server in its MCP server configuration:
{ "mcpServers": { "kyvos-sse": { "url": "http://<machine_ip>:<port>/sse" } } }
STDIO Mode
Configure your client application as follows:
Using uvx:
{
"mcpServers": {
"kyvos-stdio": {
"command": "uvx",
"args": [
"mcp-kyvos-server",
"--env-file",
"/path/to/.env"
]
}
}
}
Using pip:
{
"mcpServers": {
"kyvos-stdio": {
"command": "python3",
"args": [
"-m",
"mcp_kyvos_server",
"--env-file",
"/path/to/.env"
]
}
}
}
Note: If using a virtual environment, provide the full path to the environment's
pythonexecutable (/path/to/venv/python3). On Windows, replacepython3withpython.
Claude Desktop Usage
STDIO Mode Configuration
Using uvx
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"kyvos-stdio": {
"command": "uvx",
"args": [
"mcp-kyvos-server",
"--env-file",
"/full/path/to/.env"
]
}
}
}
Using pip
If you've installed mcp-kyvos-server via pip:
pip install mcp-kyvos-server
Use Python module directly
{
"mcpServers": {
"kyvos-stdio": {
"command": "python3",
"args": [
"-m",
"mcp_kyvos_server",
"--env-file",
"/full/path/to/.env"
]
}
}
}
Note: If using a virtual environment, provide the full path to the environment's
pythonexecutable (/path/to/venv/python3). On Windows, replacepython3withpython.
SSE Mode Support (Remote)
Important: Claude Desktop does not natively support SSE (Server-Sent Events). It only supports
stdiotransport.
To connect Claude Desktop to a remote SSE MCP server, use mcp-remote, a CLI tool that bridges remote SSE servers to local stdio clients.
Setup with mcp-remote
-
Install Node.js (v18 or higher) - Download here
-
Configure Claude Desktop to use
mcp-remotevianpx:{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "mcp-remote", "http://<your-machine-ip>:<port>/sse", "--allow-http" ] } } }
Note: Replace
<your-machine-ip>and<port>with the actual address of your SSE server. Use the--allow-httpflag if using HTTP-based MCP server URL.
After saving the configuration file, completely quit Claude Desktop and restart it. The application needs to restart to load the new configuration and start the MCP server.
Note: If you encounter an OAuth authorization error, try the following steps:
-
Delete the
.mcp-authfolder- On Linux/macOS:
~/.mcp-auth
- On Windows (Command Prompt):
C:\Users\<your-username>\.mcp-auth
- On Linux/macOS:
-
Restart the
mcp-kyvos-server
Gemini CLI Usage
STDIO Mode Configuration
To integrate mcp-kyvos-server with Gemini CLI, use the STDIO transport mode. This allows Gemini to spawn and communicate with the MCP Kyvos server locally.
Using uvx
In your Gemini CLI configuration file (e.g., ~/.gemini/config.json), add the following MCP server entry:
{
"mcpServers": {
"kyvos-stdio": {
"command": "uvx",
"args": [
"mcp-kyvos-server",
"--env-file",
"/full/path/to/.env"
]
}
},
"theme": "Default",
"selectedAuthType": "oauth-personal"
}
Using pip
If you've installed mcp-kyvos-server via pip:
pip install mcp-kyvos-server
** Use Python module directly**
{
"mcpServers": {
"kyvos-stdio": {
"command": "python3",
"args": [
"-m",
"mcp_kyvos_server",
"--env-file",
"/full/path/to/.env"
]
}
},
"theme": "Default",
"selectedAuthType": "oauth-personal"
}
SSE Mode Support (Remote)
Important: Gemini Cli does not natively support SSE (Server-Sent Events). It only supports
stdiotransport.
To connect Gemini Cli to a remote SSE MCP server, use mcp-remote, a CLI tool that bridges remote SSE servers to local stdio clients.
Setup with mcp-remote
-
Install Node.js (v18 or higher) - Download here
-
Configure Claude Desktop to use
mcp-remotevianpx:{ "mcpServers": { "mcp-server": { "command": "npx", "args": [ "mcp-remote", "http://<your-machine-ip>:<port>/sse", "--allow-http" ] } }, "theme": "Default", "selectedAuthType": "oauth-personal" }
Note: Replace
<your-machine-ip>and<port>with the actual address of your SSE server. Use the--allow-httpflag if using HTTP-based MCP server URL.
Note: If you encounter an OAuth authorization error, try the following steps:
-
Delete the
.mcp-authfolder- On Linux/macOS:
~/.mcp-auth
- On Windows (Command Prompt):
C:\Users\<your-username>\.mcp-auth
- On Linux/macOS:
-
Restart the
mcp-kyvos-server
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_kyvos_server-1.1.0.tar.gz.
File metadata
- Download URL: mcp_kyvos_server-1.1.0.tar.gz
- Upload date:
- Size: 38.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b07482c9aeadd8f8522c4abd301abe2afc7883eb11c1bfd2fd4f1f0aeac36d1d
|
|
| MD5 |
e7a61820c9e3fb82bb14e0d33e802470
|
|
| BLAKE2b-256 |
f144671e8dcb333e35bc713780cd30771c7140046abb82dbe6eaef68231bce41
|
File details
Details for the file mcp_kyvos_server-1.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_kyvos_server-1.1.0-py3-none-any.whl
- Upload date:
- Size: 50.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f416e206cc06c557c0accf670180cfc93c99beba22ac69ba50761d82eaf8f3a
|
|
| MD5 |
9987b31a3576964bb700b4e2c9e32863
|
|
| BLAKE2b-256 |
375e2bb25c9c04578e2841d9cc7e593fe614cf6f07199546616f796a394d5305
|