Skip to main content
Glama

Cloudflare MCP Server

by ry-ops

write_kv_value

Store key-value data in Cloudflare Workers KV storage to persist application data, cache content, or manage configuration settings with optional expiration and metadata.

Instructions

Write a key-value pair to Workers KV storage. Can store text or metadata.

Input Schema

NameRequiredDescriptionDefault
account_idNoAccount ID (uses default from config if not provided)
namespace_idYesThe KV namespace ID
keyYesThe key to write
valueYesThe value to store
expiration_ttlNoNumber of seconds for the key to expire
metadataNoArbitrary JSON metadata to store with the key

Input Schema (JSON Schema)

{ "properties": { "account_id": { "description": "Account ID (uses default from config if not provided)", "type": "string" }, "expiration_ttl": { "description": "Number of seconds for the key to expire", "type": "number" }, "key": { "description": "The key to write", "type": "string" }, "metadata": { "description": "Arbitrary JSON metadata to store with the key", "type": "object" }, "namespace_id": { "description": "The KV namespace ID", "type": "string" }, "value": { "description": "The value to store", "type": "string" } }, "required": [ "namespace_id", "key", "value" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ry-ops/cloudflare-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server