r/mcp • • 9h ago

discussion MCP permissions tell you what an agent can do. How do you check whether it should do it?

0 Upvotes

I've been thinking about a gap in how we govern agents using MCP tools. We can control which tools an agent can access, restrict permissions and validate arguments. But there's another problem: whether a technically permitted action actually complies with the policies governing the task.

Take an agent with access to a CRM:

  • It has permission to update customer records.
  • It uses a valid tool with valid arguments.
  • But the update might violate an internal business rule.

The tool call is authorized. The decision might still be wrong.
I think there are two distinct layers:

  1. Execution controls: Permissions, scopes, argument validation and approval gates. These should be deterministic.
  2. Policy compliance: Does the proposed action satisfy the relevant business or organizational rules? Some of these checks require contextual or semantic judgment.

I've been exploring the second layer while building Agentests, an open-source framework that turns written engineering rules into executable assertions. The approach is to resolve everything possible deterministically and use specialized decision models like Jev only where semantic judgment is necessary.

I'm interested in how people are separating authorization from policy compliance in their MCP architectures, particularly when agents operate across multiple tools and systems.

Here is the repo https://github.com/feuersteiner/agentests - let me know what you think of it :)


r/mcp • • 16h ago

showcase We had one coding agent ask another for a queue name missing from its repo

0 Upvotes

We built Prattle, an MCP chat server for teammates' coding agents. In one of our tests, we asked Bob's agent to add a staging queue to its config. The name was in Alice's Terraform repo. Bob's agent sent her agent a DM; hers looked it up and replied. Bob's agent put the name in his config.

bob/copilot, DM to @alice: What is the exact name of the staging payouts queue owned by your team in Terraform? I need to add it as payoutsQueue in payments-web/config/staging.json.
alice/claude, reply: Per infra/queues.tf (aws_sqs_queue.payouts): name = "acme-staging-payouts-v2".

To connect from Claude Code: claude mcp add --transport http --scope user prattle https://mcp.prattle.dev. Open /mcp in a new session to sign in.

A shared file works if both agents can read it and someone puts the answer there. In this test, only Alice's repo had the answer. Her agent could reply without giving Bob's agent access to the repo.

The server uses Streamable HTTP with OAuth or a token. The nine tools and their guide take about 2,300 tokens. The server is MIT-licensed.

We did see one unnecessary turn: Bob's agent posted that it had updated the file, and Alice's woke again to read that. It didn't reply. The optional watcher limits how often incoming messages can start a run.


r/mcp • • 17h ago

showcase I built an MCP server that connects Claude to D2L Brightspace (local, read-only, open source)

0 Upvotes

Built this so my AI could actually see my courses instead of me uploading slides every chat.

It's a local MCP server for D2L Brightspace. You sign in through your own browser on your school's login page, the session stays on your machine, and every course tool is read-only.

What you can ask:

  • "am I cooked?" gets your weighted grade across every course, what's due, and what to do next
  • "quiz me on week 7" quizzes you on the real lecture slides
  • "make a 10 min video on this lecture" makes a narrated review video from the slides

Works with Claude Desktop, Claude Code, ChatGPT and Gemini. One command to install on Mac or Windows.

Site: https://amicooked-mcp.vercel.app/
Repo: https://github.com/udaysinghkanwar/amicooked

Would love feedback!


r/mcp • • 8h ago

showcase How we built an 18-tool Financial MCP Server + Live SSE Push Stream without blowing up LLM context windows or OPRA rate limits

1 Upvotes

Over the last few months, we built a live Model Context Protocol (MCP) server and Server-Sent Events (SSE) push stream connecting Claude Desktop, Cursor, and Python agents to live US options and equities market structure.

Sharing the three engineering bottlenecks we hit and how we solved them, in case anyone here is building market-data MCP servers.

Problem 1: Raw OPRA Option Chains Blow Up Context Windows

Our first prototype exposed raw option-chain snapshots to Claude. Liquid tickers like SPY or NVDA carry thousands of contracts across expirations. Even filtered near the money, raw Greeks + OI + quotes burned 15,000-40,000 tokens per call, spiked latency, and caused Claude to miscalculate Net GEX and Zero-Gamma Flip levels.

Fix: Move 100% of aggregation server-side. Instead of raw chains, we exposed 18 compact, pre-computed MCP tools (POST /api/mcp, JSON-RPC 2.0):

  • Dealer GEX/DEX ladders, Call/Put Walls, Near Flip (0-14D) vs. Structural Zero-Gamma (0-45D), and 6-Greek Heatseeker surfaces
  • Intraday Net Call vs. Net Put Premium (Drift) and $50K+ OPRA sweeps filtered by Vol/OI conviction
  • Pre-computed 8-quarter Earnings Playcards (implied straddle vs. 8Q realized move & IV crush %)
  • Weinstein 10-Stage classification, 1-99 Relative Strength quad confluence, pattern geometry, and CFTC COT 52-week percentiles

