cd /news/ai-tools/show-hn-an-mcp-server-that-gives-you… · home topics ai-tools article
[ARTICLE · art-47790] src=lockinmcp.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: An MCP server that gives your AI assistant write access to /etc./hosts

A developer released LockIn, an MCP server that gives AI assistants write access to the system hosts file to block websites natively, making distractions unbypassable. The tool offers timed unblocking and a background daemon for state persistence, aiming to help users maintain focus while using AI agents.

read1 min views1 publishedJul 4, 2026

I was tired of how bad distraction blockers are so I built my own.

LockIn lets AI assistants (Claude, ChatGPT, Cursor, etc.) block websites by editing the system hosts file directly via MCP tools (via a secure cloudflare bridge).

Why? Because chrome extensions don't work. Blocking it natively makes it unbypassable, and having your agent gatekeep your focus is the ultimate cheat code.

Since everyone is using AI agents nowadays, but most people start scrolling or Reddit while waiting for Claude Code to finish, giving them control over your focus solves that.

The MCP server exposes four tools: block_site, unblock_temp, focus_session, get_status. A background daemon keeps the state synced and persists across restarts. There's a relay URL for hosted MCP connections (ChatGPT, Copilot).

Install: npx -y lockin-mcp install What makes it so good for me is the timed unblock: it gives the flexibility most tools miss. If you're studying for school you don't want to be distracted by yt, but perhaps you have to watch a 5 minute video FOR school, in that case you can now ask your agent to 'unblock yt for 5 minutes' and it does it.

Happy to get into the daemon architecture or the relay setup if anyone's curious.

Comments URL: [https://news.ycombinator.com/item?id=48784250](https://news.ycombinator.com/item?id=48784250)

Points: 1

── more in #ai-tools 4 stories · sorted by recency
── more on @lockin 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-an-mcp-serve…] indexed:0 read:1min 2026-07-04 ·