Agents SDK
cloudflare/skills
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
Cloudflare Workers deployment using createWorkerHandler from @cyanheads/mcp-ts-core/worker.
$ npx skills add cyanheads/pubmed-mcp-server --skill api-workers -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cyanheads/pubmed-mcp-server api-workers --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cyanheads/pubmed-mcp-server.git skills-src && mkdir -p .claude/skills && cp -r skills-src/framework-skills/api-workers .claude/skills/api-workers && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "api-workers" agent skill from https://github.com/cyanheads/pubmed-mcp-server/tree/main/framework-skills/api-workers into .claude/skills/api-workers/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-workers", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cyanheads/pubmed-mcp-server/tree/main/framework-skills/api-workersType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cyanheads/pubmed-mcp-server --skill api-workers -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cyanheads/pubmed-mcp-server api-workers --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cyanheads/pubmed-mcp-server.git skills-src && mkdir -p .agents/skills && cp -r skills-src/framework-skills/api-workers .agents/skills/api-workers && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "api-workers" agent skill from https://github.com/cyanheads/pubmed-mcp-server/tree/main/framework-skills/api-workers into .agents/skills/api-workers/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-workers", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cyanheads/pubmed-mcp-server --skill api-workers -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cyanheads/pubmed-mcp-server api-workers --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cyanheads/pubmed-mcp-server.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/framework-skills/api-workers .cursor/skills/api-workers && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "api-workers" agent skill from https://github.com/cyanheads/pubmed-mcp-server/tree/main/framework-skills/api-workers into .cursor/skills/api-workers/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-workers", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cyanheads/pubmed-mcp-server.git --path framework-skills/api-workers--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cyanheads/pubmed-mcp-server --skill api-workers -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cyanheads/pubmed-mcp-server api-workers --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cyanheads/pubmed-mcp-server.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/framework-skills/api-workers .gemini/skills/api-workers && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "api-workers" agent skill from https://github.com/cyanheads/pubmed-mcp-server/tree/main/framework-skills/api-workers into .gemini/skills/api-workers/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-workers", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cyanheads/pubmed-mcp-server api-workersInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cyanheads/pubmed-mcp-server --skill api-workers -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cyanheads/pubmed-mcp-server.git skills-src && mkdir -p .github/skills && cp -r skills-src/framework-skills/api-workers .github/skills/api-workers && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "api-workers" agent skill from https://github.com/cyanheads/pubmed-mcp-server/tree/main/framework-skills/api-workers into .github/skills/api-workers/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-workers", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cyanheads/pubmed-mcp-server --skill api-workers -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cyanheads/pubmed-mcp-server api-workers --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cyanheads/pubmed-mcp-server.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/framework-skills/api-workers .opencode/skills/api-workers && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "api-workers" agent skill from https://github.com/cyanheads/pubmed-mcp-server/tree/main/framework-skills/api-workers into .opencode/skills/api-workers/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-workers", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
api-workersCloudflare Workers deployment using createWorkerHandler from @cyanheads/mcp-ts-core/worker.
API Workers is an agent skill from cyanheads/pubmed-mcp-server. Cloudflare Workers deployment using createWorkerHandler from @cyanheads/mcp-ts-core/worker. Covers the full handler signature, binding types, CloudflareBindings extensibility, runtime compatibility guards, and wrangler.toml requirements.
Its SKILL.md is about 3.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Research & Science, covering MCP servers. It works with Cloudflare Workers and Model Context Protocol. The repository describes itself as: Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms via MCP. STDIO or Streamable HTTP. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 5a417fb. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
duckdbbunFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
MCP_REQUEST_STATE_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
API Workers loads about 3.9k tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 1,338 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from cyanheads/pubmed-mcp-server at commit 5a417fb, republished under its Apache-2.0 licence (© cyanheads). 1,338 words, ~3,863 tokens.
.claude/skills/api-workers/SKILL.md (or your agent's skills folder).@cyanheads/mcp-ts-core/worker exports createWorkerHandler — the Workers entry point. It wraps tool/resource/prompt registries into a per-request McpServer factory that integrates with the Cloudflare Workers runtime.
createWorkerHandler(options)import { createWorkerHandler } from '@cyanheads/mcp-ts-core/worker';
import { echoTool } from './mcp-server/tools/definitions/echo.tool.js';
import { echoResource } from './mcp-server/resources/definitions/echo.resource.js';
import { echoPrompt } from './mcp-server/prompts/definitions/echo.prompt.js';
import { initMyService } from './services/my-domain/my-service.js';
export default createWorkerHandler({
tools: [echoTool],
resources: [echoResource],
prompts: [echoPrompt],
setup(core) {
initMyService(core.config, core.storage);
},
extraEnvBindings: [['MY_API_KEY', 'MY_API_KEY']],
extraObjectBindings: [['MY_CUSTOM_KV', 'MY_CUSTOM_KV']],
onScheduled: async (controller, env, ctx) => {
// Cloudflare cron trigger handler
},
});Fresh scaffolds register definitions directly in the entry point as shown above. If your project later adds barrel files for definitions, importing arrays from those barrels is also fine.
| Option | Type | Purpose |
|---|---|---|
tools | AnyToolDefinition[] | Tool definitions to register |
resources | AnyResourceDefinition[] | Resource definitions to register |
prompts | PromptDefinition[] | Prompt definitions to register |
extensions | Record<string, object> | SEP-2133 extensions to advertise in server capabilities |
instructions | string | (env: CloudflareBindings) => string | Server-level orientation forwarded to the model on every initialize. Resolver form runs inside initializeApp(env) so env-derived text is available (see Workers-specific warnings). Empty string treated as unset. |
setup | (core: CoreServices) => void | Promise<void> | Runs after core services are ready, during the first request (lazy init inside the fetch handler) |
extraEnvBindings | [bindingKey: string, processEnvKey: string][] | Maps CF string bindings to process.env keys |
extraObjectBindings | [bindingKey: string, globalKey: string][] | Maps CF object bindings (KV, R2, D1, AI) to globalThis keys |
onScheduled | (controller, env, ctx) => Promise<void> | Cloudflare cron trigger handler |
McpServer factory: a new server instance is created for each request. Required by SDK security advisory GHSA-345p-7cg4-v4c7.canUseNodeSDK() returns false for V8 isolates, so no OTLP spans or metrics are emitted. Structured logs via ctx.log still work. OTEL_ENABLED=true has no effect in Workers. ctx.waitUntil() is received and passed through to app.fetch and onScheduled but not called by the framework (nothing to flush asynchronously).Cloudflare Workers bindings come in two kinds with different injection mechanisms:
| Type | Examples | Injection mechanism | Runtime access |
|---|---|---|---|
| String values | API keys, base URLs, feature flags | injectEnvVars() → process.env | process.env.MY_API_KEY |
| Object bindings | KV namespace, R2 bucket, D1 database, AI | storeBindings() → globalThis | (globalThis as any).MY_CUSTOM_KV |
extraEnvBindings: array of [bindingKey, processEnvKey] tuples. The value of env[bindingKey] is assigned to process.env[processEnvKey] at request time.
extraObjectBindings: array of [bindingKey, globalKey] tuples. The object at env[bindingKey] is stored on globalThis[globalKey] at request time.
Both are refreshed on every request. Never cache binding references between requests.
CloudflareBindings extensibilityCore defines CloudflareBindings without an index signature, so servers extend it via intersection rather than module augmentation:
import type { CloudflareBindings as CoreBindings } from '@cyanheads/mcp-ts-core/worker';
interface MyBindings extends CoreBindings {
MY_CUSTOM_KV: KVNamespace;
MY_R2_BUCKET: R2Bucket;
}Pass MyBindings as a type parameter where the framework accepts a generic env type (e.g., Hono route handlers, onScheduled).
runtimeCaps feature detectionimport { runtimeCaps } from '@cyanheads/mcp-ts-core/utils';
if (runtimeCaps.isWorkerLike) {
// Workers-specific path
}
if (runtimeCaps.isNode) {
// Node.js-specific path (e.g., filesystem access)
}runtimeCaps is a snapshot taken at import time. Fields: isNode, isBun, isWorkerLike, isBrowserLike, hasProcess, hasBuffer, hasTextEncoder, hasPerformanceNow. All booleans, never throw.
In Workers, only these storage providers are allowed:
| Provider | Notes |
|---|---|
in-memory | Default — data lost on cold start, no persistence |
cloudflare-kv | KV namespace binding — eventually consistent |
cloudflare-r2 | R2 bucket binding — object storage |
cloudflare-d1 | D1 database binding — SQLite-compatible |
filesystem, supabase, and unknown provider types are not on the whitelist:
filesystem and unknown types throw ConfigurationError in serverless environments.supabase does not silently fall back. The serverless provider whitelist check fires immediately at the top of createStorageProvider() — Supabase credentials are never validated. Worker startup fails with ConfigurationError because Supabase is not on the serverless whitelist. Do not set STORAGE_PROVIDER_TYPE=supabase in a Worker.Set STORAGE_PROVIDER_TYPE to one of the four whitelisted values to avoid unexpected behavior.
wrangler.toml requirementscompatibility_flags = ["nodejs_compat"]
compatibility_date = "2025-09-01" # must be >= 2025-09-01
# Built-in storage providers require these exact binding names:
[[kv_namespaces]]
binding = "KV_NAMESPACE" # required for cloudflare-kv storage
id = "..."
[[r2_buckets]]
binding = "R2_BUCKET" # required for cloudflare-r2 storage
bucket_name = "..."
[[d1_databases]]
binding = "DB" # required for cloudflare-d1 storage
database_id = "..."nodejs_compat is required for Node.js API shims (e.g., process.env, Buffer, crypto). The minimum compatibility_date activates the required shim set.
Binding names for core storage are hardcoded — the storage factory looks for KV_NAMESPACE, R2_BUCKET, and DB on globalThis. Using different binding names will cause a ConfigurationError. For custom (non-storage) bindings, use extraObjectBindings to map arbitrary binding names to globalThis keys.
Bundling requires a @duckdb/node-api alias. Wrangler's esbuild step follows the framework's lazy import('@duckdb/node-api') (the DataCanvas DuckDB provider) even though that path never executes on Workers, and fails on DuckDB's native platform bindings (Could not resolve "@duckdb/node-bindings-*/duckdb.node"). Alias the module to a local stub:
[alias]
"@duckdb/node-api" = "./duckdb-stub.ts"// duckdb-stub.ts — rejects the lazy import if a misconfigured Worker ever reaches it
throw new Error('@duckdb/node-api is not available in Cloudflare Workers.');
export {};instructions resolver runs after env injection. When instructions is a function, it runs inside initializeApp(env) — after injectEnvVars() — so env-derived text reaches the model without fighting the Workers module-load lifecycle:
export default createWorkerHandler({
tools: [echoTool],
instructions: (env) =>
`Region: ${env.ENVIRONMENT ?? 'production'}.` +
(env.MAINTENANCE_MODE ? ' Read-only mode — writes disabled.' : ''),
});Plain strings work the same as on createApp. Type extends Omit<CreateAppOptions, 'instructions'>, so this is the only option whose shape differs between Node and Worker entry points.
Lazy env parsing is mandatory. Cloudflare injects env bindings at request time via injectEnvVars(), after all static module imports complete. Never parse process.env at module top-level in Workers:
// WRONG — parsed before env is injected
const apiKey = process.env.MY_API_KEY; // undefined in Workers
// CORRECT — lazy parse inside a function or getter
export function getServerConfig() {
return ServerConfigSchema.parse({ apiKey: process.env.MY_API_KEY });
}in-memory storage is volatile. Data stored with the in-memory provider is lost between cold starts and is not shared across Worker instances. Use cloudflare-kv, cloudflare-r2, or cloudflare-d1 for any state that must persist or be shared.
Multi-round-trip retries land on any isolate. Each 2026-07-28 request builds its own McpServer, and the retry after an input_required result can be routed to a different isolate. Set MCP_REQUEST_STATE_KEY (≥ 32 bytes) as a Worker secret — it is a core binding, injected like the rest — so every isolate seals and verifies requestState with the same key, and keep a consent gate's record (api-context § Consent gates) in cloudflare-d1. in-memory loses it to the next isolate, so the retry asks again. Never cloudflare-kv: it is eventually consistent, so a retry served elsewhere may not see the record yet, and a deletion may not yet stop an immediate replay — it widens the window concurrent retries already have, since redeeming is not atomic on any provider until ctx.state gains a take (#593).
Node-only utilities throw in Workers. scheduler (node-cron), sanitizePath (fs-based), and filesystem storage provider all throw ConfigurationError when called from a Worker. Guard with runtimeCaps.isNode or avoid entirely.
DataCanvas is unavailable in Workers. DuckDB has no V8-isolate build, so core.canvas is always undefined on Workers. Setting CANVAS_PROVIDER_TYPE=duckdb (the only non-default value) in wrangler.toml triggers a fail-closed ConfigurationError at init time:
DuckDB canvas requires Node.js or Bun. Set CANVAS_PROVIDER_TYPE=none or omit it for Cloudflare Workers deployment.
Leave the env unset (or set to none) for Worker deployments. Tools that conditionally use canvas should check the module-level accessor (if (!getCanvas()) { ... }) and surface a clear "feature unavailable on this deployment" message. See api-canvas for the full DataCanvas reference and setup wiring pattern.
The default notification bus is per-isolate. core.notify and the modern era's subscriptions/listen streams share a change-event bus that defaults to in-process — which on Workers means one bus per isolate, so a background emission reaches only the listeners that happen to live in the isolate that produced it. Handler-time ctx.notify* is unaffected (the listen stream and the handler are the same request). For fan-out that must cross isolates, supply a bus of your own, backed by a Durable Object or another shared channel:
createWorkerHandler({ tools, eventBus: myDurableObjectBackedBus });The interface is the SDK's ServerEventBus — publish(event) and subscribe(listener). See api-context's notification section for what publishes onto it.
bun run test:worker runs the worker suite under tests/config/vitest.worker.ts (using @cloudflare/vitest-pool-workers + miniflare). Each test file gets its own fresh V8 isolate — module scope (including createWorkerHandler's appPromise singleton) is reset between files.
Declare all storage bindings used in the suite:
cloudflareTest({
main: './tests/fixtures/worker-runtime.fixture.ts',
miniflare: {
bindings: { STORAGE_PROVIDER_TYPE: 'cloudflare-kv', ... },
kvNamespaces: ['KV_NAMESPACE', 'CUSTOM_KV'],
r2Buckets: ['R2_BUCKET'],
d1Databases: ['DB'],
},
})Binding names must match the hardcoded names in storageFactory.ts (KV_NAMESPACE, R2_BUCKET, DB).
bindings.STORAGE_PROVIDER_TYPE is a global default. Per-provider test files override it by passing a modified env to worker.fetch():
import { env } from 'cloudflare:workers';
// Fresh isolate per file — appPromise starts null.
// First fetch initialises the singleton with the overridden provider type.
const r2Env = { ...env, STORAGE_PROVIDER_TYPE: 'cloudflare-r2' };
await worker.fetch(request, r2Env, ctx);Use reset() from cloudflare:test in afterEach to clear binding state between tests. For D1, re-apply migrations immediately after each reset() (reset wipes the schema):
import { applyD1Migrations, reset } from 'cloudflare:test';
afterEach(async () => {
await reset();
await applyD1Migrations(env.DB, [{ name: '0001_schema', queries: [CREATE_TABLE_SQL] }]);
});The cloudflare-d1 provider requires the kv_store table before any operations. Apply it in beforeAll via applyD1Migrations:
const KV_STORE_MIGRATION = `
CREATE TABLE IF NOT EXISTS kv_store (
tenant_id TEXT NOT NULL,
key TEXT NOT NULL,
value TEXT NOT NULL,
expires_at INTEGER,
PRIMARY KEY (tenant_id, key)
)`;
beforeAll(async () => {
await applyD1Migrations(env.DB, [
{ name: '0001_create_kv_store', queries: [KV_STORE_MIGRATION] },
]);
sessionId = await openSession(d1Env);
});The R2 provider fetches limit + 1 objects to detect further pages. Miniflare caps R2 MaxKeys at 1000, so the default limit=1000 → request 1001 → error. Pass limit: 100 (or any value ≤ 999) to ctx.state.list() in test fixtures to stay under the cap:
const result = await ctx.state.list(prefix, { limit: 100 });Expose storage operations as MCP tools in the fixture to test them through the real HTTP surface:
const storageSetTool = tool('storage_set', {
input: z.object({ key: z.string().describe('...'), value: z.string().describe('...') }),
output: z.object({ ok: z.boolean().describe('Always true on success') }),
async handler(input, ctx) {
await ctx.state.set(input.key, input.value);
return { ok: true };
},
format: (r) => [{ type: 'text', text: `ok=${r.ok}` }],
});Call via tools/call over MCP JSON-RPC and assert on structuredContent. See tests/worker/storage-r2.worker.test.ts and tests/worker/storage-d1.worker.test.ts for the full pattern.
© cyanheads, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in framework-skills/api-workers of cyanheads/pubmed-mcp-server.
Open the folder on GitHubat commit 5a417fb
API Workers next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| API Workers this skillcyanheads/pubmed-mcp-server | 155 | — | ~3.9k | Automated safety check: Pass | Apache-2.0 | |
| Agents SDKcloudflare/skills | 3k | 2 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Build MCP Serveranthropics/claude-plugins-official | 38k | 1 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Building MCP Server On CloudflareCommandCodeAI/agent-skills | 132 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Agents SDKhodgef/apiker | 127 | 3 repos | ~3k | Automated safety check: Pass | MIT | |
| Cloudflare Agentssecondsky/claude-skills | 227 | 1 repos | ~691 | Automated safety check: Pass | MIT |
cloudflare/skills
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
anthropics/claude-plugins-official
Entry point for building an MCP server: asks about the use case, picks a deployment model and tool-design pattern, then hands off to more specialized skills.
CommandCodeAI/agent-skills
Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers with tools, OAuth authentication, and production deployment.
hodgef/apiker
Build AI agents on Cloudflare Workers using the Agents SDK. An agent skill from hodgef/apiker.
secondsky/claude-skills
Build AI agents on Cloudflare Workers with MCP integration, tool use, and LLM providers.
AgentTeam-TaichuAI/ScienceClaw
Read and search GitHub repository documentation via gitmcp.io MCP service.
cyanheads/pubmed-mcp-server
Scaffold an MCP App tool + UI resource pair. An agent skill from cyanheads/pubmed-mcp-server.
cyanheads/pubmed-mcp-server
Scaffold a new MCP prompt template. An agent skill from cyanheads/pubmed-mcp-server.
cyanheads/pubmed-mcp-server
Scaffold a new MCP resource definition. An agent skill from cyanheads/pubmed-mcp-server.
cyanheads/pubmed-mcp-server
Scaffold a new service integration. An agent skill from cyanheads/pubmed-mcp-server.
cyanheads/pubmed-mcp-server
Scaffold a test file for an existing tool, resource, or service.
cyanheads/pubmed-mcp-server
Authentication, authorization, and multi-tenancy patterns for @cyanheads/mcp-ts-core.
Works with
Cloudflare Workers deployment using createWorkerHandler from @cyanheads/mcp-ts-core/worker. API Workers is an agent skill from cyanheads/pubmed-mcp-server. Cloudflare Workers deployment using createWorkerHandler from @cyanheads/mcp-ts-core/worker.
API Workers fits situations like: tasks that involve MCP servers.
Run `npx skills add cyanheads/pubmed-mcp-server --skill api-workers -a claude-code`. Or copy the skill folder (framework-skills/api-workers in cyanheads/pubmed-mcp-server) into .claude/skills/api-workers in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cyanheads/pubmed-mcp-server --skill api-workers -a codex`. Or copy the skill folder (framework-skills/api-workers in cyanheads/pubmed-mcp-server) into .agents/skills/api-workers in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cyanheads/pubmed-mcp-server --skill api-workers -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-workers, .gemini/skills/api-workers, .github/skills/api-workers and .opencode/skills/api-workers in your project.
Going by SKILL.md and its folder, API Workers needs the command-line tools its instructions call (duckdb and bun) and credentials named MCP_REQUEST_STATE_KEY. Our summary lists: Node.js; A credential in MY_API_KEY; A credential in MCP_REQUEST_STATE_KEY.
SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
API Workers is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.9k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with API Workers: Agents SDK (cloudflare/skills, 3k stars), Build MCP Server (anthropics/claude-plugins-official, 38k stars), Building MCP Server On Cloudflare (CommandCodeAI/agent-skills, 132 stars) and Agents SDK (hodgef/apiker, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cyanheads (a GitHub user) maintains it in cyanheads/pubmed-mcp-server, which has 155 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 4, 2026.
Source: cyanheads/pubmed-mcp-server on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.