MCP.so
登录

DenoKV MCP Server

@joshuayoes

关于 DenoKV MCP Server

An MCP Server for chatting with Deno KV instances

基本信息

分类

其他

运行时

node

传输方式

stdio

发布者

joshuayoes

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "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>"
      }
    }
  }
}

工具

5

Set a key-value pair in the Deno KV store.

Get a value by key from the Deno KV store.

Delete a key-value pair from the Deno KV store.

Get multiple values by keys from the Deno KV store.

List key-value pairs based on a selector.

概览

What is DenoKV MCP Server?

DenoKV MCP Server is an MCP server that provides tools to interact with Deno KV stores—both local files and remote Deno Deploy databases. It is designed for developers using MCP clients like Claude Desktop or Cursor to persist and query key-value data through an AI agent.

How to use DenoKV MCP Server?

Configure your MCP client with the command and environment variables. Use the published JSR package (@joshuayoes/deno-kv-mcp) with Deno (recommended) or Node (≥v22.7.0). Set DENO_KV_PATH to a local file path or remote connection URL, and DENO_KV_ACCESS_TOKEN only for remote databases. Example for Deno: deno run --unstable-kv --allow-env --allow-net --allow-read --allow-write --allow-run jsr:@joshuayoes/deno-kv-mcp.

Key features of DenoKV MCP Server

  • Set key-value pairs with optional TTL (expireIn).
  • Get values with strong or eventual consistency.
  • Delete key-value pairs.
  • Get multiple values at once.
  • List key-value pairs by prefix, range, and limit.

Use cases of DenoKV MCP Server

  • Persist AI-generated data to a local or remote Deno KV store.
  • Retrieve stored configuration or user data during a conversation.
  • Manage a key-value database from an AI assistant.
  • Perform prefix-based listing of entries (e.g., all users, all orders).

FAQ from DenoKV MCP Server

What tools does DenoKV MCP Server provide?

It provides six tools: set, get, delete, getMany, and list for interacting with Deno KV stores.

What environment variables are required?

You must set DENO_KV_PATH (local file path or remote Deno Deploy URL). If connecting to a remote database, also set DENO_KV_ACCESS_TOKEN.

Can DenoKV MCP Server be used with Node?

Yes, with Node ≥v22.7.0, you can run it using npx xjsr @joshuayoes/deno-kv-mcp@latest or by running index.ts directly with --experimental-transform-types.

Does the server support time-to-live (TTL) on keys?

Yes, the set tool accepts an optional expireIn parameter in milliseconds.

How do I connect to a remote Deno Deploy database?

Set DENO_KV_PATH to the connection URL (https://api.deno.com/databases/<UUID>/connect) and provide your Deno Deploy access token via DENO_KV_ACCESS_TOKEN.

评论

其他 分类下的更多 MCP 服务器