Payload size dropped >90%, and Claude stopped hallucinating strike math because it only reasons over clean pre-computed fields.

Problem 2: Cold-Fetch Thundering Herds

When an agent fires parallel calls across 5-10 tickers at once, uncached cold fetches can hammer upstream Alpaca/OPRA APIs and stall Uvicorn workers.

Fix (3-Layer Guardrail):

  1. Shared Redis Cache: Composite tools (get_0dte_playcard, get_earnings_playcard, get_ticker_360_intelligence) share short TTLs (30s / 90s / 60s) across workers with double-checked lookups.
  2. Per-Worker Semaphore: asyncio.Semaphore(4) caps concurrent cold fetches per worker so bursts queue cleanly.
  3. Per-Key Quotas: Every tiq_live_ key enforces 5,000 calls/day, 60 req/min, 5 concurrent in-flight requests, and max 10 calls per JSON-RPC batch (metered individually).

Problem 3: Agents Polling REST Endpoints in Tight Loops

Even at 5,000 calls/day, agents waiting for a gamma flip or $50K+ sweep fall into polling loops (while True: call_tool(); sleep(5)), burning quota while still missing intrasecond alerts.

Fix: Dedicated Live SSE Push Stream (GET /api/mcp/stream) We added an SSE endpoint behind Nginx (proxy_buffering off; proxy_cache off; chunked_transfer_encoding off; proxy_read_timeout 86400s;):

  • Zero upstream API calls per subscriber: Reads strictly from Redis Pub/Sub plus deduplicated Redis snapshot deltas (bounded SHA-256 ring buffer so reconnects never duplicate frames).
  • Channel & Ticker Filtering: ?channels=gamma_alerts,options_flow,drift,ghost&tickers=SPY,QQQ,NVDA emits typed frames (gamma_alert, options_flow, drift_update, ghost_signal) with a 20s ping heartbeat.
  • Concurrency Cap: Capped at 2 concurrent SSE streams per key in Redis with TTL + guaranteed finally: release (3rd stream returns HTTP 429).

Example Claude Desktop / Cursor Config

{
  "mcpServers": {
    "trade-iq": {
      "url": "https://thetradeiq.com/api/mcp",
      "headers": {
        "Authorization": "Bearer tiq_live_YOUR_API_KEY"
      }
    }
  }
}

Happy to answer questions on the FastAPI + Redis + Nginx SSE architecture, JSON-RPC batching, or structuring compact options schemas for LLMs.

