Token导航 LogoToken导航

Agent Skill · 研究检索

mcp(MCP 搜索)

mcp 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

mcp 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 68,166。

总安装 235周安装 10GitHub Stars 3下载 82核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mcp(MCP 搜索)
来源仓库:https://github.com/iuliandita/skills
仓库路径:skills/mcp
安装命令:
npx skills add https://github.com/iuliandita/skills --skill mcp
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/iuliandita/skills --skill mcp

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

mcp 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。通过 npx 命令从 GitHub 安装,需确认权限范围和是否触发文件读写操作。建议结合原始 README 核验具体用法,并关注维护状态与联网行为。

使用前请评估是否会执行命令或修改文件,避免意外影响项目结构。

来源仓库内路径:skills/mcp

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/iuliandita/skills --skill mcp;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

mcp 怎么安装?

在终端执行 npx skills add https://github.com/iuliandita/skills --skill mcp。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

mcp 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

mcp 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/iuliandita/skills --skill mcp 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

mcp 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

mcp 用的人多吗?

公开数据是累计安装 235 次,近一周安装 10 次,下载 82 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

mcp 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
mcp

MCP 搜索 · 本页

2353执行命令未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

MCP: Model Context Protocol Server Development

Build, review, and debug MCP servers that expose tools, resources, and prompts to AI coding assistants. The goal is secure, well-structured servers that follow the protocol spec and don't become yet another server with preventable injection vulnerabilities.

Target versions (April 2026):

  • MCP specification: 2025-11-25 (current stable; 2026-03-15 in draft)
  • TypeScript SDK: @modelcontextprotocol/sdk 1.29.0 (1.x stable; 2.0.0-alpha in dev)
  • Python SDK: mcp 1.27.0 (v1.26.0+)
  • Protocol transports: stdio, streamable HTTP (SSE deprecated in spec 2025-03-26)

When to use

  • Building a new MCP server (tools, resources, prompts)
  • Adding tool handlers to an existing MCP server
  • Configuring MCP transport (stdio for local, streamable HTTP for remote)
  • Implementing MCP authentication (OAuth 2.1)
  • Implementing MCP elicitation (interactive dialogs)
  • Reviewing MCP server code for injection or tool poisoning vulnerabilities
  • Debugging MCP connection issues between client and server
  • Migrating from a custom tool integration to MCP

When NOT to use

  • General REST API development that doesn't use MCP - just write the API
  • Claude API / Anthropic SDK usage in an application - use ai-ml
  • Security auditing existing servers across a codebase - use security-audit (it has an MCP section)
  • Using MCP browsing tools to browse or scrape web pages - use browse
  • Writing prompts for LLMs (not MCP prompt resources) - use prompt-generator

AI Self-Check

When generating or reviewing MCP server code, verify each item before presenting the result:

  • All tool handler inputs validated server-side (no raw string interpolation into shell commands, SQL, file paths, or URLs)
  • Tool descriptions accurate and concise (some clients truncate long descriptions)
  • Resource URIs use a defined scheme and are validated before use
  • Error responses use proper MCP error codes, not raw stack traces
  • Authentication implemented for remote transports that handle user data (OAuth 2.1 with PKCE)
  • No secrets hardcoded in tool handlers or server configuration
  • inputSchema uses specific JSON Schema types with required, maxLength, constraints
  • Server handles graceful shutdown (cleanup on SIGINT/SIGTERM)
  • Streamable HTTP: binds to 127.0.0.1 (not 0.0.0.0) when local
  • Streamable HTTP: validates Origin header (DNS rebinding prevention)
  • Rate limiting on tool invocations
  • Tool annotations treated as untrusted by client-side code
  • Elicitation does not request passwords, tokens, or secrets

Workflow

Build vs. Review: Steps 1-6 are for building new servers. When reviewing existing MCP server code: (1) scope using Step 1 questions - what tools, transport, and auth does the server use; (2) audit each tool handler against Step 3 injection vectors and the AI Self-Check; (3) cross-reference the Common Mistakes section for patterns AI models frequently introduce.

Step 1: Determine the server's purpose

Before writing code, clarify:

  • What tools will it expose? Each tool = one operation the AI can invoke.
  • What resources will it serve? Resources = read-only data the AI can access.
  • What transport? stdio for local CLI integration, streamable HTTP for remote/production.
  • What authentication? None for stdio. OAuth 2.1 recommended for remote servers handling user data.
  • What language? TypeScript (most mature SDK) or Python (simpler, FastMCP).

