发现优秀的 MCP 服务器

通过 MCP 服务器扩展您的代理能力,拥有 23,467 个能力。

全部23,467
MCP-based Knowledge Graph Construction System

MCP-based Knowledge Graph Construction System

An automated system that processes raw text through a three-stage pipeline to assess data quality, enhance information, and generate structured knowledge graphs. It provides tools for triple extraction with confidence scoring and creates interactive HTML visualizations of the resulting graph.

Hello MCP Server 👋

Hello MCP Server 👋

一个简单的“Hello World”服务器,实现了模型上下文协议 (MCP)。

SCMCP

SCMCP

一个MCP服务器,可以通过自然语言实现单细胞RNA测序分析,支持数据处理、可视化和分析任务,无需编码知识。

HackerNews MCP Server

HackerNews MCP Server

Enables AI assistants to search, retrieve, and interact with HackerNews content including stories, comments, polls, and user information. Provides comprehensive access to all HackerNews API endpoints with 15 specialized tools for content discovery and analysis.

Chrome MCP Server

Chrome MCP Server

Transforms Chrome browser into an AI-controlled automation tool that allows AI assistants like Claude to access browser functionality, enabling complex automation, content analysis, and semantic search while preserving your existing browser environment.

Oura Ring MCP Server

Oura Ring MCP Server

A Model Context Protocol server that provides access to Oura Ring health and fitness data through the Oura API v2, enabling retrieval of sleep, activity, readiness, and other health metrics.

LocalFS MCP Server

LocalFS MCP Server

Provides sandboxed access to local filesystem operations including directory and file management, content search with glob and regex patterns, and binary file support with configurable safety limits.

Metabase AI Assistant

Metabase AI Assistant

Enables AI-powered interaction with Metabase instances and PostgreSQL databases through natural language. Creates models, SQL queries, metrics, and dashboards using both Metabase API and direct database connections.

Simple MCP Server

Simple MCP Server

