home / mcp / kevodb mcp server
An MCP server for accessing your data on Kevo
Configuration
View docs{
"mcpServers": {
"kevodb-kevo-mcp": {
"url": "http://localhost:9000/mcp",
"headers": {
"KEVO_HOST": "localhost",
"KEVO_PORT": "50051"
}
}
}
}You can expose KevoDB operations through a dedicated MCP server so AI agents and tools can interact with KevoDB using a standardized, UTF-8 based API. This server supports core KevoDB actions like key-value operations, scans, transactions, batches, and statistics, all accessible via MCP tools and a simple runtime configuration.
Start by running the KevoDB server if it isn’t already running. Then launch the MCP server so AI agents can connect and perform operations like get, put, scan, and transactions against KevoDB. Your agents connect to the MCP endpoint and issue the available tools. The MCP server also exposes a default HTTP endpoint where clients can connect to issue commands, and a local runtime path you can run directly for development and testing.
Prerequisites you need before installing the MCP server are Python 3.8 or newer and a running KevoDB instance. You will also need the FastMCP library and the Python Kevo SDK to enable MCP functionality.
Install dependencies with the following command.
pip install fastmcp python-kevoEnsure KevoDB is running on the default endpoint or configure the host/port as needed. You can run the MCP server directly from its entry script.
Start the MCP server with the following command.
python main.pyYou can connect KevoDB to the MCP server using environment variables that define where KevoDB is reachable. By default, the MCP server expects KevoDB on localhost port 50051, but you can override this to suit your network.
KevoDB connection defaults can be overridden with these variables.
KEVO_HOST=localhost
KEVO_PORT=50051AI agents that support MCP can connect to the MCP endpoint and use the exposed tools to interact with KevoDB. The server provides a comprehensive set of tools for everyday database operations as well as transactional workflows.
If you need to adjust where the MCP server listens, update KEVO_HOST and KEVO_PORT to point to the desired KevoDB instance. If the KevoDB server changes its network location, ensure the MCP server is restarted so the new endpoint is used.
These MCP tools provide full coverage of core KevoDB features, including basic key-value operations (get, put, delete), scans (range, prefix, suffix), transactions, batch writes, and statistics retrieval.
Establish a connection to the MCP server from your AI agent so subsequent tool calls can be executed.
Retrieve a value by key from KevoDB.
Store a key-value pair in KevoDB.
Delete a key from KevoDB.
Scan keys with range, prefix, or suffix options.
Execute multiple operations in a single batch.
Retrieve database statistics.
Begin a new transaction and obtain a transaction ID.
Commit a transaction by its ID.
Rollback a transaction by its ID.
Put a key-value pair within an active transaction.
Get a value by key within a transaction.
Delete a key within a transaction.
Close the KevoDB connection and clean up resources.