Explainers

Check a skill or MCP server before installing

A ten-minute check for any skill or MCP server, covering who made it, what it runs, what it can reach, and how to limit the damage if you are wrong.

3 min read · Updated

When you install a skill or an MCP server, your agent runs someone else's code or follows someone else's instructions with your permissions. Most of them are fine. You can catch the bad ones in about ten minutes, and you can limit what a bad one can do.

The risk is real. In February 2026, Snyk scanned 3,984 public agent skills and found 534 of them, 13.4%, with at least one critical security issue, and 76 malicious payloads built to steal credentials, install backdoors or send data out.

1. Check who made it

Look at who owns the GitHub repo. A server for Stripe from Stripe's own GitHub account is a different bet from one by a stranger with two weeks of history. On AgentDuck, an Official label means the publisher is the company behind the product.

For MCP servers, compare the package in the install command with the repo. If the README says npx -y firecrawl-mcp, the npm package firecrawl-mcp should link back to the same repo. A package name one letter off from a popular one is a classic trick.

2. Read what it runs

For an MCP server, the install command tells you what starts on your machine:

  • npx downloads a package from npm and runs it. -y skips the "install this?" question.
  • uvx does the same for Python packages.
  • A package ending in @latest can pick up a newer version when it restarts. If you want to read the code once and keep it that way, pin a version number instead.

For a skill, open SKILL.md and read it. It is plain instructions to your agent, so you will spot odd ones quickly. Then open every file in its scripts folder.

3. Look for these in the code

  • Network calls like curl, fetch or requests. Fine for a search tool, odd for a skill that formats Word documents.
  • Reading secrets such as environment variables, ~/.ssh or ~/.aws. A server needs its own API key. It should not need yours for other services.
  • Encoded or packed code, like long base64 strings or eval. There is sometimes a reason, but you should know what it is before you run it.
  • Instructions to hide things. A SKILL.md that tells the agent not to mention something to you, or to skip asking before it acts, is a red flag every time.

AgentDuck's "What it can do" panel on each listing runs these checks for you and links each finding to the exact file and line. It never says "safe", because a pattern check can miss things. Use it to know where to look. How we check explains each label.

4. Give it as little access as you can

If something does go wrong, the access you gave decides how bad it gets.

  • Files. The Filesystem server only reaches the folders you list when you start it. List one project folder, not your home folder.
  • GitHub. Use a fine-grained token limited to the repos the agent needs, with read-only access unless it has to write.
  • Databases. Connect with a read-only database user when the agent only needs to look.
  • Payments. Stripe lets you create restricted keys and test-mode keys. Start in test mode.

5. Remember what hosted servers can see

A hosted MCP server runs on the publisher's computers. Everything your agent sends to it goes to them, and you can't read the code that runs there. Use hosted servers from companies you already trust with that data, which usually means the company whose product it connects to.

6. Keep the approval prompts on

Claude Code, Cursor and Codex can all ask before the agent uses a tool. Leave that on for anything that writes, deletes, pays or sends. Auto-approve only tools that read.

7. Check again after updates

A repo can change after you install from it. When a skill or server updates, look at what changed, especially new scripts or new network calls. Each AgentDuck listing shows when we last read its source.

8. Check a repo before you open your agent in it

A project you clone can bring its own agent setup with it. In Claude Code, that's a .mcp.json file listing MCP servers and a .claude/settings.json file that can define hooks, commands that run automatically at set moments. Before you start your agent inside a repo you didn't write, open those two files and read what they would run. The same goes for a .claude/skills/ folder in the repo.