好的,这是一个用极简代码演示如何构建一个 MCP (Mesh Configuration Protocol) 服务器的示例,使用 Python 和 gRPC: ```python # server.py import grpc from concurrent import futures import mcp_pb2 import mcp_pb2_grpc class McpService(mcp_pb2_grpc.AggregatedDiscoveryServiceServicer): def StreamAggregatedResources(self, request_iterator, context): for request in request_iterator: print(f"Received request: {request}") # 构造一个简单的响应 response = mcp_pb2.AggregatedDiscoveryResponse( version_info="v1", resources=[], type_url=request.type_url, nonce="nonce-123" ) yield response def serve(): server = grpc.server(futures.ThreadPoolExecutor(max_workers=10)) mcp_pb2_grpc.add_AggregatedDiscoveryServiceServicer_to_server(McpService(), server) server.add_insecure_port('[::]:50051') server.start() print("MCP Server started on port 50051") server.wait_for_termination() if __name__ == '__main__': serve() ``` **代码解释:** 1. **导入必要的库:** * `grpc`: gRPC 库。 * `concurrent.futures`: 用于创建线程池。 * `mcp_pb2` 和 `mcp_pb2_grpc`: 从 MCP 的 protobuf 定义生成的 Python 代码。 你需要先安装 `protobuf` 和 `grpcio-tools`,然后使用 `protoc` 命令生成这些文件。 例如: ```bash pip install protobuf grpcio-tools # 假设你的 mcp.proto 文件在当前目录 python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. mcp.proto ``` 确保你的 `mcp.proto` 文件定义了 MCP 的服务和消息。 一个简化的 `mcp.proto` 示例: ```protobuf // mcp.proto syntax = "proto3"; package envoy.service.discovery.v3; service AggregatedDiscoveryService { rpc StreamAggregatedResources(stream AggregatedDiscoveryRequest) returns (stream AggregatedDiscoveryResponse) {} } message AggregatedDiscoveryRequest { string version_info = 1; repeated string resource_names = 2; string type_url = 3; string response_nonce = 4; string error_detail = 5; } message AggregatedDiscoveryResponse { string version_info = 1; repeated google.protobuf.Any resources = 2; string type_url = 3; string nonce = 4; } import "google/protobuf/any.proto"; ``` 2. **`McpService` 类:** * 继承自 `mcp_pb2_grpc.AggregatedDiscoveryServiceServicer`,这是 gRPC 生成的服务基类。 * 实现了 `StreamAggregatedResources` 方法,这是 MCP 服务定义的核心方法。 它是一个双向流 (stream),服务器接收来自客户端的请求流,并返回响应流。 * 在 `StreamAggregatedResources` 中,我们简单地打印接收到的请求,并构造一个简单的 `AggregatedDiscoveryResponse` 作为响应。 这个响应包含一个版本信息、一个空的资源列表、请求的类型 URL 和一个 nonce。 3. **`serve` 函数:** * 创建一个 gRPC 服务器,使用线程池来处理请求。 * 将 `McpService` 注册到服务器。 * 添加一个不安全的端口 `[::]:50051` 用于监听连接。 在生产环境中,你应该使用安全的 TLS 连接。 * 启动服务器并打印一条消息。 * 调用 `server.wait_for_termination()` 使服务器保持运行状态,直到手动停止。 4. **`if __name__ == '__main__':` 块:** * 确保 `serve` 函数只在脚本直接运行时才被调用,而不是作为模块导入时。 **如何运行:** 1. **安装依赖:** ```bash pip install grpcio protobuf grpcio-tools ``` 2. **生成 gRPC 代码:** * 将上面的 `mcp.proto` 文件保存到你的项目目录中。 * 运行以下命令生成 `mcp_pb2.py` 和 `mcp_pb2_grpc.py`: ```bash python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. mcp.proto ``` 3. **运行服务器:** ```bash python server.py ``` **重要说明:** * **极简示例:** 这个示例非常简单,只用于演示 MCP 服务器的基本结构。 它没有实现任何实际的配置分发逻辑。 * **错误处理:** 代码中没有包含任何错误处理。 在生产环境中,你需要添加适当的错误处理机制。 * **安全性:** 这个示例使用不安全的连接。 在生产环境中,你应该使用 TLS 加密来保护通信。 * **资源管理:** 这个示例没有管理任何实际的资源。 你需要根据你的具体需求来实现资源的管理和分发。 * **Protobuf 定义:** `mcp.proto` 文件需要根据你的实际需求进行定义。 上面的示例提供了一个最小化的定义,你需要根据你的配置类型和数据结构来扩展它。 * **客户端:** 你需要一个 MCP 客户端来向服务器发送请求。 客户端的实现取决于你使用的编程语言和框架。 这个示例提供了一个起点,你可以根据你的具体需求来构建一个功能完善的 MCP 服务器。 记住要仔细阅读 MCP 规范,并根据你的应用场景进行适当的调整。 **中文翻译:** 好的,这是一个用极简代码演示如何构建一个 MCP (Mesh Configuration Protocol) 服务器的示例,使用 Python 和 gRPC: ```python # server.py import grpc from concurrent import futures import mcp_pb2 import mcp_pb2_grpc class McpService(mcp_pb2_grpc.AggregatedDiscoveryServiceServicer): def StreamAggregatedResources(self, request_iterator, context): for request in request_iterator: print(f"Received request: {request}") # 构造一个简单的响应 response = mcp_pb2.AggregatedDiscoveryResponse( version_info="v1", resources=[], type_url=request.type_url, nonce="nonce-123" ) yield response def serve(): server = grpc.server(futures.ThreadPoolExecutor(max_workers=10)) mcp_pb2_grpc.add_AggregatedDiscoveryServiceServicer_to_server(McpService(), server) server.add_insecure_port('[::]:50051') server.start() print("MCP Server started on port 50051") server.wait_for_termination() if __name__ == '__main__': serve() ``` **代码解释:** 1. **导入必要的库:** * `grpc`: gRPC 库。 * `concurrent.futures`: 用于创建线程池。 * `mcp_pb2` 和 `mcp_pb2_grpc`: 从 MCP 的 protobuf 定义生成的 Python 代码。 你需要先安装 `protobuf` 和 `grpcio-tools`,然后使用 `protoc` 命令生成这些文件。 例如: ```bash pip install protobuf grpcio-tools # 假设你的 mcp.proto 文件在当前目录 python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. mcp.proto ``` 确保你的 `mcp.proto` 文件定义了 MCP 的服务和消息。 一个简化的 `mcp.proto` 示例: ```protobuf // mcp.proto syntax = "proto3"; package envoy.service.discovery.v3; service AggregatedDiscoveryService { rpc StreamAggregatedResources(stream AggregatedDiscoveryRequest) returns (stream AggregatedDiscoveryResponse) {} } message AggregatedDiscoveryRequest { string version_info = 1; repeated string resource_names = 2; string type_url = 3; string response_nonce = 4; string error_detail = 5; } message AggregatedDiscoveryResponse { string version_info = 1; repeated google.protobuf.Any resources = 2; string type_url = 3; string nonce = 4; } import "google/protobuf/any.proto"; ``` 2. **`McpService` 类:** * 继承自 `mcp_pb2_grpc.AggregatedDiscoveryServiceServicer`,这是 gRPC 生成的服务基类。 * 实现了 `StreamAggregatedResources` 方法,这是 MCP 服务定义的核心方法。 它是一个双向流 (stream),服务器接收来自客户端的请求流,并返回响应流。 * 在 `StreamAggregatedResources` 中,我们简单地打印接收到的请求,并构造一个简单的 `AggregatedDiscoveryResponse` 作为响应。 这个响应包含一个版本信息、一个空的资源列表、请求的类型 URL 和一个 nonce。 3. **`serve` 函数:** * 创建一个 gRPC 服务器,使用线程池来处理请求。 * 将 `McpService` 注册到服务器。 * 添加一个不安全的端口 `[::]:50051` 用于监听连接。 在生产环境中,你应该使用安全的 TLS 连接。 * 启动服务器并打印一条消息。 * 调用 `server.wait_for_termination()` 使服务器保持运行状态,直到手动停止。 4. **`if __name__ == '__main__':` 块:** * 确保 `serve` 函数只在脚本直接运行时才被调用,而不是作为模块导入时。 **如何运行:** 1. **安装依赖:** ```bash pip install grpcio protobuf grpcio-tools ``` 2. **生成 gRPC 代码:** * 将上面的 `mcp.proto` 文件保存到你的项目目录中。 * 运行以下命令生成 `mcp_pb2.py` 和 `mcp_pb2_grpc.py`: ```bash python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. mcp.proto ``` 3. **运行服务器:** ```bash python server.py ``` **重要说明:** * **极简示例:** 这个示例非常简单,只用于演示 MCP 服务器的基本结构。 它没有实现任何实际的配置分发逻辑。 * **错误处理:** 代码中没有包含任何错误处理。 在生产环境中,你需要添加适当的错误处理机制。 * **安全性:** 这个示例使用不安全的连接。 在生产环境中,你应该使用 TLS 加密来保护通信。 * **资源管理:** 这个示例没有管理任何实际的资源。 你需要根据你的具体需求来实现资源的管理和分发。 * **Protobuf 定义:** `mcp.proto` 文件需要根据你的实际需求进行定义。 上面的示例提供了一个最小化的定义,你需要根据你的配置类型和数据结构来扩展它。 * **客户端:** 你需要一个 MCP 客户端来向服务器发送请求。 客户端的实现取决于你使用的编程语言和框架。 这个示例提供了一个起点,你可以根据你的具体需求来构建一个功能完善的 MCP 服务器。 记住要仔细阅读 MCP 规范,并根据你的应用场景进行适当的调整。 **总结:** 这段代码提供了一个非常基础的 MCP 服务器框架。 你需要根据你的实际需求扩展 `McpService` 类,实现资源的管理、版本控制、错误处理和安全性。 同时,你需要定义合适的 `mcp.proto` 文件来描述你的配置数据结构。 最后,你需要一个 MCP 客户端来与服务器进行通信,请求和接收配置信息。