(Disclosure: I built this for Trade IQ -- public discovery metadata for all 18 tools is at https://thetradeiq.com/api/mcp/info.)


r/mcp • • 13h ago

I gave an LLM control of my CP PLUS Wi-Fi camera

Thumbnail
youtu.be
0 Upvotes

r/mcp • • 17h ago

showcase Domain and DNS security API and MCP

1 Upvotes

New to the AI agent space and decided to learn by building. This led to a project called Domain Trust. It is a security API designed to help AI agents and developers evaluate domains and URLs before interacting with them.

After some research, and lots of time learning, I decided to build the below.

  • Domain & DNS Trust API: DNSSEC, SPF, DMARC, MX, and CAA checks, TLS information, and phishing/typosquatting.
  • URL Redirect Inspections: Traces HTTP redirect chains (up to 10 hops) without executing JavaScript, scoring hops and surfacing flags.
  • MCP Server: Published on npm (x402-domain-trust-mcp), supporting single domain checks, batch checks (up to 10 root domains), and URL redirect inspection for agents that use MCP.

(Note: Redirect inspection does not execute JavaScript, and trust scores/verdicts are risk signals rather than safety guarantees.)

I have used this to learn more about AI, agents, MCP, and developing tools. I appreciate any feedback, and thank you in advance!!! Please check comments below, and again thanks in advance.


r/mcp • • 20h ago

When an MCP server provides both tools and skills, what do you review before connecting it?

1 Upvotes

MCP servers are becoming more than just tool providers.

With Claude Code adding beta support for skills from MCP servers, there's another thing developers may need to think about: the instructions that come with those tools.

A server might expose useful capabilities, but its skills can also influence how an agent approaches a task.

I'm curious how developers handle this:

  • Do you review the available tools before connecting an MCP server?
  • Do you inspect the instructions or skills it provides?
  • Would you allow skills to run shell commands automatically?
  • Should MCP server configurations go through code review like other dependencies?

I think reviewing tool access alone may no longer be enough.


r/mcp • • 2h ago

showcase I built an MCP server that lets your AI scan the US stock market live. Here's what it can do

Post image
2 Upvotes

Disclosure: I'm the solo dev behind ZenBot Stock Scanner. I recently added MCP access to the scanner, so I'm posting it as a showcase.

Most finance MCP servers are data APIs: quotes, filings, fundamentals for a ticker you already know. This one works the other way round. It finds the stocks that are moving right now and explains why, so your AI can start from "what's happening?" instead of "tell me about AAPL."

What your AI can do with it

  • Scan the whole market: 80+ ready-made scans (gappers, unusual volume, momentum, halts, pullbacks, news movers, long and short sides).
  • Build a scan from plain English: "small caps up 5% on 3x volume above VWAP" becomes a real scan over live data.
  • Debug its own scans: results come back with how many stocks pass each condition, so when nothing matches the model sees which condition killed it and fixes it.
  • Explain a result: checks every rule of a scan against one stock's actual values, so "why is this on the list?" gets a real answer, not a guess.
  • Look up any stock: price action, technicals and the earnings calendar.
  • Draw and read charts: 1m, 5m, 15m, 1h or daily candles with volume, VWAP, moving averages and key levels, returned as an image plus the numbers behind it, so the model can show the chart and explain it in the same answer.
  • Read the market: breadth, sectors and indexes in one call.
  • Keep watching after the chat ends: save a scan and set an alert for new matches.

Prompts to try

"What's the market doing this morning? Then pull the Gap & Go and Unusual Volume names, drop anything under $2, and tell me why the top 5 are on the list."

"Build a scan for small caps up 5%+ on 3x average volume, above VWAP. Show me how many stocks pass each step, and save it only if I say so."

"What's halted right now and what just resumed?"

(after the close) "Which of today's biggest gainers closed near their high? Chart the strongest one."

"Save that scan and alert me when a new stock joins it."

Charts: "explain this chart"

The chart tool returns a picture and the numbers behind it (move, volume, relative volume, strength vs SPY, levels, which scans it's on, earnings date, headlines), so the model isn't describing a chart it can't see. In Claude it reads the image directly. Some of my favorite prompts:

"Chart NVDA on the 15-minute chart today and explain what happened at the open."

"This stock is on the gap scan. Chart it, and tell me whether it's holding the gap or fading it."

(The scans already split this: Gap & Go is holding, Gap Fade is fading. It's nice to watch the model check the chart against the scan.)

"Chart each of today's three biggest gainers. What's different about the one that held up?"

"Show me the daily chart for the last few months and describe the trend in plain English. Where did it stall?" (Daily charts cover about 3.5 months.)

And the reverse, using the model's own vision:

(paste a screenshot of a chart from your broker) "What is this pattern? Build me a scan that finds stocks setting up like this right now."

The model reads your screenshot, turns what it sees into scan conditions, runs the scan, and charts the matches. It works for patterns the scanner has filters for: bull and bear flags, VWAP pullbacks and bounces, tight ranges and squeezes, opening-range breaks, moving-average tests. For something like a cup and handle it can only approximate. That chain (screenshot → spec → scan → charts) is my favorite thing it does.

In an agent or Claude Code, it composes with whatever else you run: write a premarket note to a file before the open, drop the day's movers into your notes app, or check your own watchlist against the scans every hour. It only reads and explains the market. No trading, no buy/sell advice, and the tool descriptions say so.

Connect it

https://www.zenscans.com/connect-ai/

Endpoint: https://www.zenbotscanner.com/mcp (Streamable HTTP, OAuth). Also in the MCP Registry as com.zenbotscanner/zenbot.

  • ChatGPT: search the app directory for ZenBot.
  • Claude: Settings → Connectors → Add custom connector → the URL above, then sign in.
  • Claude Code: get a free key (My Account → Connect AI on the site), then claude mcp add --transport http zenbot https://www.zenbotscanner.com/mcp --header "Authorization: Bearer zb_mcp_YOURKEY"

Free works with every tool: 15-minute delayed data, 25 rows per scan, 300 calls a day. Live data is paid (so on free, "halted right now" means 15 minutes ago).

A few things I learned building it (happy to go deeper in the comments)

  • Return the funnel, not just the hits. It's the difference between a model that fixes an empty scan and one that retries blindly.
  • Models invent plausible inputs. Made-up scan names are one of our most common errors. Our error says the name doesn't exist and points the model to list_scans. Unknown filter ids come back as "dropped" instead of failing the whole scan.
  • Put units in the descriptions. One volume filter is in millions; until the description said so, models were off by a factor of a million.
  • Annotate every tool, even obvious reads. OpenAI's review treats a missing destructiveHint as destructive.
  • People use it at the open. Almost all use is on weekdays, and the first trading hour alone is about a sixth of all calls. Latency matters more than I expected.

Give it a shot and let me know what you build with it!

-st0rm


r/mcp • • 24m ago

question Drafts still sound robotic in my MCP setup, how do you remove ai vibes from writing?

7 Upvotes

I tried feeding style guides and past samples through a local MCP server into my workspace, plus long negative-constraint prompts. It worked for a few pieces, but now that I handle more client deliverables, the output slips right back into the same stiff structure.

A client called out the generic phrasing yesterday and I spent three hours rewriting everything by hand. How are you handling this in your own workflow, and what actually fixed it for you?


r/mcp • • 2h ago

question for Claude and MCP users: when do you download a local skill/tool vs hiring an external specialized agent per task?

6 Upvotes

I keep running into tasks I only need once or twice a month that require multiple model subscriptions or messy sandbox setups (for example running the same buyer prompts across ChatGPT, Claude, Gemini, Grok, and DeepSeek in parallel, or running a one-off security/SEO audit). Installing another local skill still means managing five API keys and maintaining scripts myself. Are people actually connecting pay-per-task agent marketplaces over MCP inside Claude, or still keeping everything as local skills and scripts?


r/mcp • • 2h ago

showcase I built an open-source Rust CLI + MCP server to coordinate parallel AI coding agents at the symbol-contract level (652/652 CommonMark, 0 merge conflicts)

Thumbnail
gallery
3 Upvotes

If you've avoided running multiple coding agents in parallel because of merge conflicts (or tried git worktrees and got burned), you've probably seen both failure modes:

  1. Uncoordinated parallel agents fall apart: in our 12-agent CommonMark 0.31.2 benchmark (652 official spec tests), uncoordinated worktrees (parallel-off) averaged ~9 merge conflicts and dropped to 199/652 passing (~302 integration-loss regressions).
  2. Silent cross-file breakage that git never catches: Agent A adds a required user_id param to send_email() in email.py; Agent B calls the old signature from reset.py. Clean git merge, both branches pass their own tests, broken together.

Running sequentially avoids conflicts but takes 65.1 min (3.1x slower). So I built Seamlock (Rust, MIT/Apache-2.0) — a local coherence engine + 12-tool MCP server that coordinates parallel agents at the symbol-contract level instead of locking whole files.

How it works

  • Contract vs. body separation (tree-sitter): Body edits never block anyone. Breaking contract edits (signatures, types, SQL/Prisma/Protobuf/OpenAPI schemas, and cross-language HTTP routes like FastAPI/Express/Next.js <-> fetch) send surgical notices only to affected callers.
  • Live region coherence + AST-verified union: Pure two-sided insertions in the same file are combined via patience/diff3 + AST verification; genuine overlaps use region ownership and hand-offs.
  • Finish gate: Blocks an agent from finishing while it depends on a stale contract or unresolved conflict.

Benchmarks (attached chart)

We didn't even benchmark against sequential — the primary comparison is head-to-head against a strong baseline: the same parallel agents plus a 13th AI merge-integrator agent (parallel-integrator), same models, reproducible harness:

  • 12-agent Python CommonMark (652 spec tests, DeepSeek V4.1 Flash): 652/652, 0 conflicts, 20.0 min, 34.0M tokens, $0.99 vs integrator's 31.7 min, 43.8M tokens, $1.15 (~9 conflicts resolved).
  • 6-agent Polyglot Full-Stack (SQL + Python + TypeScript @/, 30 live E2E): 30/30, 0 conflicts, 8.8 min, 7.7M tokens, $0.40 vs integrator's 13.8 min, 8.2M tokens, $0.33 (5–6 conflicts resolved). (Honest note: on small ~200-line additive scaffolds, a quick post-hoc integrator pass can still be a few cents cheaper; live coordination pays off most on larger, coupled codebases.)
  • 5-agent Next.js/Postgres product sprint: 0 conflicts, 16.7 min vs 19.1 min ($0.69 vs $0.76).
  • 6-agent TypeScript app (48 tests): 48/48, 0 conflicts, 3.7 min vs 6.8 min ($0.16 vs $0.21).

How you use it (plugs into your existing agent — macOS, Linux, Windows)

  1. Via MCP: npm i -g seamlock && seamlock setup — auto-configures Claude Code, OpenAI Codex CLI, OpenCode, Cursor, Windsurf, Gemini CLI, VS Code/Copilot, and Antigravity (or any stdio MCP client via seamlock mcp). Then just ask your agent to plan and run parallel tasks with Seamlock.
  2. Direct CLI: seamlock run --tasks tasks.json --mode enforce --regions --test-cmd "npm test" + seamlock watch.
  3. Sidekick only (no orchestrator): seamlock worktrees --base main to check existing git worktrees live for silent contract breaks, or seamlock merge --base main b1 b2 --type-check.

Install: npx seamlock · uvx seamlock · brew install lucas-rus/tap/seamlock · cargo binstall seamlock-cli

Happy to answer questions on the tree-sitter contract diffing, region coherence protocol, or benchmark setup!


r/mcp • • 3h ago

showcase Hosted Grok Bot can't reach a localhost MCP server. Here's the Tailscale and SSH path that works.

2 Upvotes

Disclosure: I built this.

Hosted agents can't reach an MCP server that listens only on localhost, and my first trial user's question showed me that. I built `bk`, an open-source double-entry ledger with a built-in MCP server, so Claude, Cursor, or Grok can post balanced, undoable entries to books that stay on your machine. The trial started this week, and the first support question showed that my install wording made the hosted-agent path sound too easy.

A hosted agent runs in the cloud, so it never sees an app bound to 127.0.0.1 on your computer. The path that works is the Tailscale connector in Grok Bot, SSH to your machine, then `bk mcp bridge`. I wrote up the steps at https://beankeeper.app/grok-bot/

The CLI is free: https://github.com/Govcraft/beankeeper

I'm happy to answer questions about the tool surface, reversing entries, or how I keep an agent from damaging a ledger.


r/mcp • • 3h ago

server Remote MCP server for vulnerability data: ask your agent if your lockfile has known CVEs

2 Upvotes

I built FlawDB, a free vulnerability database that merges the CVE List, NVD, GitHub Advisories, OSV, CISA KEV and EPSS. It has a remote MCP server (Streamable HTTP, stateless, read-only) at https://flawdb.com/mcp

Claude Code:

claude mcp add --transport http flawdb https://flawdb.com/mcp

Tools:

  • search_entries: full text plus operators like tech:wordpress kev:true or affects:npm/lodash@4.17.20
  • get_entry: one CVE, GHSA or OSV entry from any year
  • list_entries: recent entries by technology, vendor, package, severity or KEV
  • list_changes: what changed since a given time, for keeping a copy up to date
  • check_stack: which recent vulnerabilities affect exact package versions or a whole lockfile
  • list_technologies: the slugs used for filtering

What I use it for most is "check my package-lock.json for known vulnerabilities". The agent sends the lockfile to check_stack and gets back findings with severity, KEV status and fixed versions, all from the sources. The AI-written part is limited to tags and a labeled summary, so the agent has nothing to make up about severity.

Limits: anonymous use is 60 requests an hour, or 1,000 a day with a free API key. The stack check covers recent entries only for now and doesn't do reachability analysis, so a match means your version is in an affected range, not that your code calls the vulnerable function. Every result includes attribution for its sources.

There's also llms.txt, an OpenAPI spec and /.well-known/mcp.json if you'd rather wire it up differently.

Check it out: https://flawdb.com

Next up is automatic checking, so your stack gets checked without anyone having to ask. Beyond that I have more ideas than time, so I'd rather hear what you'd actually use before I build more. What would you want these tools to return that they don't yet?


r/mcp • • 5h ago

I benchmarked Playwright MCP, Chrome DevTools MCP, BrowserSkill MCP, and Agent-Browser across 15 browsers on macOS

15 Upvotes

I am running an automated agent swarm over the next few weeks to benchmark browser MCPs, CLI drivers, and 15 browsers on real hardware. macOS is done; Ubuntu, Windows, and Omarchy are next.

Here are the preliminary macOS results so far:

  • **Helium (0.22.5.1) - Clear winner:** 315/315 strict passes (100%), lowest peak RAM and 2.4% median CPU useage.
  • **Ego Lite (0.6.4.22-23) - Runner-up:** passed nearly all tasks, fast, but nearly double Helium's peak RAM and 20.6% median CPU usage, over 10x Helium.
  • **Chrome (158.0) - 3rd:** Fastest time, but had 6 failures across all tasks and carried the heaviest memory footprint.
  • Across the broader 9-browser screening run, Brave sat closest to Helium on memory (2.9 GB peak, 85.1 s), while Opera hit 9.0 GB peak RAM and failed the ad-heavy page check outright.

**Why stock Chrome and Ego Lite burn more memory**

On a real ad-heavy page, built-in blockers cut Helium down to 41 network responses (Brave 42, Comet 43, Ardia 45) compared to 131 on Chromium, 192 on Edge, and 200 on both Chrome and Ego Lite.

**Models and harnesses**

  • **Claude Sonnet 5.5 on Claude Code** was the best daily driver overall
  • **Claude Mythos/Fable 5.2 on Claude Code** ran fastest overall at 84.7 s median, with one failed task.
  • **Gemini 4** was the only model family to pass 100% of tasks across all testing.
  • **Harness matters:** Claude Opus 5.5 ran 42 s faster on Claude Code CLI than on Antigravity CLI.
  • On Codex, GPT 6.2 Astra hit 104/105 and GPT 6.2 Sol hit 100/105, with all 6 Chrome confirmation failures landing on Codex routes.

**Browser drivers**

  • **BrowserSkill MCP:** 11.9 s median time, 13 KiB compact replies (vs 12.7 s / 368 KiB on BrowserSkill CLI).
  • **Playwright CDP:** 13.5 s (fastest raw protocol floor).
  • **Vercel Agent-Browser:** 15.7 s, 465 KiB replies.
  • **Playwright MCP:** 19.7 s, 381 KiB replies.
  • **Chrome DevTools MCP:** 19.9 s, 1,000 KiB replies (and lacked a built-in scroll tool in its catalogue).

**Controls**

Headed browsers on dedicated hardware, one measured workload at a time, shipped defaults, signed-out profiles, 9 model/harness routes x 5 randomised repetitions, 2 s process-tree resource sampling, hash-checked traces, and zero substitutions on quota limits.

**What comes next**

Ubuntu 24.04, Windows 11, Omarchy, completing the remaining tests before I publish the full results. Follow me on X to see when I release the full results - https://x.com/MxrkLongden/

Before I lock in the Linux and Windows runs, are there any specific browsers, MCP/CLI drivers, or awkward web edge cases you want add before I move on from macOS?


r/mcp • • 6h ago

Lessons from building an MCP gateway: tool name collisions, approvals by retry, and the error-code range I was squatting in

1 Upvotes

I've spent the last few months building an MCP gateway: one Streamable HTTP endpoint that MCP clients connect to, with registered MCP servers and workflows behind it as tools. A few things weren't obvious to me going in, and might save someone a weekend:

  • Don't proxy tools/list live. One slow or dead upstream server makes every client's tool list slow or broken. I answer from a snapshot taken when each server is probed.
  • Name tools <server>__<tool>**, and when two servers clash, rename only the one added later.** Otherwise adding a server silently renames tools that agents and prompts already use.
  • Approvals don't fit a single request. There's nowhere to show an approve button to a CLI client. What works: return a JSON-RPC error meaning "approval pending" with a request id, and once a human approves, the client retries the identical call within a window.
  • Error codes: I'd used -32029… for my own errors. MCP 2026-07-28 reserves -32020 to -32099, and JSON-RPC already reserves -32768 to -32000. I moved to -31029… with a stable string name in data. Pick codes outside the reserved range from day one.
  • Sessions live in one instance's memory, so a second instance behind a load balancer needs sticky routing on Mcp-Session-Id. And clients on 2026-07-28 drop sessions entirely, so design for that.
  • Check Origin on a localhost gateway (DNS rebinding), and scrub any injected credential that an upstream server echoes back in an error.

The full write-up has ten of these: https://dev.to/l2m/what-i-learned-building-a-self-hosted-mcp-gateway-2ofk

It's part of L2M, which is open source (MIT) and self-hosted. Repo: https://github.com/TensorGreed/l2m

I'm curious how others handle approvals for write tools and multi-instance sessions. Is anyone doing something cleaner than retry-after-approve?


r/mcp • • 7h ago

question Anyone using a social media publishing MCP that enforces drafts only mode?

2 Upvotes

i want claude to generate copy across multiple social profiles but keep a hard guardrail between creating a draft and actually scheduling or publishing live.
Are there any existing MCP integrations that support multi account routing with a draft only permission scope plus status checks when scheduled job fails or did you end building a lightweight wrapper around the REST api yourself?


r/mcp • • 7h ago

showcase AppTierList: Apple sorts apps into 27 categories. We sorted every iPhone app into 1,500+ and ranked each list S to F (zero-config MCP, no API key)

Thumbnail
apptierlist.com
3 Upvotes

AppTierList is a zero-config mcp server for finding the best iphone app for a job. no api key, no signup, you paste one url.

Apple has 27 categories, so "productivity" is one giant bucket. AppTierList sorts apps by what they actually do (budgeting, meditation, dating sims...) into 1,500+ lists and ranks each one S to F. nearly 42,000 apps so far and counting, new ones land every day 😳. Iphone only for now btw.

why an agent can trust it:

  • no tier or position can be bought
  • the score is a public formula: ratings, rating count, app store search rank, how recent the last update is
  • all of it is open: every list and score is on the site and a free api, and explain_ranking shows the numbers behind any app

two real calls:
"what are the best dating sim apps on iphone?"
search_apps { "query": "best dating simulation apps" } → dating simulation, 76 apps ranked. top 3 today, all S tier: Anime Dating Sim, Obey Me!, RizzMaster.

"i like calm, what else does the same job?"
find_alternatives { "key": "calm-571800810" } → same job (sleep meditation), in 3 groups. most similar: Insight Timer, S tier and #1 in that list. top rated: Meditopia. best free: NightGrace, no in-app purchases at all.

add it:
- grok, cursor or claude build: open the connector / plugin directory, search "apptierlist"
- claude code: claude mcp add --transport http apptierlist https://apptierlist.com/mcp
- anything else: https://apptierlist.com/mcp (streamable http)

how the ranking works: https://apptierlist.com/how-we-rank/
code: https://github.com/apptierlist/mcp

Throw a weird query at it and tell me what breaks


r/mcp • • 10h ago

MCP going stateless was honestly one of the best things to happen to this ecosystem

41 Upvotes

It's been about four months since the 2026-07-28 spec went final, and the more I build with it, the more I appreciate it. Dropping sessions means my servers now scale like any normal HTTP service, with no sticky sessions and no shared session store. Any request can hit any instance, so scaling and debugging are much simpler than before. The move toward CIMD makes auth cleaner too, and the new six-month release cycle (next spec in March 2027) gives everyone more time to build properly instead of rushing to catch up. Big thanks to the maintainers and everyone in this community who tested the betas and shared feedback. What has been your favorite improvement since the switch, and what are you building with it?


r/mcp • • 10h ago

showcase MCP Dev Studio: Test tools, skills, and run evals - completely local

Post image
4 Upvotes

I found the process of building & testing MCP servers for existing products more difficult than (I think) it should be. Either i'd use an agent alone, which makes iteration hard & it's a bit of a black box, or some off-the-shelf tooling which required me to share data.

I'm sure there's more, but what I really wanted was:

  1. Local first, not requiring me to share any data with a provider
  2. Visual and collaborative with my agent, so that I could work in a UI and/or CLI and both were kept in sync
  3. It was proactive in calling out where an MCP was broken / poorly built
  4. I could test multiple cases, across multiple models, at once. Evals, basically

So i built a tool that did these things! https://github.com/chapter-dev-pty-ltd/mcp-dev-studio

I simply point an agent at this package, and ask it to start analyzing the MCP and build out some test cases. It then just gets to work

I saw some pretty cool results across our own MCP & a couple design partners, so I would love ya'll to try it, and let me know your thoughts as I continue to build it out!


r/mcp • • 12h ago

discussion I built ghostlan: a Linux MCP server so AI agents can spin up isolated virtual PCs (netns + Xvfb + PipeWire + pcap) without sudo prompts

6 Upvotes

TL;DR: Built a Linux-only CLI + MCP server in Go (ghostlan) so an AI agent can spin up 2+ isolated "virtual PCs" on one machine, run native GUI apps (like OBS) headlessly, inject packet loss/cable pulls, record video/audio, capture .pcap files, and take screenshots—all without sudo prompts or hijacking my mouse.


I was working on a C99 media streaming project (openavx + an OBS Studio plugin) and needed to test 2-PC streaming (Gaming PC -> Streaming PC) on one Linux laptop.

Trying to let an AI agent test it kept failing for dumb reasons:

  • Docker/VMs broke GUI/audio and were too heavy
  • Using xdotool on my Wayland desktop either didn't work or kept stealing my mouse/keyboard
  • Giving the agent sudo ip netns scripts meant I had to sit there typing my sudo password every 2 minutes

So I built ghostlan (single Go binary, one-time setcap during setup so zero sudo at runtime).

In its first real run, my agent:

  1. Spun up tx (10.99.119.11, Xvfb :99) and rx (10.99.119.12, :100) with isolated HOME/XDG_CONFIG_HOME so two OBS instances didn't fight over configs
  2. Streamed 763 MB of live video+audio while checking the UI with native PNG screenshots over MCP
  3. Added 5% packet loss + 25ms delay + 10ms jitter via tc netem (actually caught OBS bumping audio buffering from 512ms -> 832ms under TCP)
  4. Pulled the virtual cable (ghostlan_link down for 4s -> up) and checked logs to verify auto-reconnect, then cleaned everything up

It exposes 24 MCP tools (stdio default, or --http with bearer token) including ghostlan_doctor, ghostlan_capture / ghostlan_capture_inspect (host-side veth .pcap + tcpdump), ghostlan_gui_record / ghostlan_gui_motion, and ghostlan_audio_check, plus embedded docs at ghostlan://readme. Works on Linux/WSL2, dual-licensed MIT / Apache-2.0.

Happy to hear feedback on the netns/privilege tradeoffs.


r/mcp • • 14h ago

showcase Showcase: remote MCP server for documents, a forms catalog, and calculators

1 Upvotes

Disclosure: I work on All AI LLC Data API (All AI LLC / ALL AI Forms). This is our product. Contact: ops@allaiforms.com

I put a remote MCP server in front of our forms catalog, workflow registry, and a set of document and calculator tools, and I am looking for feedback from people who actually run MCP clients.

Endpoint: https://allai-api.allaihq.workers.dev/mcp (streamable HTTP)
Source: https://github.com/aifusionone/allai-mcp (MIT)
Docs: https://allai-api.allaihq.workers.dev/
Terms: https://allai-api.allaihq.workers.dev/terms

There are 47 tools right now: 9 free catalog and workflow tools; 20 generate_* document tools at 250 credits ($0.25) each; invoice_quote_pdf (required: items) and fill_template (required: data) at 20 credits ($0.02) each; 11 calculate_* tools at 10 credits; plus offer_match (10), catalog_query (5), get_offer (2); get_credit_balance and list_paid_tools are free (balance needs a key). Credits are charged only after a successful result. Billing is one-time prepaid credits, no subscription.

invoice_quote_pdf builds a PDF and a Word file from structured line items; math is done server-side. fill_template fills {{placeholders}} in Markdown, text, HTML, or a Word .docx. It does not accept a PDF file as the input template.

Document and calculator tools, including those two, share 3 free trial calls a day per network and client (UTC day). Trial documents are marked PREVIEW. The three data lookups have no trial.

Client config, for a client that takes a URL and headers:

{"mcpServers":{"allai-api":{"url":"https://allai-api.allaihq.workers.dev/mcp","headers":{"Authorization":"Bearer ak_live_YOUR_KEY"}}}}

It is a catalog and paperwork helper, not advice, and the document tools do not certify compliance. Prices can change; check /v1/pricing.

What feels awkward in the tool schemas, and what would you change about a shared daily trial that is counted per network and client rather than per IP?


r/mcp • • 16h ago

showcase Zero-dep stdio MCP server + local dashboard so coding agents can audit their own token spend & cache hit rate across Host + WSL2

Post image
2 Upvotes

I built Agent Usage Radar (npx agent-usage-radar mcp) — a pure Node.js 24 (node:sqlite, zero npm dependencies, 100% local read-only) stdio MCP server and usage auditor across Codex, Claude Code, Antigravity, Hermes (WSL2), Cursor, and Cline/Roo.

It exposes three read-only MCP tools (get_ai_usage_summary, get_model_cost_breakdown, check_daily_token_budget) backed by strict inclusive-vs-disjoint cache math (fixing Codex cache double-counting) and lock-free SQLite WAL snapshots across Host + WSL2.

{
  "mcpServers": {
    "agent-usage-radar": {
      "command": "npx",
      "args": ["-y", "agent-usage-radar", "mcp"]
    }
  }
}
  • GitHub (MIT core, 74/74 tests): https://github.com/augustfu-droid/agent-usage-radar
  • npm: https://www.npmjs.com/package/agent-usage-radar

r/mcp • • 17h ago

Built a pure-Rust MCP server for Laravel for Rust (13 tools, 80+ resources, embedded SQLite FTS5 and 2.7 MB ETag sync daemon)

1 Upvotes

Laravel for Rust launched into public beta today, so I built an open-source, Boost-parity MCP server (JSON-RPC 2.0 over stdio, MCP 2025-03-26) in pure Rust to stop coding agents from guessing PHP or raw Axum APIs.

GitHub (MIT): https://github.com/SamIsAlive/laravel-rust-boost

Prebuilt binaries (Linux, macOS, Windows): https://github.com/SamIsAlive/laravel-rust-boost/releases/tag/v0.1.0

Architecture and highlights

  • Embedded SQLite FTS5 (BM25) in WAL mode: indexes all 68 official Laravel for Rust Markdown guides into 1,316+ heading-scoped chunks; read_doc prefers exact crate-bundled docs locked in Cargo.lock.
  • 24/7 background Rust daemon (2.7 MB RAM): polls laravel/rust and laravel/rust-framework via conditional GitHub ETags (HTTP 304 avoids rate limits) and atomically swaps and reindexes while MCP clients stay connected.
  • Auto Docker + Native Host runtime: works out of the box with Claude Code, Codex, Cursor, Windsurf, and Antigravity across Linux, macOS, and Windows.
  • 13 MCP tools + 80+ resources: search_docs, read_doc, application_info, list_routes, compiler_diagnostics (cargo clippy JSON), database_schema, read-only database_query, recent_logs, and skills/guidelines.

r/mcp • • 18h ago

resource MCP server for live attacker data from my honeypot network: IP lookups, top attackers, recent indicators

2 Upvotes

Hello good people,

I built a global threat intel network and wired an MCP connector into it, so you can wire it into your system, and your AI agents can determine whether source IPs are known as hostile or not.

Free, no key, no account: 8 tools.

  • lookup_attacker_ip: has this address hit the honeypots, when, on which services, what it tried
  • top_attackers: the most active attacking addresses
  • attack_map and attack_heatmap: where attacks are coming from
  • recent_iocs, ioc_trends, export_iocs: recent indicators and how they're moving
  • credential_preview: a sample of the logins attackers try

With a key: 29 tools in total, adding malware families, detonation reports, sample comparison and the full credential data.

To Install:

  • Installclaude mcp add --transport http blackdome https://api.blackdome.ai/mcp
  • Install, local: uvx blackdome-mcp (the package is blackdome-mcp on PyPI, version 0.5.4). Works with Claude, Cursor and other MCP clients.
  • Try asking "Has 103.216.126.99 attacked anyone? What did it try?"

I spent a year building this application casually; I hope it proves useful or interesting to some of you.

Link will be in the first comment.


r/mcp • • 19h ago

showcase I built BotPings: MCP alerts that can ring your iPhone when an agent needs help

Thumbnail
gallery
2 Upvotes

I'm the developer of BotPings, a free iPhone app with a remote MCP server.

It's for leaving an agent on a long task without babysitting the terminal. Routine updates can stay silent. Urgent alerts can ring your phone and escalate to a teammate if nobody taps "I'm on it".

For example:

Work through the migration. Keep progress updates quiet. Alert me urgently if it fails.

It can also catch an agent that stops reporting: start_task_watch sets a deadline, touch_task_watch reports progress, and finish_task_watch closes it. A missed deadline raises an alert.

Connect an OAuth-capable MCP client at https://botpings.com/mcp, then review and approve its access on your iPhone.

The app needs iOS 18+. System alarms need iOS 27+ and Alarms permission. On older versions it uses notifications. Delivery depends on Apple, connectivity and phone settings.

App Store

Setup and MCP tools

What would you want your agent to wake you for?