Skip to main content

Overview

The ctxprotocol MCP server exposes six tools (context_query, context_query_start, context_query_poll, context_query_status, context_discover, context_execute). A short Agent Skill teaches your coding agent (Cursor, Claude Code, or any harness that supports Agent Skills) how to choose between them, how to poll long-running librarian jobs, when to ask for evidence_only vs answer_with_evidence, how to turn a good query into a recurring data routine, how to control spend, and how to handle capability misses.
This is optional but recommended. Without it, a host model still works, but it has to infer the right tool, response shape, and spend pattern on its own.
Use the ctxprotocol skill for normal live data questions. Add a second ctxprotocol-routine-builder skill when you want agents to guide users from a good Auto Query into a saved routine with toolsUsed, evidence_only, dataUrl, pinned toolIds, and optional Execute.

Install

1

Connect the MCP server

Follow MCP Server to add https://www.ctxprotocol.com/api/mcp with your sk_live_... key.
2

Add the skill

Save the skill below as a SKILL.md file:
  • Cursor (project): .cursor/skills/ctxprotocol/SKILL.md
  • Cursor (personal): ~/.cursor/skills/ctxprotocol/SKILL.md
  • Claude Code: .claude/skills/ctxprotocol/SKILL.md
Any harness that supports Agent Skills can use the same file. If your harness has no skill system, paste the body into your project rules or system prompt instead.

Optional routine-builder skill

For scheduled reports, recurring analyst jobs, and “make this query repeatable” workflows, save a second skill as ctxprotocol-routine-builder/SKILL.md. TypeScript users can pair it with the runnable SDK example at examples/client/src/agent-routine.ts in the examples/client package.

The skill

Copy this verbatim into SKILL.md: