localsend-mcp

localsend-mcp is a skill for Codex from plurigrid/asi. It costs 27 tokens per session (1,212 once invoked), scanned A, original, MIT.

A design guide for an MCP server that transfers files between devices using LocalSend, a peer-to-peer file-sharing tool. It covers discovering devices through NATS or Tailscale and moving files through LocalSend or a command-line client.

In plain words
What is it for?
Use it to advertise devices, find peers, negotiate a transfer method, send files, and tune transfer throughput in automated workflows.
Why use it?
It addresses the gap between LocalSend's usual graphical interface and headless agent automation. It also helps when local network discovery is blocked across subnets.

Skill for Codex

Written for Codex: installed under .codex/.

Good fit Use it to advertise devices, find peers, negotiate a transfer method, send files, and tune transfer throughput in automated workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plurigrid/asi/localsend-mcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add plurigrid/asi --skill localsend-mcp
Clone the repo
git clone --depth 1 https://github.com/plurigrid/asi

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for localsend-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/plurigrid/asi/localsend-mcp/github.svg)](https://agentmods.dev/skills/plurigrid/asi/localsend-mcp)
Your own site
<a href="https://agentmods.dev/skills/plurigrid/asi/localsend-mcp"><img src="https://agentmods.dev/badge/skills/plurigrid/asi/localsend-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for localsend-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/plurigrid/asi/localsend-mcp"><img src="https://agentmods.dev/badge/skills/plurigrid/asi/localsend-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,212 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01212
Opus 5.5 $0.00011 $0.00485
Sonnet 5.5 $0.00005 $0.00242
Haiku 4.5 $0.00003 $0.00121

Measured 3mo ago against content hash e7303d138727, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

localsend-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ies/music-topos/.codex/skills/localsend-mcp/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LocalSend MCP Skill

Use This Skill When

  • The user mentions LocalSend, AirDrop-like transfer, or peer-to-peer file sharing.
  • The task asks for an MCP server or tool set around LocalSend.
  • Discovery/advertising needs to use NATS or Tailscale before transferring data.

Reality Check (LocalSend in This Repo)

  • localsend (Flox package) launches a GUI and does not exit for --help.
  • Discovery uses UDP multicast 224.0.0.167:53317 (LAN only).
  • Transfer runs HTTPS on port 53317; direct IPs are required across subnets.
  • For headless automation, prefer a CLI client (e.g., jocalsend) or a small protocol wrapper.

Architecture: Advertise -> Negotiate -> Transfer -> Tune

  1. Advertise capabilities over NATS (or Tailscale if LAN multicast is blocked).
  2. Negotiate transport and parameters (LAN multicast vs direct IP).
  3. Transfer via LocalSend protocol/CLI.
  4. Tune throughput until spectral gap <= 0.25 (>= 75% of target throughput).

MCP Tool Set (Draft)

Discovery / Advertising

  • localsend_advertise:
    • Inputs: agent_id, device_name, localsend_port, tailscale_ip?, capabilities, spectral_gap_target
  • localsend_list_peers:
    • Inputs: source = localsend_multicast | nats | tailscale

Session Negotiation

  • localsend_negotiate:
    • Inputs: peer_id, preferred_transport, max_chunk_bytes, max_parallel
    • Output: session_id, transport, target_ip, port

Transfer

  • localsend_send:
    • Inputs: session_id, file_path, chunk_bytes, parallelism
  • localsend_receive:
    • Inputs: session_id, dest_dir, accept

Throughput Tuning

  • localsend_probe:
    • Inputs: session_id, probe_bytes, probe_parallelism
    • Output: throughput_bps, rtt_ms, loss_rate
  • localsend_session_status:
    • Inputs: session_id
    • Output: bytes_sent, bytes_received, throughput_bps, spectral_gap

Spectral Gap Heuristic (Practical)

Define:

spectral_gap = 1.0 - (observed_throughput / target_throughput)

Stop tuning when spectral_gap <= 0.25.

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 135 lines · 27 tokens per session scan A e7303d138727

Subscribe to this mod's changes

localsend-mcp is a skill published in the GitHub repository plurigrid/asi (73 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 1,212 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

localsend-mcp compared with skills from other repositories

localsend-mcp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
localsend-mcpplurigrid/asiSkill731mo agoMITA27Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k5d agoMITA21Claude Code