mastyf.ai MCP Server
Runtime proxy for MCP security, cost governance & audit
mastyf.ai scores 70 (Good), licensed AGPL-3.0 and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under AI and memory. GitHub shows 23 stars. Package registries report about 51 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: agpl-3.0.
License, quality and maintenance
License: Grade C
AGPL-3.0 is a strong copyleft license: derived works must use the same license.
How license is gradedQuality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 70 comes from
22 + 20 + 7 + 10 + 4 + 7 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 7 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "mastyf-ai-mastyf-ai": { "command": "npx", "args": [ "-y", "@mastyf_ai/server@4.1.12" ], "env": { "MASTYF_AI_DB_PATH": "~/.mastyf-ai/history.db", "ALERT_WEBHOOK_URL": "YOUR_ALERT_WEBHOOK_URL", "METRICS_ENABLED": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
MASTYF_AI_DB_PATH | Optional | Path to SQLite history database |
ALERT_WEBHOOK_URLSecret | Optional | Slack or Discord webhook for critical alerts |
METRICS_ENABLED | Optional | Expose Prometheus metrics |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
AI agents read your files, run shell commands, push code and call APIs, on their own and at machine speed. One poisoned web page or tool result can steer them into something you never asked for. Mastyf sits between your agent and its tools and checks every call before it runs. The agent still decides what it wants to do; Mastyf decides whether it reaches the real world.
- On your machine. It runs locally, with no account and nothing sent anywhere.
- Before the call. A blocked call never runs: 0 bytes reach the tool, and the agent gets the reason.
- In plain view. Every decision is recorded and shown in a local dashboard, live.
[!NOTE] The first two results use Protocol X, the model in the paid Shield plan, and come from the paper. The other three are the free rules, measured on this repository. How each was measured ↓
Start here
| You are | Start with | Time |
|---|---|---|
| A developer using Claude Code, Cursor, VS Code or another agent | Quick start, then turn on protection | 3 min |
| A security lead deciding whether to trust it | How it decides, Results, Free and Shield | 5 min |
| A security researcher who wants to break it | Try an attack against Protocol X, Threat Lab, Security Swarm | 10 min |
| Running agents for a team | Enterprise deployment: Redis, Postgres, Helm, Google Agent Gateway | |
| A contributor | CONTRIBUTING.md | |
| Someone who found a vulnerability or a bypass | Report it privately, never in a public issue: SECURITY.md or mastyf.support@gmail.com | |
| Someone who tried it | We'd love your review: mastyf.support@gmail.com |
See it work
Quick start
You need Git and Node.js 20 or newer. Mastyf uses pnpm, which comes with Node through Corepack. Ollama is optional and only needed for Threat Lab.
git clone https://github.com/mastyf-ai/mastyf.ai.git
cd mastyf.ai
corepack enable # makes the pnpm command available
pnpm install # about two minutes the first time
pnpm dashboard:proxy # starts Mastyf and the dashboard
Open http://localhost:4000 and sign in as below. The repository ships prebuilt server code (dist/) and a prebuilt dashboard, so there is nothing to build. After changing the source, run pnpm build, and pnpm dashboard:build for the dashboard.
pnpm dashboard:proxy runs a small shell script, so start it from Git Bash (installed with Git for Windows). From PowerShell or Command Prompt, run the same thing directly:
node dist/cli.js start --policy default-policy.yaml --blocking-mode block
If corepack enable asks for administrator rights, run corepack pnpm install and corepack pnpm dashboard:proxy instead.
./setup.sh installs Nix if needed, enables flakes, installs every dependency, builds the project and adds a mastyf shell alias, which starts the same thing as pnpm dashboard:proxy.
chmod +x setup.sh && ./setup.sh
- Creates
~/.mastyf/dashboard_api_key, your dashboard key, readable only by you. - Stores history and accounts in
~/.mastyf-ai/history.db. - Starts Fleet Hub: one checkpoint for each server config in the top level of
mastyf-ai-configs/, on local ports 9101 and up. The examples inmastyf-ai-configs/examples/are not started; copy one up a level to use it. - Lists the AI agents on this computer and their MCP servers. It reads names only and changes nothing until you turn protection on.
Sign in for the first time
The dashboard always asks you to sign in, even on your own computer, so no other program on the machine can read your agents' activity.
| Step | What to do |
|---|---|
| 1. Start Mastyf | In the mastyf.ai folder, run pnpm dashboard:proxy (on Windows, from Git Bash, or node dist/cli.js start --policy default-policy.yaml --blocking-mode block from PowerShell). Leave this terminal open: the dashboard runs only while it does. |
| 2. Get your key | In a second terminal, in the same folder, run pnpm dashboard:key. It prints the key Mastyf created the first time it started, and where it is stored. Treat it like a password. |
| 3. Create your account | Open http://localhost:4000, paste the key, then choose a username, email and password (12 characters or more, with upper and lower case, a number and a symbol). You land on Home, signed in. |
| Next time | Run pnpm dashboard:proxy again, open http://localhost:4000 and sign in with the key or your username and password. Other people can get accounts under Settings, Users. |
| Problem | What to do |
|---|---|
| "That API key does not match this dashboard" | Copy the key again with pnpm dashboard:key, the whole line with no spaces. On Windows you can also run Get-Content "$HOME\.mastyf\dashboard_api_key"; on macOS or Linux, cat ~/.mastyf/dashboard_api_key. |
| You forgot your password | Sign in with the API key. In Settings, Users, choose Reset password on your account, sign out, sign in with the temporary password it shows, then pick a new one. |
| You lost the key file | Delete ~/.mastyf/dashboard_api_key and restart Mastyf. A new key is created; your account and history are kept. |
| "Create the first administrator account before signing in with the API key" | Nobody has finished setup yet. Open http://localhost:4000 and do step 2. |
| The page says the Mastyf service is not answering | Mastyf is not running. Start it with pnpm dashboard:proxy and refresh. |
Connect your agents
Open Home and turn Protection on. Mastyf finds the MCP servers of Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and Cline, has them start through its proxy, and keeps watching: a server you add next week is protected within seconds. Restart an agent after its settings change.
stateDiagram-v2
direction LR
[*] --> Off
Off --> On: turn on
On --> On: new server found, protected by itself
On --> Off: turn off, every setting put back
Off: Off · agents are listed, nothing is changed
On: On · every call is checked and recorded
| What happens | |
|---|---|
| Turning on | Backs up each agent's settings file next to it, then points its local MCP servers at the proxy. Other settings stay as they are. |
| While on | Checks the settings files every few seconds and protects anything new. The choice survives a restart of Mastyf. |
| Turning off | Puts the original server entries back. Entries you changed yourself in the meantime are left alone. |
| Left as they are | Servers already behind another Mastyf (such as the Shield app), remote URL servers, servers inside a Claude Code project, and servers that use agent variables such as ${workspaceFolder}. |
[!TIP] Adding a server to Claude Code? Use the user scope, so protection picks it up within seconds:
claude mcp add --scope user files -- npx -y @modelcontextprotocol/server-filesystem ~/projects. Servers added with the default scope belong to one project and are left as they are.
From the command line, node dist/cli.js connect and node dist/cli.js disconnect do the same once. For an agent Mastyf does not know, node dist/cli.js connect --print-config <name> --command "<server command>" prints the entry to paste into its settings.
[!TIP] Which files can a connected agent reach? Only the folders named in the server's own arguments, plus
/home,/tmp,/workspaceand/app. Paths with.., and links that lead out of those folders, are refused. Key files,.env,.ssh,.awsand other credential files are refused everywhere. SetMASTYF_AI_ALLOWED_PATHS(for exampleD:/data/*,D:/work/*) to use your own list.
How it decides
sequenceDiagram
autonumber
participant A as Your agent
participant M as Mastyf
participant T as MCP server
participant D as Dashboard
A->>M: read_text_file("notes.txt")
M->>M: check arguments against your policy
M->>T: allowed, forwarded
T-->>M: file contents
M->>M: check the result too
M-->>A: file contents
M-)D: recorded as allowed
A->>M: read_text_file(".ssh/id_rsa")
M--xA: blocked, the server never sees it
M-)D: recorded as blocked, with the rule
What it stops
| Threat | What it looks like |
|---|---|
| Prompt injection | Instructions hidden in tool arguments or results that hijack the agent |
| Path traversal | Reads of /etc/passwd, .ssh/id_rsa, .aws/credentials |
| Secret exfiltration | API keys and tokens leaking out through tool arguments |
| Shell injection | Reverse shells, rm -rf, encoded PowerShell |
| Data exfiltration | Bulk SQL dumps, git push, aws s3 cp, unapproved uploads |
| SSRF | Calls to cloud metadata endpoints, localhost and private IP ranges |
| Encoding evasion | Base64 blobs and Unicode look-alikes used to slip past patterns |
| Cost abuse | Runaway agent loops burning through token budgets |
| Rug-pull attacks | Tool definitions that quietly change mid-session |
The dashboard
Three tabs, like the Shield app: Home, Security Center (Activity, Security, Threat Lab, Policy, Logs) and Engineering (overview, MCP servers, cost, compliance, settings). Press Ctrl K (⌘ K on a Mac) to jump to any page by name. Dark by default; the light theme is one click away.
| Page | What you can do there |
|---|---|
| Activity | Live feed of every tool call, the full audit trail with filters, traffic analytics and infrastructure health |
| Security | Security posture, Threat Lab, threat intel, vulnerability discovery, the attack swarm, AI learning, quarantine, threat feeds |
| Policy | Active rules (switch any rule on or off), the YAML editor with hot reload, test any tool call, policy eval, corpus review, and version history with a diff and one-click restore |
| MCP Servers | Inventory, health and latency, certifications, and the tool registry |
| Cost | Token usage and spend per server and tool, and a monthly budget with an alert threshold |
| Compliance | Posture against compliance frameworks, and the evidence files behind it to download |
| Logs | Event log, system log and retention |
| Settings | Users, groups, roles, SSO, security settings, hooks, the audit log, your profile, cloud link, and the status of block alerts (Slack, PagerDuty, any webhook) and SIEM export (Splunk, Elastic, OpenTelemetry, syslog) |
Everything on the page updates by itself while it is open. Read the same figures from a script:
curl -s -H "Authorization: Bearer $(cat ~/.mastyf/dashboard_api_key)" http://localhost:4000/api/protection
Try an attack against Protocol X
Protocol X is the decision model inside Shield. It reads each tool call and result in context and catches attacks that fixed rules miss. The playground on Home lets you try it: pick what the attacker wants and how they hide it, then send it through.
- Your rules check the payload live, on your computer, with your own policy. This is the free policy engine.
- Protocol X shows the verdict it gave on that exact text in Mastyf's red-team runs: the probability of an attack and the time it took on a laptop CPU. Every example is a recorded run.
- Edit the text and your rules still check it live. Protocol X reads text it has never seen only inside Shield.
Below the playground, pick an everyday task (summarize a web page, debug a config error, fix a failing test) and watch an attack ride along with it, next to the Shield layer that stops it: DIFC taint tracking, the causal gate or the argument-intent auditor.
Results
| Measure | Result | Source |
|---|---|---|
| Attack defense, AgentDojo | 99.52% | Paper, 629 interactive episodes |
| Attack defense, InjecAgent | 98.43% | Paper, 4,216 benchmark instances |
| Novel red-team attacks tested | 777 | Mastyf red-team suite, none in the model's training data |
| Ordinary tool calls allowed | 40 of 40 | Benign corpus scored on the same day |
| Rule check, median | about 1.5 ms | Laptop CPU, 95th percentile about 5 ms |
| Local corpus, rules only | 287 of 287 attacks blocked, 86 of 86 harmless allowed | node --import tsx corpus/run-eval.ts on this repository. |
| Bytes reaching a tool on block | 0 | Complete mediation |
Where Mastyf sits
The proxy supports five transports: stdio, HTTP, SSE, streamable HTTP and WebSocket. For Redis, Postgres and Kubernetes see docs/ENTERPRISE_DEPLOYMENT.md.
Two swarms work together. The CI Swarm attacks the policy before code ships; the Runtime Swarm enforces and learns from every live call. Four feedback loops connect them. Run Analysis in the dashboard runs the parts that test your own install and policy, in about a minute and a half.
flowchart TB
AI["AI clients<br/>Claude Code, Cursor, Cline"]
subgraph CI["CI Swarm (pull requests and nightly)"]
direction LR
Scout["Scout<br/>SAST, deps, config"]
Corpus["Corpus<br/>attack fixtures"]
Evasion["Evasion<br/>120+ probes"]
Parity["Parity<br/>Node vs Python"]
ProxyA["Proxy<br/>live MCP tests"]
Report["Report<br/>latest.json"]
Scout --> Corpus --> Evasion --> Parity --> ProxyA --> Report
end
subgraph Runtime["Runtime Swarm (inside the proxy)"]
direction LR
BG["BlockGuard<br/>synchronous policy"]
IL["InstantLearner<br/>per-block stats"]
SA["SemanticAuditor<br/>optional model"]
PS["PatternSynthesizer<br/>suggestions"]
Cal["Calibrator<br/>labels, thresholds"]
BG --> IL --> PS --> Cal
BG --> SA --> PS
end
Tools["MCP tools<br/>files, GitHub, databases, APIs"]
AI -->|every tool call| BG
BG -->|allowed| Tools
Report -->|"A: bypasses to corpus"| Corpus
Cal -->|"B: blocks to rules"| BG
Cal -->|"C: labels to the model"| SA
Report -->|"D: weekly CI metrics"| Cal
style CI fill:#151518,stroke:#b49a5e,color:#f7f7f3
style Runtime fill:#151518,stroke:#7fd28e,color:#f7f7f3
| CI agent | What it does |
|---|---|
| Scout | SAST scan, dependency audit, config review |
| Corpus | Runs every attack and harmless fixture in corpus/ (373 today) against the current policy |
| Evasion | Runs 120+ bypass probes and generates new ones with a model |
| Parity | Checks the Node and Python engines make identical decisions |
| Proxy | Live stdio MCP session tests against a running proxy |
| Report | Writes security-swarm/latest.json with full results |
| Runtime component | What it does |
|---|---|
| BlockGuard | Enforces the active policy synchronously on every call. Fail-closed. |
| InstantLearner | Tracks per-block statistics and suggests rules as they emerge |
| SemanticAuditor | Optional async model review of calls that pass the patterns but look suspicious |
| PatternSynthesizer | Batches suggestions into candidate rules |
| Calibrator | Labels candidates, tunes thresholds and promotes approved rules into BlockGuard |
| Loop | Signal | Effect |
|---|---|---|
| A | CI finds a bypass | Added to the corpus; CI guards against it from then on |
| B | Runtime block pattern | Turned into a new rule and promoted to BlockGuard |
| C | Calibrator label | Used to tune the SemanticAuditor's thresholds |
| D | Weekly CI metrics | Update runtime config so CI and production stay in step |
Threat Lab
Threat Lab uses a local AI model to invent new attack tests from what it sees, and turns them into proposed rules. Nothing is applied by itself: you review every suggestion in Security Center, Threat Lab, and approved ones feed the attack corpus.
[!IMPORTANT] Threat Lab needs Ollama on your computer. It is free and runs the model locally, so nothing is sent anywhere. Until it is ready, the Threat Lab page shows these steps and ticks them off as you go. Everything else, including Run Analysis, works without it.
| Step | Windows | macOS | Linux |
|---|---|---|---|
| 1. Install | winget install Ollama.Ollama | brew install ollama | curl -fsSL https://ollama.com/install.sh | sh |
| 2. Start | open the Ollama app, or ollama serve | ollama serve | ollama serve |
| 3. Download the model, once | ollama pull qwen3:8b | ollama pull qwen3:8b | ollama pull qwen3:8b |
flowchart LR
B["Blocked calls and<br/>missed attacks"] --> O["Local model<br/>in Ollama"]
O --> C["Proposed attack test<br/>and rule"]
C --> V["Checked automatically"]
V --> R{"You review it"}
R -->|accept| P["Added to your policy"]
R -->|reject| X["Discarded"]
pnpm dashboard:proxy points Mastyf at http://127.0.0.1:11434. Set OLLAMA_BASE_URL or MASTYF_AI_LLM_MODEL before starting to use another address or model.
Policy
Your rules live in default-policy.yaml. You own them; Mastyf enforces them. Edit them in the dashboard (Policy, Policy Editor) or any text editor; changes reload by themselves, and every save from the dashboard is kept in Version history.
policy:
mode: block
default_action: pass
unicode_strict: true
rules:
- name: block-sensitive-paths
action: block
argPatterns:
- field: path
patterns: ['^/etc/', '/\.ssh', '/\.aws/credentials']
- name: rate-limit-tool-calls
action: block
maxCallsPerMinute: 120
- name: block-shell-injection
action: block
patterns: ['rm\s+-rf', 'curl\s', 'wget\s', '`[^`]+`']
| Mode | What it does | When to use it |
|---|---|---|
audit | Logs everything, blocks nothing | First week: learn what your agents do |
warn | Logs and flags, still forwards | Tuning before you enforce |
block | Stops violations before they run | Day to day |
Templates for HIPAA, PCI-DSS, GxP and data residency are in policy-templates/.
Free and Shield
Everything in this repository is free and open source under AGPL-3.0 and runs on your own machines, with no account. The paid Mastyf Shield plan adds the desktop app, Protocol X and the layers that need Mastyf's servers.
| Free | Shield | |
|---|---|---|
| Policy engine: blocked paths, secret and data-leak patterns, injection patterns, tool fingerprints (about 1.5 ms per call) | ✓ | ✓ |
| This local dashboard, with the protection switch for your agents' MCP servers | ✓ | ✓ |
| Security Swarm, Run Analysis and Threat Lab attack tests | ✓ | ✓ |
Python library (pip install mastyf-ai) with LangChain and OpenAI Agents adapters | ✓ | ✓ |
| Check service any agent in any language can call | ✓ | ✓ |
| GitHub Copilot hooks | ✓ | ✓ |
| Shield desktop app: finds your agents and protects them with no code changes | ✓ | |
| Automatic protection for Claude Code, Cursor and VS Code, including the agent's own shell commands and file reads | ✓ | |
| Protocol X model checks on calls your rules allow | ✓ | |
| DIFC taint tracking: untrusted data cannot flow out | ✓ | |
| Argument-intent auditor: arguments must match what you asked for | ✓ | |
| Causal gate: stops calls set off by untrusted content instead of by you | ✓ | |
| mastyf.ai dashboard and hosted check API | ✓ |
Plans and prices: mastyf.ai/pricing.
[!NOTE] Enterprise and cloud: Mastyf runs as a native
CONTENT_AUTHZService Extension for Google Cloud Agent Gateway (us-central1), with distributed Redis state, sub-second fail-closed enforcement and BigQuery audit logging. See the Google Agent Gateway runbook.
More tools
A separate Python package runs the reference monitor, MCP discovery and a plain-English protected agent:
cd mastyf_gateway
pip install -e .
mastyf # first run: discovers your tools, asks what to allow, then starts the agent
| Command | What it does |
|---|---|
mastyf -m "Find unpaid customer invoices" | Run one query without the interactive prompt |
mastyf policy "Allow reading invoices, but never delete data or make HTTP calls" | Propose a policy change in plain English |
mastyf policy status | Compare the proposed policy with the active one |
mastyf policy activate | Make the proposed policy active |
mastyf proxy -- uvx mcp-server-sqlite --db /tmp/test.db | Put Mastyf in front of any MCP server over stdio |
mastyf audit verify --ledger ~/.mastyf/receipts.jsonl | Verify the tamper-evident receipt ledger |
mastyf demo --scenario all | Run the action-boundary failure demonstrations |
Every non-allowed action dispatches 0 bytes to the tool backend, and every decision gets a signed receipt.
Before installing an MCP server from npm, check its trust score at mastyf.ai/certified: known CVEs, typo-squat risk, maintainer signals and known attack patterns. Free, no account needed.
Reference
| Command | What it does |
|---|---|
pnpm dashboard:proxy | Start Mastyf (Fleet Hub) and the dashboard on port 4000 |
pnpm dashboard:key | Print your dashboard API key and where it is stored |
pnpm dashboard:key --path | Print only where the key file is |
node dist/cli.js start | The same start-up, without the shell script (handy on Windows) |
node dist/cli.js connect / disconnect | Route your agents' MCP servers through Mastyf, or put them back |
node dist/cli.js doctor | Check the database, policy and environment |
node dist/cli.js scan --all | Scan MCP configs for CVEs and injection risks |
pnpm dashboard:build | Rebuild the dashboard after changing its source |
pnpm build | Rebuild the server after changing its source |
pnpm test | Run the full test suite |
pnpm security-swarm:fast | Quick security regression, 5 to 15 minutes |
pnpm security-swarm:analyze | Full adversarial analysis |
Set these in the environment before starting Mastyf. All are optional.
| Variable | Default | What it does |
|---|---|---|
DASHBOARD_PORT | 4000 | Port of the dashboard and its API |
MASTYF_HOME | ~/.mastyf | Folder that holds dashboard_api_key |
MASTYF_AI_DB_PATH | ~/.mastyf-ai/history.db | History and accounts database. The proxy and the dashboard must use the same one. |
MASTYF_AI_ALLOWED_PATHS | folders named by each server | Folders connected agents may reach, comma separated, * as a wildcard |
MASTYF_AI_COST_BUDGET_USD | none | Monthly spend budget. A budget saved in Cost, Budgets overrides it. |
ALERT_SLACK_WEBHOOK, ALERT_PAGERDUTY_KEY, ALERT_GENERIC_WEBHOOK | none | Where block alerts are sent |
MASTYF_AI_SIEM_ENABLED, MASTYF_AI_SIEM_PROTOCOL, MASTYF_AI_SIEM_ENDPOINT | off | Forward every decision to your SIEM (cef, syslog or splunk-hec) |
MASTYF_AI_CONTROL_PLANE_URL, MASTYF_AI_CLOUD_API_KEY, MASTYF_AI_TENANT_ID | none | Link this install to your mastyf.ai workspace. See Connect. |
OLLAMA_BASE_URL, MASTYF_AI_LLM_PROVIDER, MASTYF_AI_LLM_MODEL | http://127.0.0.1:11434 and qwen3:8b | Local model for Threat Lab and semantic review |
DASHBOARD_AUTH_DISABLED | false | Turns off dashboard sign-in. Only for isolated local tests; refused on any address other than localhost. |
| Problem | Fix |
|---|---|
| Sign-in problems | See If something goes wrong |
| Dashboard shows no data | The proxy and the dashboard must share the same MASTYF_AI_DB_PATH (default ~/.mastyf-ai/history.db). Numbers also depend on the period picked on the page. |
| Home says protection is on but nothing appears | Restart the agent so it starts its servers through Mastyf, then use a tool. |
| Port 4000 is already in use | Stop the other program, or start with DASHBOARD_PORT=4100 pnpm dashboard:proxy |
pnpm: command not found | Run corepack enable, or put corepack in front of each pnpm command |
sh: command not found on Windows | Start from Git Bash, or use node dist/cli.js start --policy default-policy.yaml --blocking-mode block |
dist/cli.js not found | Run pnpm build |
| Threat Lab says it needs Ollama | Follow the three steps in Threat Lab. The page updates by itself when Ollama is ready. |
npm install fails | Use pnpm install; the npm package is not published yet |
Learn more
Enterprise deployment · Dashboard runbook · Defense pipeline in depth · Security Swarm · Real-world MCP integration · Core detection engine
Research paper and citation
If you use Mastyf Guard, its benchmark method or the Cognitive Harvard Architecture in research or production, please cite the open-access paper:
Das, R. (2026). Cognitive Harvard Architectures for AI Agent Perimeter Defense: Resolving the Confused Deputy Problem in Model Context Protocol via Capability-Based Access Control. Zenodo. doi: 10.5281/zenodo.22179415.
@article{das2026cognitive,
title={Cognitive Harvard Architectures for AI Agent Perimeter Defense: Resolving the Confused Deputy Problem in Model Context Protocol via Capability-Based Access Control},
author={Das, Rudraneel},
journal={Zenodo},
year={2026},
doi={10.5281/zenodo.22179415},
url={https://doi.org/10.5281/zenodo.22179415}
}
Frequently asked questions
What is mastyf.ai MCP Server?
Runtime proxy for MCP security, cost governance & audit
How do I install mastyf.ai MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mastyf.ai MCP Server runs locally from the npm package @mastyf_ai/server with the command npx -y @mastyf_ai/server@4.1.12.
Is mastyf.ai MCP Server free and open source?
Yes. mastyf.ai MCP Server is released under the AGPL-3.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mastyf.ai MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mastyf.ai MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is mastyf.ai MCP Server's trust score calculated?
mastyf.ai MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.