Quick Data for Windows MCP

Quick Data for Windows MCP

A Windows-optimized server providing universal data analytics for JSON and CSV files through over 32 tools including schema discovery and interactive visualizations. It is specifically designed for seamless integration with Claude Desktop on Windows.

Markdown2PDF MCP Server

Markdown2PDF MCP Server

Converts Markdown documents to PDF files with support for syntax highlighting, custom styling, Mermaid diagrams, optional page numbers, and configurable watermarks.

Vonage AI Code Assist

Vonage AI Code Assist

一个 MCP 服务器,通过专门的搜索功能,为开发者提供 AI 辅助的 Vonage 文档访问,从而帮助他们集成 Vonage API 功能。

Security Scanner MCP Server

Security Scanner MCP Server

Enables comprehensive security scanning of code repositories to detect secrets, vulnerabilities, dependency issues, and configuration problems. Provides real-time security checks and best practice recommendations to help developers identify and prevent security issues.

HydraMCP

HydraMCP

An MCP server that enables users to query, compare, and synthesize responses from multiple local and cloud LLMs simultaneously using existing subscriptions. It provides tools for parallel model evaluation, consensus polling with an LLM-as-judge, and response synthesis across different model providers.

DevOps MCP Servers

DevOps MCP Servers

由 a37 团队创建和维护的 DevOps 工具和集成 MCP 服务器。

