d-khomenko/clipboard-history-mcp
Type-aware, secret-safe clipboard history for Claude via MCP. Rust binary, macOS + Linux. Ships as .mcpb.
c0a8177abe91clipboard-history-mcp0.6.0-alpha.0 in Cargo.tomlio.github.d-khomenko/clipboard-history-mcpPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 16 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- HIGH22 production dependencies have known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
anyhow1.0.103 or later,cookie0.18.3 or later,crossbeam-epoch0.9.20 or later,event-listener5.4.2 or later and 14 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 15 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
copy_item, daemon_status, get_itemcopy_item, get_itemNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files3 tools · copy_item, daemon_status, get_item
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (15: 15 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
clear_historytool Clear history. scope: 'all' | 'older_than_days:N' | 'kind:K'
Clear history. scope: 'all' | 'older_than_days:N' | 'kind:K'
copy_itemtool Restore a clip to the system clipboard. Refuses secrets — use unlock_secret first. Image and file clips are restored via NSPasteboard with the correct UTI on maFilesEnv varsoutside text
Restore a clip to the system clipboard. Refuses secrets — use unlock_secret first. Image and file clips are restored via NSPasteboard with the correct UTI on macOS.
daemon_statustool Daemon status (running, pid).Filesoutside text
Daemon status (running, pid).
delete_itemtool Hard-delete a clip (and its secrets row if applicable).
Hard-delete a clip (and its secrets row if applicable).
get_codetool Return code clips, optionally filtered by language.
Return code clips, optionally filtered by language.
get_itemtool Fetch one clipboard entry by id. For secrets returns metadata only. Pass with_blob=true to inline an image/file blob as a base64 data URL.FilesEnv varsoutside text
Fetch one clipboard entry by id. For secrets returns metadata only. Pass with_blob=true to inline an image/file blob as a base64 data URL.
get_jsontool Return JSON clips with parsed structure preview.
Return JSON clips with parsed structure preview.
get_secrets_indextool List secret clip metadata only — no values.
List secret clip metadata only — no values.
get_statstool Counts by kind, oldest/newest, db size.
Counts by kind, oldest/newest, db size.
get_urlstool Return URL clips, deduped by host.
Return URL clips, deduped by host.
list_historytool List recent clipboard entries, newest first. Secret values are never returned — only metadata.
List recent clipboard entries, newest first. Secret values are never returned — only metadata.
pin_itemtool Pin or unpin a clip.
Pin or unpin a clip.
search_historytool Full-text search clipboard history (FTS5 BM25).
Full-text search clipboard history (FTS5 BM25).
tag_itemtool Add or remove a tag on a clip.
Add or remove a tag on a clip.
unlock_secrettool Decrypt and return a stored secret. Reason argument is mandatory and audited. Touch ID gated.
Decrypt and return a stored secret. Reason argument is mandatory and audited. Touch ID gated.
Text the model reads (15)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
list_history tool
List recent clipboard entries, newest first. Secret values are never returned — only metadata.
get_item tool
Fetch one clipboard entry by id. For secrets returns metadata only. Pass with_blob=true to inline an image/file blob as a base64 data URL.
search_history tool
Full-text search clipboard history (FTS5 BM25).
get_urls tool
Return URL clips, deduped by host.
get_code tool
Return code clips, optionally filtered by language.
get_json tool
Return JSON clips with parsed structure preview.
get_secrets_index tool
List secret clip metadata only — no values.
unlock_secret tool
Decrypt and return a stored secret. Reason argument is mandatory and audited. Touch ID gated.
copy_item tool
Restore a clip to the system clipboard. Refuses secrets — use unlock_secret first. Image and file clips are restored via NSPasteboard with the correct UTI on macOS.
pin_item tool
Pin or unpin a clip.
tag_item tool
Add or remove a tag on a clip.
delete_item tool
Hard-delete a clip (and its secrets row if applicable).
clear_history tool
Clear history. scope: 'all' | 'older_than_days:N' | 'kind:K'
get_stats tool
Counts by kind, oldest/newest, db size.
daemon_status tool
Daemon status (running, pid).
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 15 capabilities; 15 more call code the scanner could not follow, where it may happen
- Tools that touch files3 of 15 capabilities touch files; 12 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 15 capabilities; 15 more call code the scanner could not follow, where it may happen
Where the code is: 15 handlers in 1 file at commit c0a8177abe91
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: Cargo.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies HIGH22 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionrmcp 1.7
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 15 capabilities; 15 more call code the scanner could not follow, where it may happen
- Environment variables2 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (22 in production)
rmcpcrates.io 1.7.0 HIGH 5 advisories 2.0.02.1.03.9.0
- HIGHGHSA-9pj6-vhgr-3mwh CVE-2026-63128RMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-service
- HIGHGHSA-33f5-2c5q-wgwj CVE-2026-63127RMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discovery
- MEDIUMGHSA-9g45-5xwm-f3wc CVE-2026-64684RMCP: Custom HTTP headers leak to cross-origin redirect targets
- MEDIUMRUSTSEC-2026-0462 GHSA-c9f9-cp8h-jcj5Unbounded response body buffering in Streamable HTTP clients
- MEDIUMGHSA-c9xm-49cp-xcr9rmcp OAuth client fetches server-controlled resource_metadata URLs
zstd-safecrates.io 7.2.4 MEDIUM 12 advisories 7.4.08.2.0
- MEDIUMRUSTSEC-2026-0402Heap buffer overflow in `CCtx::try_clone` on a multithreaded context
- MEDIUMRUSTSEC-2026-0403Uninitialized memory exposed when streaming decompression of a legacy frame fails
- MEDIUMRUSTSEC-2026-0398`Seekable::decompress` sets a `Vec` length beyond its capacity for offsets past the end
- MEDIUMRUSTSEC-2026-0396`Seekable` reads a NULL or out-of-bounds seek table
- MEDIUMRUSTSEC-2026-0400Use-after-free of a dictionary after a one-shot call on a context with an open stream
- MEDIUMRUSTSEC-2026-0405Out-of-bounds read with an out-of-range `InBuffer::pos`
- MEDIUMRUSTSEC-2026-0399Use-after-free through `init_using_cdict` and `init_using_ddict`
- MEDIUMRUSTSEC-2026-0404Double free in `DCtx::try_clone`
- MEDIUMRUSTSEC-2026-0395Use-after-free with `CParameter::StableInBuffer`
- MEDIUMRUSTSEC-2026-0401Out-of-bounds read in `train_from_buffer` when sample sizes overflow
- MEDIUMRUSTSEC-2026-0397`OutBuffer::around_pos` exposes uninitialized memory
- MEDIUMRUSTSEC-2026-0406Use-after-free when changing a multithreaded context with an unfinished frame
rustlscrates.io 0.23.40 MEDIUM 8 advisories 0.23.450.23.460.24.0-dev.2
- MEDIUMGHSA-c8m5-c952-6cm4 CVE-2026-123609 RUSTSEC-2026-0346Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs
- MEDIUMRUSTSEC-2026-0349 CVE-2026-123611 GHSA-w44r-93j7-qv28Unauthenticated ServerHello can downgrade later connections to classical key exchange
- MEDIUMRUSTSEC-2026-0348 CVE-2026-123610 GHSA-h2v8-394m-p7vvBrotli certificate decompression can allocate up to 1 GiB before authentication
- MEDIUMRUSTSEC-2026-0285 CVE-2026-123613 GHSA-2mjx-qc3c-rqvcTLS 1.3 handshake messages incorrectly accepted across encryption level boundaries
- MEDIUMRUSTSEC-2026-0346 CVE-2026-123609 GHSA-c8m5-c952-6cm4`Debug` impls for client session values expose TLS secrets
- MEDIUMGHSA-2mjx-qc3c-rqvc CVE-2026-123613 RUSTSEC-2026-0285Rustls: TLS 1.3 handshake messages incorrectly accepted across encryption level boundaries
- LOWGHSA-w44r-93j7-qv28 CVE-2026-123611 RUSTSEC-2026-0349rustls: An unauthenticated ServerHello poisons the per-name key-exchange record, so later ClientHellos carry only a classical X25519 share
- LOWGHSA-h2v8-394m-p7vv CVE-2026-123610 RUSTSEC-2026-0348Rustls: Brotli certificate decompression can allocate an attacker-controlled amount of memory up to 1 GiB before authentication.
quick-xmlcrates.io 0.30.0 MEDIUM 2 advisories 0.41.0
- MEDIUMRUSTSEC-2026-0194Quadratic run time when checking a start tag for duplicate attribute names
- MEDIUMRUSTSEC-2026-0195Unbounded namespace-declaration allocation in `NsReader` enables memory-exhaustion denial of service
anyhowcrates.io 1.0.102 MEDIUM 1 advisory 1.0.103
- MEDIUMRUSTSEC-2026-0190Unsoundness in `Error::downcast_mut()`
chronocrates.io 0.4.44 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0543chrono is unmaintained
cookiecrates.io 0.18.1 MEDIUM 1 advisory 0.12.00.18.3
- MEDIUMRUSTSEC-2026-0594 GHSA-8wcq-xq25-7fhmPrivate cookie nonces can repeat in processes that fork
crossbeam-epochcrates.io 0.9.18 MEDIUM 1 advisory 0.9.20
- MEDIUMRUSTSEC-2026-0204Invalid pointer dereference in `fmt::Pointer` impl for `Atomic` and `Shared` when the underlying pointer is invalid
event-listenercrates.io 5.4.1 MEDIUM 1 advisory 5.4.2
- MEDIUMRUSTSEC-2026-0221`event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`
libsqlite3-syscrates.io 0.37.0 MEDIUM 1 advisory 0.39.0
- MEDIUMRUSTSEC-2026-0459 BIT-sqlite-2026-119375 CVE-2026-119375 GHSA-72w2-rjgg-q729 RUSTSEC-2026-0502`libsqlite3-sys` via C SQLite CVE-2026-119375
lrucrates.io 0.16.4 MEDIUM 1 advisory 0.18.2
- MEDIUMRUSTSEC-2026-0253Potential use-after-free due to lack of panic safety in `LruCache::pop()`
memmap2crates.io 0.9.10 MEDIUM 1 advisory 0.9.11
- MEDIUMRUSTSEC-2026-0186Unchecked pointer offset in crate `memmap2`
rustixcrates.io 1.1.4 MEDIUM 1 advisory 1.1.6
- MEDIUMRUSTSEC-2026-0486 GHSA-jh2m-fhpj-3vr7xattr functions mark unwritten bytes as initialized when given a zero-length buffer
rustls-webpkicrates.io 0.103.13 MEDIUM 1 advisory 0.103.160.104.0-alpha.8
- MEDIUMRUSTSEC-2026-0382 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0381 RUSTSEC-2026-0383Certificate verification may accept distrusted intermediates
tokiocrates.io 1.52.3 MEDIUM 1 advisory 1.51.61.53.3
- MEDIUMRUSTSEC-2026-0386`AsyncFd::new` and related constructors violate I/O safety
urlcrates.io 2.5.8 MEDIUM 1 advisory 2.5.9
- MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs
webpki-rootscrates.io 1.0.7 MEDIUM 1 advisory 0.26.111.0.10
- MEDIUMRUSTSEC-2026-0381 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0382 RUSTSEC-2026-0383Bundled root certificates allow trust in distrusted emSign intermediates
zbus_namescrates.io 4.3.2 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0371`zbus_names` is unmaintained
zstdcrates.io 0.13.3 MEDIUM 1 advisory 0.13.40.14.3
- MEDIUMRUSTSEC-2026-0391Data from an abandoned stream leaks into the next stream on a reused context
zstd-syscrates.io 2.0.16+zstd.1.5.7 MEDIUM 1 advisory 2.1.2
- MEDIUMRUSTSEC-2026-0410WebAssembly allocator shim corrupts memory on allocation failure
zvariantcrates.io 5.11.0 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0370`zvariant` is unmaintained
zvariant_derivecrates.io 5.11.0 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0372`zvariant_derive` is unmaintained
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | rmcp 1.7 |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-08-01 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | io.github.d-khomenko/clipboard-history-mcp |
|---|---|
| Listed in | 4 catalogs (github_search, glama, mcp_registry, mcp_toplist) |
| License | MIT |
| Created | 2026-05-05 |
| Topics | anthropic claude clipboard macos mcp rust |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.