程序员努力
AI导航AI编程实战PromptMCP市场Skills市场

程序员努力

AI 编程资源库 - 聚合 AI 编程教程、提示词、MCP 与 Skills 资源

内容栏目

  • AI导航
  • AI编程实战
  • Prompt
  • MCP市场
  • Skills市场
  • 全站搜索

教程分类

  • 进阶技巧
  • 入门指南
  • 最佳实践
  • Claude Code
  • Cline教程
  • GitHub Copilot
  • Cursor教程
  • 提示词工程

关于

  • 关于我们
  • GitHub

© 2026 程序员努力. All rights reserved.

冀ICP备15004808号-7

首页教程PromptMCPSkills
← 返回MCP市场
m

mcp-use

社区使用中

by mcp-use

mcp-use 是一个全栈 TypeScript 框架,用于构建、测试和部署 MCP 服务器、ChatGPT 插件及 Claude 连接器。它提供完全类型化的 Zod schema 流、原生 React Views 绑定、内置 Inspector 调试工具,并支持 Agent-first 的无头开发模式,可显著提升 MCP 应用的开发效率。

开发工具Stdio(本地命令行)TypeScript

安装配置

将以下配置添加到你的 AI 编程助手中

预览配置(粘贴到 claude_desktop_config.json 或 Cursor 设置中)

{
  "mcpServers": {
    "mcp-use": {}
  }
}

启动命令

npx -y create-mcp-use-app@latest

JSON配置

{}

描述

mcp-use

用于 MCP 的 TypeScript 框架

构建、测试并交付 MCP 服务器、ChatGPT 插件和 Claude 连接器

完全类型化,原生支持 Views 和 MCP Apps,内置 Inspector,并提供一流的 Agent 体验。

文档 · Inspector · 示例 · 部署

npm version npm downloads made by manufact.com MIT license Discord

[!NOTE] 正在从 v1 迁移?把它交给你的 agent:

Migrate this mcp-use project to v2 following
https://docs.mcp-use.com/v2/typescript/server/migration

阅读迁移指南 →

快速开始

从你的 Agent 开始

Build an MCP server: https://mcp-use.com/prompt.md

阅读提示词 →

从代码开始

npx -y create-mcp-use-app@latest

在生成的项目中运行 npm run dev · 打开 http://localhost:3000/mcp/inspector

TS 文档

交付 MCP 所需的一切

| 完全类型化 | 原生 Views | | --- | --- | | Zod schema 从工具流向结构化结果、View props 和工具调用。 | 将 React Views 直接绑定到工具,无需自定义扩展接线即可交付交互式应用。 | | Agent 优先且无头(headless) | 内置调试工具 | | 通过你的 agent 完成脚手架搭建、调用、检查、截图和部署。 | 在浏览器中或通过 CLI 以无头方式检查工具和 Views。 |

快速入门

脚手架为你提供服务器、TypeScript 配置、开发脚本、Inspector 和 React 视图管道。启动一次后,MCP 端点还会提供一个客户端就绪的落地页,其中包含连接 URL 和设置说明。

用如下绑定视图的工具替换其中的 index.ts:

index.ts — 服务器入口文件,用于工具定义和元数据

import { MCPServer } from "mcp-use";
import { z } from "zod";

const server = new MCPServer({
  name: "weather-app",
  title: "Weather App",
  version: "1.0.0",
});

const weatherInput = z.object({
  city: z.string().describe("City to look up"),
});

const weatherOutput = z.object({
  city: z.string(),
  temperature: z.number(),
  conditions: z.string(),
});

export const getWeather = server.tool(
  {
    name: "get-weather",
    title: "Get weather",
    description: "Get the current weather for a city",
    inputSchema: weatherInput,
    outputSchema: weatherOutput,
    view: { name: "weather-card" },
    annotations: {
      readOnlyHint: true,
      destructiveHint: false,
      openWorldHint: true,
    },
  },
  async ({ city }) => {
    const weather = {
      city,
      temperature: 22,
      conditions: "Sunny",
    };

    return {
      content: [
        {
          type: "text",
          text: `Weather in ${city}: ${weather.conditions}, ${weather.temperature}°C`,
        },
      ],
      structuredContent: weather,
    };
  },
);

export default server;

探索 MCP 服务器工具 →

为你的工具添加 Views

创建 views/weather-card/view.tsx。目录名称与工具上的 view.name 匹配:

统计信息

10k

星标

1.4k

Fork

TypeScript

语言

2026/8/17

更新

MIT

开源协议

标签

MCP框架TypeScriptMCP服务器AI代理开发工具Claude

链接

主页GitHubMIT

相关服务器

i

inspector

MCP Inspector 是用于检查 Model Context Protocol (MCP) 服务器的可视化测试工具,以单一包 @modelcontextprotocol/inspector 提供 Web、CLI 和 TUI 三种交互方式,统一通过 mcp-inspector 命令启动。它支持 OAuth 认证、客户端配置管理、状态存储与多种传输协议,适合开发者在本地调试、

开发工具Stdio11k
F

Figma-Context-MCP

Figma-Context-MCP 是一个基于 Model Context Protocol 的服务器,用于向 Cursor 等 AI 编程工具提供 Figma 布局信息。它通过简化 Figma API 响应,仅向模型传递最相关的布局和样式数据,从而提升 AI 一次性实现设计稿的准确性和相关性。支持通过 npx 快速配置,适用于 MacOS、Linux 和 Windows 环境

开发工具Stdio16k
f

fastmcp

FastMCP 是一个基于 Python 的 MCP(Model Context Protocol)应用框架,用于快速构建 MCP 服务器、客户端和交互式应用。它通过简单的 Python 函数声明即可自动生成 schema、验证和文档,并内置了传输协商、认证和协议生命周期管理等最佳实践。FastMCP 1.0 已被官方 MCP Python SDK 采纳,目前每天下载量达百万次

开发工具Stdio27k
f

firecrawl-mcp-server

Firecrawl MCP Server 是 Firecrawl 官方推出的 Model Context Protocol 服务器,为 Cursor、Claude 等 MCP 兼容的 AI 客户端提供强大的网页抓取与搜索能力。它支持将任意 URL 抓取为干净的结构化数据、搜索网页及面向编码代理的索引(如 GitHub issues、PR、README),并支持页面交互、深度研究

开发工具Stdio7.2k