@unclick/mcp-server
v0.3.133
Published
UnClick gives MCP-compatible agents 668 customer-visible apps and 1591 actions, plus persistent cross-session memory.
Downloads
1,480
Maintainers
Readme
UnClick MCP server
MCP server for the UnClick tool marketplace.
One install gives any MCP-compatible AI agent (Claude, Cursor, etc.) access to:
- 679 generated apps with 1622 actions in the package inventory; the public catalogue currently lists 668 apps and 1591 actions after verified failures are withheld for retest
- Persistent cross-session memory - the agent remembers you across sessions, zero config
Quick Start
Claude Desktop / Claude Code
Add to your MCP config (Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json, or run claude mcp add in Claude Code):
{
"mcpServers": {
"unclick": {
"command": "npx",
"args": ["-y", "@unclick/mcp-server"],
"env": {
"UNCLICK_API_KEY": "your_api_key_here"
}
}
}
}Get your API key at unclick.world.
Install codes. The
UNCLICK_API_KEYcan also be a short-lived install code likeunclick-ember-falcon-2847(good for 24 hours). On first boot the server exchanges it for the real key and caches it at~/.unclick/credentials.json. This means install snippets shared in chat look like project slugs rather than credentials.
Cursor
Same config snippet as above. Cursor uses the same MCP format.
Local / Development
UNCLICK_API_KEY=unck_... npx -y @unclick/mcp-serverMemory (built in, zero config)
Memory works out of the box. No setup needed. Data is stored as JSON files in ~/.unclick/memory/.
Want cross-machine sync? Add Supabase env vars to your config:
"env": {
"UNCLICK_API_KEY": "your_api_key_here",
"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_SERVICE_ROLE_KEY": "your_service_role_key"
}Memory tools exposed at session level: load_memory, save_session, save_fact, search_memory, save_identity. Full 17 operations available via unclick_call with endpoint_id: "memory.*". The prior names (get_startup_context, write_session_summary, add_fact, set_business_context) still work as backward-compatible aliases.
AI Seat Heartbeats
Scheduled AI Seats can call heartbeat_protocol with no arguments to fetch the canonical UnClick heartbeat playbook. The response is versioned and includes the current procedure, explicit Orchestrator continuity write authorization, alert format, throttle rules, and watch_state_key, so seat prompts can shrink to: "Call heartbeat_protocol on UnClick. Follow what it returns."
Tethered AI Seats should also treat save_conversation_turn as the receipt-first path for Orchestrator continuity: save the accepted turn, keep the returned receipt id, and fail loud with UNTETHERED plus any partial receipts when the save path is missing.
If no UnClick MCP or channel connector exists but an UnClick API key is already available in the environment, the authorized fallback write path is POST https://unclick.world/api/memory-admin?action=admin_conversation_turn_ingest with a bearer token and body { session_id, role, content, source_app, client_session_id }. Do not post to /admin/orchestrator; that is the read UI.
After saving an accepted external turn, tethered seats should call read_orchestrator_context before deciding what the user meant. The safe order is Log -> Read -> Decide -> Reply -> Log reply, so a test cue or proof phrase is not mistaken for a real operator request.
Worker Sanity Gate
Workers can call commonsensepass_protocol with no arguments to fetch the canonical CommonSensePass playbook, commonsensepass_rules to inspect the active R1-R6 catalog, and commonsensepass_check to run a verdict directly from MCP. The response is versioned and tells workers when to run the verdict-only gate, what evidence to gather, how to interpret PASS/BLOCKER/HOLD/SUPPRESS/ROUTE, and how to write compact receipts. This lets worker prompts shrink to: "Call commonsensepass_protocol on UnClick, then run commonsensepass_check before claiming healthy, no_work, done, merge_ready, pass, quiet, duplicate_wake, or route."
Configuration
| Environment Variable | Default | Description |
|---|---|---|
| UNCLICK_API_KEY | (required) | Your UnClick API key |
| UNCLICK_BASE_URL | https://api.unclick.world | Override API base URL (for self-hosted) |
| UNSTACK_URL | (unset) | The UnStack engine's MCP door, e.g. https://unstack.unclick.world/mcp, or http://127.0.0.1:3479/mcp for an engine on the same box. Unset means the whole UnStack connector is off. |
| UNSTACK_MCP_TOKEN | (unset) | Bearer for that engine. This is the name to use - see below. |
| UNSTACK_TOKEN | (unset) | Older fallback name for the same bearer, read only when UNSTACK_MCP_TOKEN is unset. |
| UNSTACK_LIST_TIMEOUT_MS | 5000 | Deadline for the engine's tools/list. |
| UNSTACK_CALL_TIMEOUT_MS | 30000 | Deadline for one forwarded unstack_* call. |
UnStack: one door, two engines
These names are generated, not typed. The prefix
unstack_, the umbrella tool name, the headerx-unstack-principaland theUNSTACK_variable prefix above all derive from one entry in the site'ssrc/config/brand.json(owner rule 2026-09-07: names are variables), copied into this package bynpm run brand:sync. If the product is ever renamed, every name in this table moves with it and the old spelling keeps working:engineEnv()reads the new prefix first and falls back to every alias prefix, a call under an old tool prefix is mapped onto the current one, and the identity header goes out under both. Seedocs/brand-rename.mdin the site repository.
Set UNSTACK_URL and this server also forwards the UnStack engine's unstack_*
tools, carrying the person's UnClick identity in the x-unstack-principal
header. Off by default: with UNSTACK_URL unset nothing about the tool list,
the instructions or any tool call changes.
The bearer's name is UNSTACK_MCP_TOKEN. That is the variable the engine
itself reads and the variable a tunnel in front of an off-box engine is
configured from, so one name spans engine, connector and tunnel and there is
nothing to keep in sync. UNSTACK_TOKEN is still read as a fallback so a box
set up before this rule keeps working rather than silently sending no bearer;
new deployments should set UNSTACK_MCP_TOKEN only. The token is env-only - it
is never read from a tool argument, never logged and never returned.
What appears in tools/list. Machine seats (uc_/agt_ API keys, npm and
local servers) get the engine's whole list under its own names, descriptions and
schemas, so a tool added on the engine shows up here with no release. Human
doors get the lean seven-essentials surface plus one umbrella entry,
unstack: call it with no arguments and it returns the full unstack_* list,
and every one of those names stays callable whether or not it is advertised.
The routing rule, quoted verbatim from the engine's own contract and appended to this server's instructions whenever a door is configured:
New business apps go through UnStack; changes to UnClick itself go through the pull-request lane.
Tools Exposed
Discovery
| Tool | Description |
|---|---|
| unclick_search | Search for tools by keyword. "I need to resize an image" returns the image tool with endpoints and schemas. |
unclick_browse, unclick_tool_info, and unclick_call remain callable for backward compatibility but are hidden from the advertised tool list so end users are not shown internal machinery.
Discovery flow for an agent:
unclick_searchto find relevant tools- Inspect the returned endpoint schemas
- Invoke the matching endpoint via the raw call interface
Direct Tools (Zero Friction)
The most-used tools are exposed as first-class MCP tools for immediate use without discovery:
| Tool | What it does |
|---|---|
| unclick_shorten_url | Shorten a URL |
| unclick_generate_qr | Generate a QR code (PNG/SVG) |
| unclick_hash | Hash text with MD5/SHA1/SHA256/SHA512 |
| unclick_transform_text | Change text case (camel, snake, kebab, title, etc.) |
| unclick_validate_email | Validate an email address |
| unclick_validate_url | Validate a URL (+ optional reachability check) |
| unclick_resize_image | Resize a base64-encoded image |
| unclick_parse_csv | Parse CSV to JSON |
| unclick_json_format | Pretty-print JSON |
| unclick_encode | Encode/decode base64, URL, HTML, or hex |
| unclick_generate_uuid | Generate UUIDs |
| unclick_random_password | Generate a secure password |
| unclick_cron_parse | Parse a cron expression + show next occurrences |
| unclick_ip_parse | Parse an IP address |
| unclick_color_convert | Convert color between hex/RGB/HSL/HSV |
| unclick_regex_test | Test a regex and get all matches |
| unclick_timestamp_convert | Convert timestamps between formats |
| unclick_diff_text | Line-by-line diff of two strings |
| unclick_kv_set | Store a value in the key-value store |
| unclick_kv_get | Retrieve a value from the key-value store |
Full Tool Catalog
The marketplace currently includes 23 tool groups spanning:
- Text: transform (case, slug, count), encode/decode (base64, URL, HTML, hex), hash/HMAC, regex, markdown, diff
- Data: JSON utilities, CSV processing, input validation (email, URL, phone, credit card, IP, color)
- Media: image processing (resize, convert, crop, rotate, compress, grayscale), QR code generation, color utilities
- Time: timestamp conversion, cron parsing/building
- Network: URL shortening, IP utilities (parse, subnet, CIDR)
- Generation: UUID v4, random (numbers, strings, passwords, picks, shuffles, colors)
- Storage: key-value store (with TTL), webhook bins
All tools are accessible via unclick_call with the appropriate endpoint_id.
Example Usage
Agent discovers and uses a tool:
Agent: I need to hash a password before storing it.
1. unclick_search({ query: "hash password" })
→ Returns: hash tool (slug: hash, endpoints: hash.compute, hash.verify, hash.hmac)
2. unclick_call({ endpoint_id: "hash.compute", params: { text: "my-secret", algorithm: "sha256" } })
→ { algorithm: "sha256", hash: "abc123...", length: 64 }Direct tool usage:
Agent: unclick_generate_qr({ text: "https://example.com", format: "png", size: 400 })
→ { binary: true, content_type: "image/png", data: "<base64>" }Development
# Run locally with tsx (no build step)
UNCLICK_API_KEY=unck_... npm run dev
# Build
npm run build
# Run built output
npm startMCP Registry
This server is published to npm as @unclick/mcp-server and can be added to MCP clients that support npx-based servers.
License
MIT (see LICENSE). This client package is intentionally permissive so any agent or company can install it without friction. The wider UnClick platform it connects to is AGPL-3.0; see LICENSING.md in the repository.