Step 2: Scaffold the server

TypeScript (recommended for production):

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";

const server = new McpServer({ name: "my-server", version: "1.0.0" });

server.tool(
  "search_docs",
  "Search documentation by keyword",
  { query: z.string().max(200).describe("Search query"), limit: z.number().int().min(1).max(100).default(10) },
  async ({ query, limit }) => {
    // If this tool reads files, apply path validation from Step 3 before any fs access.
    const sanitized = query.replace(/[^\w\s-]/g, "");
    const results = await searchIndex(sanitized, limit);
    return { content: [{ type: "text", text: JSON.stringify(results) }] };
  }
);

server.resource("config", "config://app/settings", async (uri) => ({
  contents: [{ uri: uri.href, mimeType: "application/json", text: JSON.stringify(config) }],
}));

const transport = new StdioServerTransport();
await server.connect(transport);

Python (FastMCP for quick prototyping):

import json, re
from mcp.server.fastmcp import FastMCP

mcp = FastMCP("my-server")

@mcp.tool()
def search_docs(query: str, limit: int = 10) -> str:
    """Search documentation by keyword."""
    sanitized = re.sub(r"[^\w\s-]", "", query[:200])
    return str(search_index(sanitized, min(limit, 100)))

@mcp.resource("config://app/settings")
def get_config() -> str:
    """Application configuration."""
    return json.dumps(config)

if __name__ == "__main__":
    mcp.run()

Step 3: Implement tools securely

Injection is the top MCP vulnerability class. Every tool handler is an attack surface.

The #1 rule: never interpolate user input into commands, queries, or paths.

Common injection vectors in MCP tools:

VectorBad patternSafe pattern
ShellInterpolated command stringsexecFile with argument arrays + path validation
SQLString concatenation in queriesParameterized queries with $1 placeholders
File pathsDirect readFile(userPath)Resolve path, validate prefix against allowlist
URLsDirect fetch(userUrl)Parse URL, validate scheme + host against allowlist
TemplatesDynamic code evaluationSandboxed template engine with no code execution

Path traversal prevention:

import path from "node:path";

function safePath(base: string, userInput: string): string {
  const resolved = path.resolve(base, userInput);
  if (!resolved.startsWith(path.resolve(base) + path.sep)) {
    throw new Error("Path traversal detected");
  }
  return resolved;
}

Before/after - applying safePath() to a vulnerable tool handler:

// BEFORE (vulnerable - user controls path directly)
server.tool("read_file", "Read a project file",
  { path: z.string() },
  async ({ path: filePath }) => {
    const data = await readFile(filePath, "utf-8"); // path traversal
    return { content: [{ type: "text", text: data }] };
  }
);

// AFTER (safe - resolved path validated against allowed base)
server.tool("read_file", "Read a project file",
  { path: z.string().max(500) },
  async ({ path: filePath }) => {
    const safe = safePath("/srv/project", filePath);
    const data = await readFile(safe, "utf-8");
    return { content: [{ type: "text", text: data }] };
  }
);

SSRF prevention (when tools fetch URLs from user input):

  • Block private IP ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
  • Block link-local: 169.254.0.0/16 (includes cloud metadata at 169.254.169.254)
  • Block loopback: 127.0.0.0/8
  • Require HTTPS in production
  • Pin DNS resolution between check and use (TOCTOU defense)

Step 4: Configure transport

TransportUse caseAuth neededNotes
stdioLocal tools, CLI integrationNoRuns as user's process. Most secure.
Streamable HTTPRemote/multi-client serversRecommendedSingle endpoint, POST for messages, optional SSE streaming.

SSE transport was deprecated in spec 2025-03-26. Use streamable HTTP for all remote servers. Auth is optional per spec but strongly recommended for servers handling user data. When implementing auth, use OAuth 2.1 with PKCE. Prefer Client ID Metadata Documents over Dynamic Client Registration (DCR is a fallback, not a requirement).

Streamable HTTP security:

  • Bind to 127.0.0.1 for local servers (never 0.0.0.0)
  • Validate Origin header on all requests (DNS rebinding prevention)
  • If using stateful sessions: MCP-Session-Id must be cryptographically random (UUID v4+)
  • Client sends MCP-Protocol-Version header (e.g., 2025-11-25)
  • Consider using createMcpExpressApp() / createMcpHonoApp() from the TS SDK for built-in DNS rebinding protection

Step 5: Handle elicitation safely

MCP elicitation lets servers request structured input from users mid-task.

Schema restrictions - elicitation schemas are limited to flat objects with primitive fields:

  • string (with optional format: email, uri, date, date-time)
  • number / integer (with minimum, maximum)
  • boolean
  • enum (string with enum; use anyOf with title for labeled choices)
  • array of enum strings (for multi-select)

No nested objects. Keep schemas simple for broad client support.

Security: never request credentials via elicitation. Clients should show which server is requesting input and allow decline/cancel at any time. Handle all three responses: accept (with data), decline, and cancel.

Step 6: Test the server

# Test with MCP Inspector (official debugging tool)
npx @modelcontextprotocol/inspector your-server-command

# Python alternative
uv run mcp dev server.py

Test each tool handler with: valid inputs (happy path), missing required fields, malicious inputs (injection, path traversal, oversized payloads), concurrent requests.

Read references/security.md for specific injection test payloads.


Tool Poisoning and Rug Pull Defense

These attacks target tool metadata, not tool execution.

Tool poisoning: malicious instructions hidden in tool description fields manipulate the AI model into exfiltrating data or calling unintended tools. Descriptions are visible to the model but often hidden from users in the UI.

Rug pull attacks: server changes tool definitions after initial approval - clean version during onboarding, malicious version later.

Server-side defenses:

  • Write clear, honest tool descriptions - no hidden instructions
  • Do not include executable logic or injection payloads in descriptions
  • Keep descriptions minimal and factual
  • Treat annotations as advisory (untrusted on the client side)

Client-side defenses (document for consumers of your server):

  • Display tool descriptions to users before granting access
  • Hash tool schemas at approval time; alert on changes between sessions
  • Limit cross-server tool access

Common Mistakes

AI models consistently make these errors when generating MCP server code:

  1. Shell commands via string interpolation - the #1 vulnerability. Always use argument arrays for system commands.
  2. Missing server-side validation - generating inputSchema but never validating against it in the handler. The client may skip validation.
  3. Bare "type": "string" in schemas - no maxLength, no pattern, no constraints. Accepts any string of any length.
  4. Binding HTTP to 0.0.0.0 - exposes local servers to the network. Use 127.0.0.1.
  5. No Origin header validation - enables DNS rebinding against local servers.
  6. Leaking error details - stack traces, file paths, or DB errors in tool responses.
  7. Token passthrough - accepting OAuth tokens meant for other services without audience validation.
  8. Hallucinating SDK methods - inventing API calls that don't exist. Verify every method against the actual SDK docs.
  9. Ignoring elicitation actions - handling accept but crashing on decline/cancel.
  10. No graceful shutdown - missing SIGINT/SIGTERM handlers on stdio servers.

Reference Files

  • references/security.md - OAuth 2.1 details, known CVEs, injection test payloads, SSRF prevention, session management, and tool poisoning defense

Related Skills

  • security-audit - for auditing MCP servers as part of a broader security review. The security-audit skill's ASI and MCP sections cover vulnerability patterns; this skill covers building servers correctly from the start.
  • code-review - for reviewing MCP server code for correctness beyond security.
  • docker - for containerizing MCP servers with minimal capabilities.

Rules

  1. Validate all tool inputs server-side. Never trust the client or model. Use schema validation (Zod, Pydantic) with explicit types, ranges, and constraints.
  2. No shell execution with string interpolation. Use argument arrays for system commands.
  3. Keep descriptions concise. Some clients truncate long descriptions. A few sentences covering what the tool does and its parameters - not implementation details.
  4. Authenticate when handling user data. Use OAuth 2.1 with PKCE for remote servers that access user data. Auth is optional per spec but strongly recommended.
  5. Return structured errors. MCP error codes + human-readable messages. No stack traces.
  6. Test with malicious inputs. Injection payloads, path traversal, oversized inputs.
  7. Bind local servers to 127.0.0.1. Never 0.0.0.0 for local-only servers.
  8. Validate Origin headers on all streamable HTTP requests.
  9. Handle shutdown gracefully. Register signal handlers. Clean up resources.
  10. Run the AI Self-Check. Every generated MCP server gets verified against the checklist.

平台分布

Codex

35.68%
按下载量换算29

Claude

30.62%
按下载量换算25

Cursor

18.68%
按下载量换算15

Gemini CLI

9.72%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/iuliandita/skills --skill mcp 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills