Sponsored by Deepsite.site

DenoKV MCP Server

Created By
joshuayoes8 months ago
An MCP Server for chatting with Deno KV instances
Content

DenoKV MCP Server

JSR Score

Usage with MCP Clients

The easiest way to integrate this server with an MCP client like Claude Desktop or Cursor is to use the published JSR package. Configure your MCP client as follows:

{
  "mcpServers": {
    "denokv": {
      "command": "deno",
      "args": [
        "run",
        "--unstable-kv",
        "--allow-env",
        "--allow-net",
        "--allow-read",
        "--allow-write",
        "--allow-run",
        "jsr:@joshuayoes/deno-kv-mcp"
      ],
      "env": {
        "DENO_KV_PATH": "path/to/your/kv.db OR https://api.deno.com/databases/<UUID>/connect",
        "DENO_KV_ACCESS_TOKEN": "<YOUR_DENO_DEPLOY_ACCESS_TOKEN>" // Only needed for remote DB
      }
    }
  }
}

Make sure to replace the env values with your specific details.

Node

After figuring out that:

We can run this in Node!

{
  "mcpServers": {
    "denokv": {
      "command": "npx",
      "args": ["xjsr", "@joshuayoes/deno-kv-mcp@latest"],
      "env": {
        "DENO_KV_PATH": "path/to/your/kv.db OR https://api.deno.com/databases/<UUID>/connect",
        "DENO_KV_ACCESS_TOKEN": "<YOUR_DENO_DEPLOY_ACCESS_TOKEN>" // Only needed for remote DB
      }
    }
  }
}

Make sure to replace the env values with your specific details.

If you really want to get crazy, replace npx with bunx.

Available Tools

This server provides the following tools:

  • set: Set a key-value pair in the Deno KV store.
    • key (array of strings): The key to set.
    • value (string): The value to set (JSON string).
    • expireIn (number, optional): Time-to-live (TTL) for the key in milliseconds.
  • get: Get a value by key from the Deno KV store.
    • key (array of strings): The key to get.
    • consistency (enum: "strong" | "eventual", optional): Consistency level for the read.
  • delete: Delete a key-value pair from the Deno KV store.
    • key (array of strings): The key to delete.
  • getMany: Get multiple values by keys from the Deno KV store.
    • keys (array of array of strings): The keys to get.
    • consistency (enum: "strong" | "eventual", optional): Consistency level for the read.
  • list: List key-value pairs based on a selector.
    • prefix (array of strings, optional): Key prefix to list (e.g., ["users"]).
    • start (array of strings, optional): Start key for range queries (e.g., ["orders", "2023"]).
    • end (array of strings, optional): End key for range queries (e.g., ["orders", "2024"]).
    • limit (integer, positive, optional): Maximum number of entries to return.
    • consistency (enum: "strong" | "eventual", optional): Consistency level for the list operation.
    • batchSize (integer, positive, optional): Number of entries to fetch per batch internally.
    • reverse (boolean, optional): Whether to reverse the order of entries.
    • Note: Must provide prefix, start, or (start and end) parameter. end requires start or prefix.

Local Development Setup

If you prefer to run the server from a local clone of this repository (e.g., for development or testing), use the following configuration instead:

Deno

{
  "mcpServers": {
    "denokv": {
      "command": "deno",
      "args": [
        "run",
        "--unstable-kv",
        "--allow-env",
        "--allow-net",
        "--allow-read",
        "--allow-write",
        "--allow-run",
        "/path/to/your/mcp-deno-kv/index.ts" // Replace with the actual path to index.ts
      ],
      "env": {
        "DENO_KV_PATH": "path/to/your/kv.db OR https://api.deno.com/databases/<UUID>/connect",
        "DENO_KV_ACCESS_TOKEN": "<YOUR_DENO_DEPLOY_ACCESS_TOKEN>" // Only needed for remote DB
      }
    }
  }
}

Make sure to replace /path/to/your/mcp-deno-kv/index.ts and the env values with your specific details.

Node

Using node (>=v22.7.0), we can also run the server directly without a build step!

You may need to run deno install first to add a node_modules folder.

{
  "mcpServers": {
    "denokv": {
      "command": "node",
      "args": [
        "--experimental-transform-types",
        "/path/to/your/mcp-deno-kv/index.ts" // Replace with the actual path to index.ts
      ],
      "env": {
        "DENO_KV_PATH": "path/to/your/kv.db OR https://api.deno.com/databases/<UUID>/connect",
        "DENO_KV_ACCESS_TOKEN": "<YOUR_DENO_DEPLOY_ACCESS_TOKEN>" // Only needed for remote DB
      }
    }
  }
}

Make sure to replace /path/to/your/mcp-deno-kv/index.ts and the env values with your specific details.

If you really want to get crazy, replace npx with bunx.

Environment Variables

This server requires the following environment variables to be set:

  • DENO_KV_PATH: Specifies the path to the Deno KV database.
    • For a local database, this should be the file path (e.g., ./my-kv.db).
    • For a remote Deno Deploy database, this should be the connection URL (e.g., https://api.deno.com/databases/<UUID>/connect).
  • DENO_KV_ACCESS_TOKEN: Required only if DENO_KV_PATH points to a remote Deno Deploy database. This should be your Deno Deploy personal access token.
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Tavily Mcp
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Amap Maps高德地图官方 MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
ChatWiseThe second fastest AI chatbot™
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop