发现优秀的 MCP 服务器

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

全部23,331
Remote MCP Server on Cloudflare

Remote MCP Server on Cloudflare

MCP Weather

MCP Weather

Enables querying 7-day weather forecasts for Chinese cities and regions by scraping China Weather website data. Supports both user input and AI model intelligent city/region parameter matching.

Express MCP Server

Express MCP Server

A basic example of a serverless Model Context Protocol (MCP) server implemented using Netlify Functions with Express, enabling AI agents to interact with custom capabilities.

MySQL MCP Server

MySQL MCP Server

Enables AI applications to interact with MySQL databases through a secure interface, allowing database exploration, querying, and analysis with proper error handling and logging.

note.com MCP Server

note.com MCP Server

使用 note.com API 的 Model Context Protocol (MCP) 服务器

MeteoSwiss MCP Server

MeteoSwiss MCP Server

Provides access to official MeteoSwiss weather data, including regional reports, daily forecasts, and website search functionality across multiple languages. It enables AI assistants to retrieve real-time weather information and documentation from MeteoSwiss using the Model Context Protocol.

Video MCP Server

Video MCP Server

A Model Context Protocol server that provides video processing capabilities including format conversion, metadata extraction, and batch processing with configurable quality settings.

HNPX SDK

HNPX SDK

Enables AI-guided hierarchical fiction writing through structured XML documents. Supports step-by-step narrative expansion from book-level planning down to individual paragraphs, with custom Roo Code modes for collaborative story development.

Okta MCP Server

Okta MCP Server

Make MCP Server

Make MCP Server

This server enables AI assistants to discover, parameterize, and trigger Make.com automation workflows configured for on-demand execution. It allows users to execute scenarios and receive structured JSON results, bridging the gap between AI assistants and complex automation ecosystems.

Debug MCP Server in VSCode

Debug MCP Server in VSCode

Okay, here's a basic example of a Minecraft Protocol (MCP) server in Python, along with instructions on how to set it up for debugging in VS Code. This is a *very* simplified example and doesn't implement the full Minecraft protocol. It's designed to be a starting point for learning and debugging. **1. Install Necessary Libraries:** ```bash pip install twisted ``` **2. Create the Python Server File (e.g., `mcp_server.py`):** ```python from twisted.internet import reactor, protocol from twisted.internet.endpoints import TCP4ServerEndpoint from twisted.protocols.basic import LineReceiver class MinecraftServerProtocol(LineReceiver): delimiter = b'\n' # Use newline as the delimiter def connectionMade(self): print(f"Client connected: {self.transport.getHost()}") self.sendLine(b"Hello from the MCP server!") # Send a greeting def lineReceived(self, line): try: decoded_line = line.decode('utf-8') print(f"Received: {decoded_line}") # Simple command handling (example) if decoded_line.lower() == "ping": self.sendLine(b"pong") elif decoded_line.lower() == "time": import time self.sendLine(str(time.time()).encode('utf-8')) # Send current time else: self.sendLine(b"Unknown command") except UnicodeDecodeError: print("Received invalid UTF-8 data") self.sendLine(b"Error: Invalid input") def connectionLost(self, reason): print(f"Client disconnected: {reason}") class MinecraftServerFactory(protocol.Factory): protocol = MinecraftServerProtocol if __name__ == '__main__': endpoint = TCP4ServerEndpoint(25565, reactor) # Listen on port 25565 endpoint.listen(MinecraftServerFactory()) print("MCP server started on port 25565") reactor.run() ``` **Explanation:** * **`twisted`:** This is an asynchronous networking library. It's well-suited for handling network connections efficiently. * **`MinecraftServerProtocol`:** This class handles the communication with each client. * `connectionMade()`: Called when a client connects. Sends a greeting. * `lineReceived()`: Called when a line of data is received from the client. Decodes the line, prints it, and handles simple commands (ping, time). Includes error handling for invalid UTF-8. * `connectionLost()`: Called when a client disconnects. * **`MinecraftServerFactory`:** Creates instances of the `MinecraftServerProtocol` when a new connection is made. * **`if __name__ == '__main__':`:** This block starts the server when the script is run directly. * `TCP4ServerEndpoint`: Creates a TCP server endpoint that listens on port 25565. * `reactor.run()`: Starts the Twisted event loop, which handles all the network events. **3. Configure VS Code for Debugging:** 1. **Open the project folder in VS Code.** 2. **Create a `.vscode` folder** in the root of your project (if it doesn't exist). 3. **Create a `launch.json` file** inside the `.vscode` folder. This file tells VS Code how to run and debug your Python script. ```json { "version": "0.2.0", "configurations": [ { "name": "Python: MCP Server", "type": "python", "request": "launch", "program": "${workspaceFolder}/mcp_server.py", "console": "integratedTerminal", "justMyCode": false // Important for debugging Twisted code } ] } ``` **Explanation of `launch.json`:** * `"name"`: A descriptive name for your debug configuration. * `"type"`: Specifies that you're debugging Python code. * `"request"`: `"launch"` means you're starting the program from VS Code. * `"program"`: The path to your Python script. `${workspaceFolder}` is a VS Code variable that represents the root of your project. * `"console"`: `"integratedTerminal"` means the output will be displayed in VS Code's integrated terminal. * `"justMyCode": false`: **Crucially important for Twisted!** Twisted uses a lot of internal code. Setting this to `false` allows you to step into Twisted's code while debugging, which is often necessary to understand what's going on. **4. Run and Debug:** 1. **Set a breakpoint:** Click in the left margin of the `mcp_server.py` file next to a line of code where you want the debugger to pause (e.g., inside the `lineReceived` function). 2. **Start debugging:** Go to the "Run and Debug" view in VS Code (the icon looks like a play button with a bug). Select "Python: MCP Server" from the dropdown and click the green "Start Debugging" button (or press F5). 3. **The server will start.** You should see the "MCP server started on port 25565" message in the terminal. **5. Test with a Simple Client (netcat or similar):** Open a terminal and use `netcat` (or `nc`) to connect to the server: ```bash nc localhost 25565 ``` Type some text and press Enter. You should see the output in the VS Code terminal where the server is running, and the debugger should pause at your breakpoint. Try sending "ping" or "time". **Important Considerations and Improvements:** * **Error Handling:** The example has basic error handling, but you'll need to add more robust error handling for production code. Consider logging errors to a file. * **Protocol Implementation:** This is a *very* basic example. The real Minecraft protocol is much more complex and uses binary data. You'll need to study the Minecraft protocol documentation to implement it correctly. Libraries like `struct` in Python are essential for packing and unpacking binary data. * **Asynchronous Programming:** Twisted is an asynchronous framework. Make sure you understand how asynchronous programming works to avoid blocking the event loop. Use `defer.inlineCallbacks` and `yield` for asynchronous operations. * **Security:** If you're building a real server, security is paramount. Implement proper authentication, authorization, and input validation to prevent attacks. * **Threading/Multiprocessing:** For a high-performance server, you might need to use threads or processes to handle multiple clients concurrently. Twisted can be integrated with threads, but be careful to avoid race conditions and deadlocks. * **Logging:** Implement proper logging to track server activity and diagnose problems. **Simplified Chinese Translation of Key Phrases:** * "Client connected": 客户端已连接 (Kèhùduān yǐ liánjiē) * "Received": 收到 (Shōudào) * "Unknown command": 未知命令 (Wèi zhī mìnglìng) * "Client disconnected": 客户端已断开连接 (Kèhùduān yǐ duàn kāi liánjiē) * "MCP server started on port 25565": MCP 服务器已在端口 25565 上启动 (MCP fúwùqì yǐ zài duānkǒu 25565 shàng qǐdòng) * "Error: Invalid input": 错误:无效输入 (Cuòwù: Wúxiào shūrù) * "MCP Server": MCP 服务器 (MCP fúwùqì) * "Start Debugging": 开始调试 (Kāishǐ tiáoshì) * "Breakpoint": 断点 (Duàndiǎn) This example provides a foundation for building a more complete MCP server. Remember to consult the Minecraft protocol documentation and use appropriate libraries for handling binary data and asynchronous operations. Good luck!

Dynatrace Managed MCP Server

Dynatrace Managed MCP Server

Enables AI assistants to interact with self-hosted Dynatrace Managed environments to retrieve observability data, security insights, and performance metrics. It allows users to query problems, logs, events, and SLOs through natural language interfaces in both local and remote modes.

sqlite-reader-mcp

sqlite-reader-mcp

A lightweight MCP server that provides read-only access to SQLite databases, allowing users to execute SELECT queries, list tables, and describe table schemas.

Tree-Hugger-JS MCP Server

Tree-Hugger-JS MCP Server

Provides AI agents with powerful JavaScript/TypeScript code analysis and transformation capabilities using the tree-hugger-js library.

Seam MCP Server

Seam MCP Server

Enables control of smart locks through the Seam API, allowing users to lock/unlock doors, check status, and manage access codes across 100+ supported lock brands. Supports comprehensive access code management including temporary codes and multi-lock operations.

BuddyPress MCP Server

BuddyPress MCP Server

Enables AI assistants to interact with BuddyPress sites through the REST API v2. Supports comprehensive community management including activities, members, groups, profiles, messages, friendships, and notifications through natural language.

MCP Image Validator

MCP Image Validator

Enables Claude and other MCP clients to analyze and describe images using the Qwen3-VL vision model (235B parameters) through Ollama Cloud API, supporting multiple image formats without requiring local GPU.

SafeMarkdownEditor MCP Server

SafeMarkdownEditor MCP Server

Provides powerful Markdown document editing capabilities with thread-safe operations, atomic transactions, and comprehensive validation.

Baguskto Saham

Baguskto Saham

Enables access to Indonesian Stock Exchange (IDX) data with comprehensive historical data from 2019-2025 for 958 stocks, including real-time market overview, technical analysis, sector performance, and stock comparison capabilities.

IT Tools MCP Server

IT Tools MCP Server

A comprehensive Model Context Protocol server providing access to 70+ IT tools for developers and system administrators, including encoding/decoding, text manipulation, hashing, and network utilities.

YouTube Tools MCP Server

YouTube Tools MCP Server

Enables AI assistants to search YouTube videos using the official YouTube Data API v3, extract full video transcripts in multiple languages, and store/retrieve video summaries using a local database.

MCP Server Search

MCP Server Search

MCP 服务器使用搜索引擎来获取互联网上相关信息的位置。

mcp-narajangteo

mcp-narajangteo

내 상황에 맞는 사업을 키워드 기반으로 알려주고 분석함

MCP Mood Quote Server

MCP Mood Quote Server

一个返回基于心情语录的 MCP 服务器

React Tailwind Views MCP Server

React Tailwind Views MCP Server

A full-stack template for building Model Context Protocol servers that expose tools and workflows to AI agents while also serving a web interface built with React and Tailwind CSS.

OpenSimulator MCP Server

OpenSimulator MCP Server

Enables control of OpenSimulator virtual world servers through console commands, supporting region management, user administration, terrain editing, object manipulation, and HyperGrid operations via the REST console API.

TypeScript MCP Server Boilerplate

TypeScript MCP Server Boilerplate

A boilerplate project for quickly developing Model Context Protocol (MCP) servers using TypeScript SDK, with example implementations of tools (calculator, greeting) and resources (server info).

Facebook MCP Server

Facebook MCP Server

Enables posting text messages to Facebook business pages through MCP. Supports OAuth authentication and manual connection methods for managing Facebook page content.

GitHub Explorer MCP

GitHub Explorer MCP

一个 TypeScript 实现的 MCP 服务器,为 MCP 客户端提供 GitHub 仓库信息,包括文件内容、目录结构和其他元数据。

Toolhouse MCP Server

Toolhouse MCP Server

镜子 (jìng zi)