发现优秀的 MCP 服务器

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

全部23,467
OBS MCP Server

OBS MCP Server

一个服务器,通过 OBS WebSocket 协议提供远程控制 OBS Studio 的工具,从而可以通过 MCP 客户端界面管理场景、来源、流媒体和录制。

Cryptocurrency Market Data MCP Server

Cryptocurrency Market Data MCP Server

镜子 (jìng zi)

RouterOS MCP Server

RouterOS MCP Server

Enables AI assistants to interact with MikroTik RouterOS devices through API and SSH connections, supporting network monitoring, configuration management, and diagnostics across multiple routers with automatic connection fallback.

GUIDE

GUIDE

MCP 服务器,用于 MSSQL (MCP fúwùqì, yòng yú MSSQL) This translates to: * **MCP 服务器 (MCP fúwùqì):** MCP Server * **用于 (yòng yú):** for * **MSSQL:** MSSQL (This is often kept as is, as it's a technical term) Therefore, the whole translation means "MCP Server for MSSQL".

Weather MCP Server

Weather MCP Server

镜子 (jìng zi)

pymupdf4llm-mcp

pymupdf4llm-mcp

An MCP server that exports PDF documents to markdown format optimized for LLM processing.

Vector Memory MCP

Vector Memory MCP

A secure vector-based memory server that provides persistent semantic memory for AI assistants using sqlite-vec and sentence-transformers. It enables semantic search and organization of coding experiences, solutions, and knowledge with features like auto-cleanup and deduplication.

mcp-camara

mcp-camara

An MCP server that provides access to the Brazilian Chamber of Deputies open data API. It enables users to search for deputies, track their expenses, and query legislative information such as bills and API endpoints.

Tableau CRM Analytics MCP Server by CData

Tableau CRM Analytics MCP Server by CData

This project builds a read-only MCP server. For full read, write, update, delete, and action capabilities and a simplified setup, check out our free CData MCP Server for Tableau CRM Analytics (beta): https://www.cdata.com/download/download.aspx?sku=FSZK-V&type=beta

Common Database MCP Server

Common Database MCP Server

Enables safe exploration and querying of multiple databases (PostgreSQL, MySQL, SQLite, DB2) with read-only defaults, connection pooling, and parameterized queries for SQL injection prevention.

MCP Video Generation with Veo2

MCP Video Generation with Veo2

MCP server that exposes Google's Veo2 video generation capabilities, allowing clients to generate videos from text prompts or images.

TRELLIS Blender Plugin

TRELLIS Blender Plugin

TRELLIS (3D AIGC 模型,文本到 3D,图像到 3D) 的 Blender 插件

Time MCP Server by PHP

Time MCP Server by PHP

好的,这是使用 PHP 实现的 MCP (Model Context Protocol) 服务器,用于检索时间信息的示例: ```php <?php // 定义 MCP 服务器的地址和端口 $address = 'tcp://127.0.0.1:12345'; // 创建一个 TCP 套接字 $socket = stream_socket_server($address, $errno, $errstr); if (!$socket) { die("Could not create socket: $errstr ($errno)\n"); } echo "MCP Server listening on $address...\n"; while (true) { // 接受客户端连接 $client = stream_socket_accept($socket, -1); if ($client) { echo "Client connected.\n"; // 读取客户端请求 $request = fread($client, 1024); // 处理请求 $response = handleRequest($request); // 发送响应 fwrite($client, $response); // 关闭客户端连接 fclose($client); echo "Client disconnected.\n"; } } fclose($socket); /** * 处理客户端请求并返回响应。 * * @param string $request 客户端请求 * @return string MCP 响应 */ function handleRequest(string $request): string { // 假设请求是简单的 "get_time" if (trim($request) === 'get_time') { $currentTime = date('Y-m-d H:i:s'); $response = "time: " . $currentTime . "\n"; // MCP 响应格式,可以根据需要调整 } else { $response = "error: invalid request\n"; // 错误响应 } return $response; } ?> ``` **代码解释:** 1. **`$address = 'tcp://127.0.0.1:12345';`**: 定义了服务器监听的地址和端口。 `tcp://127.0.0.1` 表示监听本地回环地址,`12345` 是端口号。 你可以根据需要修改这些值。 2. **`$socket = stream_socket_server($address, $errno, $errstr);`**: 使用 `stream_socket_server` 函数创建一个 TCP 套接字服务器。 `$errno` 和 `$errstr` 用于存储错误代码和错误信息,如果套接字创建失败。 3. **`while (true)`**: 进入一个无限循环,等待客户端连接。 4. **`$client = stream_socket_accept($socket, -1);`**: 使用 `stream_socket_accept` 函数接受客户端连接。 `-1` 表示无限期等待连接。 5. **`$request = fread($client, 1024);`**: 从客户端读取请求数据。 `1024` 是读取的最大字节数。 6. **`$response = handleRequest($request);`**: 调用 `handleRequest` 函数处理客户端请求并生成响应。 7. **`fwrite($client, $response);`**: 将响应数据发送给客户端。 8. **`fclose($client);`**: 关闭客户端连接。 9. **`handleRequest(string $request): string`**: 这个函数负责处理客户端请求。 在这个例子中,它检查请求是否为 "get_time"。 如果是,它获取当前时间并将其格式化为 `Y-m-d H:i:s`。 然后,它构建一个 MCP 响应,格式为 `time: <当前时间>\n`。 如果请求无效,它返回一个错误响应。 **如何运行:** 1. 将代码保存为 `mcp_server.php`。 2. 在命令行中运行 `php mcp_server.php`。 3. 服务器将开始监听 `tcp://127.0.0.1:12345`。 **如何测试:** 你可以使用 `telnet` 或 `netcat` 等工具来测试服务器。 * **使用 telnet:** ```bash telnet 127.0.0.1 12345 ``` 连接成功后,输入 `get_time` 并按回车键。 服务器应该返回当前时间。 * **使用 netcat:** ```bash nc 127.0.0.1 12345 ``` 连接成功后,输入 `get_time` 并按回车键。 服务器应该返回当前时间。 **重要注意事项:** * **错误处理:** 这个示例代码只包含基本的错误处理。 在生产环境中,你需要添加更完善的错误处理机制,例如记录错误日志。 * **安全性:** 这个示例代码没有考虑安全性。 在生产环境中,你需要采取安全措施,例如验证客户端身份、防止注入攻击等。 * **MCP 协议:** 这个示例代码只是一个简单的 MCP 服务器的演示。 真正的 MCP 协议可能更复杂,需要根据实际需求进行调整。 你需要定义清晰的请求和响应格式。 * **并发:** 这个示例代码是单线程的,一次只能处理一个客户端连接。 如果需要处理大量并发连接,你需要使用多线程或异步编程。 可以使用 `pcntl_fork` 创建子进程来处理并发连接,或者使用 `ReactPHP` 等异步框架。 * **扩展性:** 这个示例代码只提供了一个简单的 `get_time` 功能。 你可以根据需要添加更多功能,例如获取系统信息、执行命令等。 **更完善的示例 (使用 `pcntl_fork` 实现并发):** ```php <?php // 定义 MCP 服务器的地址和端口 $address = 'tcp://127.0.0.1:12345'; // 创建一个 TCP 套接字 $socket = stream_socket_server($address, $errno, $errstr); if (!$socket) { die("Could not create socket: $errstr ($errno)\n"); } echo "MCP Server listening on $address...\n"; // 设置信号处理函数,防止僵尸进程 pcntl_signal(SIGCHLD, SIG_IGN); while (true) { // 接受客户端连接 $client = stream_socket_accept($socket, -1); if ($client) { // 创建一个子进程来处理客户端连接 $pid = pcntl_fork(); if ($pid == -1) { // Fork 失败 fclose($client); echo "Fork failed.\n"; } elseif ($pid == 0) { // 子进程 fclose($socket); // 子进程不需要监听套接字 echo "Client connected (PID: " . getmypid() . ").\n"; // 读取客户端请求 $request = fread($client, 1024); // 处理请求 $response = handleRequest($request); // 发送响应 fwrite($client, $response); // 关闭客户端连接 fclose($client); echo "Client disconnected (PID: " . getmypid() . ").\n"; exit(0); // 子进程退出 } else { // 父进程 fclose($client); // 父进程不需要客户端套接字 } } } fclose($socket); /** * 处理客户端请求并返回响应。 * * @param string $request 客户端请求 * @return string MCP 响应 */ function handleRequest(string $request): string { // 假设请求是简单的 "get_time" if (trim($request) === 'get_time') { $currentTime = date('Y-m-d H:i:s'); $response = "time: " . $currentTime . "\n"; // MCP 响应格式,可以根据需要调整 } else { $response = "error: invalid request\n"; // 错误响应 } return $response; } ?> ``` 这个并发版本使用 `pcntl_fork` 创建子进程来处理每个客户端连接。 这允许多个客户端同时连接到服务器。 `pcntl_signal(SIGCHLD, SIG_IGN);` 用于忽略子进程结束的信号,防止产生僵尸进程。 记住,这只是一个基本的示例。 你需要根据你的具体需求进行修改和扩展。 在生产环境中使用之前,请务必进行充分的测试和安全审查。

UPC Barcode Lookup MCP Server

UPC Barcode Lookup MCP Server

A Multi-Agent Conversation Protocol Server that provides access to the Go UPC API, allowing agents to look up product information using UPC/EAN/ISBN barcodes.

n8n Architect MCP Server

n8n Architect MCP Server

Enables orchestration and management of n8n workflows through tools for creating, updating, diagnosing failed executions, auto-fixing workflows, and installing community nodes.

npm-search MCP Server

npm-search MCP Server

镜子 (jìng zi)

mcp-shell-server

mcp-shell-server

一个简单的 MCP (模型上下文协议) 服务器,它提供终端命令和图片访问。

Xpath

Xpath

Context Pods

Context Pods

Context-Pods is a comprehensive development framework for creating, testing, and managing Model Context Protocol (MCP) servers. It provides a Meta-MCP Server that can generate other MCP servers through natural language descriptions or by wrapping existing scripts.

MCP Crash Course

MCP Crash Course

A Python-based MCP (Model Context Protocol) server that enables weather alerts and conversational AI interactions, with Docker support for easy deployment.

Story IP Creator Agent

Story IP Creator Agent

一个使用我们 MCP 服务器的演示代理

Video Downloader MCP Server

Video Downloader MCP Server

A Model Context Protocol server that transforms video downloading into a tool-based system for LLM orchestration, allowing users to download videos from 1000+ platforms with intelligent workflows and security features.

secure-mcp-proxy

secure-mcp-proxy

A MCP Proxy (Local <-> SSE) with token based authentication.

MCP-researcher Server

MCP-researcher Server

这个基于 TypeScript 的服务器实现了一个简单的笔记系统,它利用 MCP 概念,使用户能够通过自然语言提示创建、列出和总结文本笔记。

Perplexity MCP Server

Perplexity MCP Server

Integrates Perplexity AI's chat capabilities with real-time web search, enabling users to ask questions and receive AI-powered answers with up-to-date information and citations from verified web sources.

ClickUp MCP Server

ClickUp MCP Server

Enables AI assistants to interact directly with the ClickUp REST API v2 for managing tasks, folders, and lists. It supports full workspace hierarchy management, time tracking, and task operations through natural language.

Gemini MCP File Agent

Gemini MCP File Agent

A local server that enables Google's Gemini AI to safely read, write, and list files within a controlled sandbox folder on your computer through natural language chat interactions.

OpenClueo MCP Server

OpenClueo MCP Server

Provides a universal AI personality layer that uses a scientifically-backed Big Five engine to apply consistent character traits and brand voices across MCP-compatible platforms. It allows users to inject custom personality profiles or presets into AI interactions to ensure behavioral consistency.

MODEL CONTEXT PROTOCOL

MODEL CONTEXT PROTOCOL

Anthropic 的模型上下文协议的实现

Paloma DEX MCP Server

Paloma DEX MCP Server

A Model Context Protocol server that enables AI agents to autonomously execute cross-chain trading operations on Paloma DEX across seven EVM chains including Ethereum, Arbitrum, and Polygon.