splunk-mcp

splunk-mcp

MCP 服务器,用于与 Splunk 交互

YouTube MCP Server

YouTube MCP Server

Enables AI models to interact with YouTube content including video details, transcripts, channel information, playlists, and search functionality through the YouTube Data API.

MDict MCP Server

MDict MCP Server

A server that provides access to MDict dictionaries through the Model Context Protocol, enabling word lookups, searches, and dictionary management.

Jokes MCP Server

Jokes MCP Server

An MCP server that delivers jokes on request, allowing Microsoft Copilot Studio and GitHub Copilot to serve different categories of jokes including Chuck Norris and Dad jokes through natural language queries.

MCP Server for MySQL based on NodeJS

MCP Server for MySQL based on NodeJS

镜子 (jìng zi)

MCP Registry Server

MCP Registry Server

Enables searching and retrieving detailed information about MCP servers from the official MCP registry. Provides tools to list servers with filtering options and get comprehensive details about specific servers.

SD Elements MCP Server

SD Elements MCP Server

A Model Context Protocol server that provides SD Elements API integration, enabling LLMs to interact with SD Elements security development lifecycle platform.

Claude MCP for Marketing Professionals

Claude MCP for Marketing Professionals

面向营销专业人士的 Claude MCP 服务器一键安装程序

VibeDefender MCP Server

VibeDefender MCP Server

Provides security assessment methodology, tool documentation, and step-by-step workflows to guide AI agents through vulnerability scanning, static analysis, and penetration testing of applications and URLs.

Gmail MCP

Gmail MCP

通过标准化的界面轻松管理您的电子邮件,该界面可用于起草、发送、检索和组织邮件。 通过完整的 Gmail API 覆盖范围(包括标签和线程管理)简化您的电子邮件工作流程。

Roba Labs MCP Server

Roba Labs MCP Server

Provides a comprehensive robotics information hub with details on frameworks like ROS and Gazebo, robot types, and curated learning resources. It enables AI assistants to access offline robotics documentation and development roadmaps without external API dependencies.

MCPServer

MCPServer

Rec-MCP

Rec-MCP

A Model Context Protocol server that enables searching for camping facilities and recreational areas using Recreation.gov's API and Google Maps Geocoding.

Manalink MCP Server

Manalink MCP Server

一个模型上下文协议服务器实现,该实现使 AI 助手能够在 Manalink 平台上按科目、年级和其他标准搜索导师。

YouTube Transcript MCP Server

YouTube Transcript MCP Server

Enables AI assistants to fetch and analyze transcripts from YouTube videos using video IDs or URLs, with support for multiple language preferences.