Discover Awesome MCP Servers

Extend your agent with 84,516 capabilities via MCP servers.

All84,516
CLI MCP Server

CLI MCP Server

镜子 (jìng zi)

create-mcp-server

create-mcp-server

一个用于创建 MCP 服务器的 MCP 服务器

CodeSynapse

CodeSynapse

一个 MCP(模型上下文协议)服务器,它与语言服务器协议(LSP)集成,以便将代码库中丰富的语义信息暴露给 LLM 代码代理。

uv-mcp

uv-mcp

用于内省 Python 环境的 MCP 服务器

AI MCP Portal

AI MCP Portal

aimcp 的门户网站 (aimcp de mén hù wǎng zhàn)

Memgraph MCP Server

Memgraph MCP Server

Memgraph MCP 服务器 (Memgraph MCP fúwùqì)

Needle MCP Server

Needle MCP Server

Here are a few possible translations, depending on the specific context of "Needle" and "modelcontextprotocol": **General/Technical Translation:** * **将 Needle 集成到 modelcontextprotocol 中** (Jiāng Needle jíchéng dào modelcontextprotocol zhōng) - This is a straightforward translation meaning "Integrate Needle into modelcontextprotocol." It's suitable if "Needle" is a specific software component or library. **More Context Needed for a Precise Translation:** To provide a more accurate translation, I need more context about: * **What is "Needle"?** Is it a specific software library, a concept, a tool, or something else? * **What is "modelcontextprotocol"?** Is it a specific protocol, a class, a framework, or a general concept? * **What kind of integration is being discussed?** Is it about using Needle within the context of the modelcontextprotocol, or about modifying the modelcontextprotocol to include Needle's functionality? **Examples with More Context:** * **If "Needle" is a dependency injection framework and "modelcontextprotocol" is a specific protocol for managing model context:** * **使用 Needle 实现 modelcontextprotocol 的依赖注入** (Shǐyòng Needle shíxiàn modelcontextprotocol de làiyòng zhùrù) - "Implement dependency injection for modelcontextprotocol using Needle." * **If "Needle" is a specific data structure and "modelcontextprotocol" defines how models interact with their context:** * **在 modelcontextprotocol 中使用 Needle 数据结构** (Zài modelcontextprotocol zhōng shǐyòng Needle shùjù jiégòu) - "Use the Needle data structure within modelcontextprotocol." **Therefore, please provide more context so I can give you the most accurate and helpful translation.**

mcpDemo

mcpDemo

MCP服务器演示 (MCP fúwùqì yǎnshì)

MCP Servers Hub

MCP Servers Hub

发现有趣的 MCP 服务器和客户端。

🎯 Kubernetes MCP Server

🎯 Kubernetes MCP Server

AI 驱动的 MCP 服务器可以理解关于你的 Kubernetes 集群的自然语言查询。

Bilibili MCP 服务器

Bilibili MCP 服务器

MCP 服务器学习 (MCP fúwùqì xuéxí)

MCP Workers AI

MCP Workers AI

针对 Cloudflare Workers 的 MCP 服务器 SDK

s-GitHubTestRepo-Henry

s-GitHubTestRepo-Henry

从 MCP 服务器演示创建。

Rails MCP Server

Rails MCP Server

一个用 Ruby gem 实现的 Rails 项目模型上下文协议 (MCP) 服务器。该服务器允许大型语言模型 (LLM) 通过模型上下文协议与 Rails 项目进行交互。

Remote MCP Server on Cloudflare

Remote MCP Server on Cloudflare

Model Context Protocol (MCP) Implementation

Model Context Protocol (MCP) Implementation

从零开始构建来学习 MCP (Minecraft Coder Pack)。

Modular Outlook MCP Server

Modular Outlook MCP Server

用于 Claude 通过 Microsoft Graph API 访问 Outlook 数据的 MCP 服务器

@modelcontextprotocol/server-terminal

@modelcontextprotocol/server-terminal

模型上下文协议的终端服务器实现

MCP2HTTP

MCP2HTTP

MCP2HTTP 是一个最小化的传输适配器,它将使用 stdio 的 MCP 客户端与无状态 HTTP 服务器连接起来。

Dockerized Salesforce MCP Server

Dockerized Salesforce MCP Server

用于 REST API 集成的 Docker 化 Salesforce MCP 服务器

Exa MCP Server 🔍

Exa MCP Server 🔍

克劳德可以通过 MCP (模型上下文协议) 执行网页搜索 | Exa。

Basilisp nREPL MCP Bridge

Basilisp nREPL MCP Bridge

简单的 MCP 服务器,用于 nREPL

Zoom MCP Server

Zoom MCP Server

Zoom 的 MCP 服务器

MCP Expert Server

MCP Expert Server

镜子 (jìng zi)

mcp-server-datahub

mcp-server-datahub

DataHub 的官方 MCP 服务器 (

mcp_server_local_files

mcp_server_local_files

本地文件系统 MCP 服务器 (Běn dì wénjiàn xìtǒng MCP fúwùqì)

GooseTeam

GooseTeam

看,一群鹅!一个用于鹅代理协作的 MCP 服务器和协议。

MCPClient Python Application

MCPClient Python Application

Okay, I understand. You want an implementation that allows an MCP (presumably "Minecraft Protocol") server to interact with an Ollama model. This is a complex task that involves several steps. Here's a breakdown of the concepts, potential approaches, and a *conceptual* implementation outline. Keep in mind that this is a high-level overview, and a complete, working solution would require significant coding effort. **Understanding the Components** * **MCP Server (Minecraft Protocol Server):** This is the server that handles Minecraft client connections, game logic, and world management. We need to be able to intercept or inject messages into this server. This likely requires a Minecraft server mod (e.g., using Fabric, Forge, or a custom server implementation). * **Ollama Model:** This is a large language model (LLM) served by Ollama. We need to be able to send text prompts to the Ollama API and receive text responses. * **Interaction:** The core of the problem is *how* the MCP server and Ollama model will interact. Here are some possibilities: * **Chatbot:** Players type commands or messages in the Minecraft chat, which are then sent to the Ollama model. The model's response is displayed back in the chat. * **NPC Dialogue:** Non-player characters (NPCs) in the game have dialogue powered by the Ollama model. The model generates responses based on player interactions or game events. * **World Generation/Modification:** The Ollama model could be used to generate descriptions of terrain, structures, or quests, which are then used to modify the Minecraft world. * **Game Logic:** The model could be used to make decisions for AI entities or influence game events based on player actions. **Conceptual Implementation Outline** This outline focuses on the "Chatbot" interaction, as it's the most straightforward to explain. 1. **Minecraft Server Mod (e.g., Fabric/Forge):** * **Dependency:** Add the necessary dependencies for your chosen mod loader (Fabric or Forge). * **Event Listener:** Create an event listener that intercepts chat messages sent by players. This is the crucial part where you "hook" into the Minecraft server. * **Command Handling (Optional):** Register a custom command (e.g., `/ask <prompt>`) that players can use to specifically trigger the Ollama model. This is cleaner than intercepting *all* chat messages. * **Configuration:** Allow configuration of the Ollama API endpoint (e.g., `http://localhost:11434/api/generate`). * **Asynchronous Task:** When a chat message (or command) is received, create an asynchronous task to send the prompt to the Ollama API. This prevents the Minecraft server from blocking while waiting for the model's response. 2. **Ollama API Interaction (Java/Kotlin Code within the Mod):** * **HTTP Client:** Use a Java HTTP client library (e.g., `java.net.http.HttpClient`, OkHttp, or Apache HttpClient) to make POST requests to the Ollama API. * **JSON Payload:** Construct a JSON payload for the `/api/generate` endpoint. The payload should include: * `model`: The name of the Ollama model to use (e.g., "llama2"). * `prompt`: The player's chat message (or the command argument). * (Optional) `stream`: Set to `false` for a single response, or `true` for streaming responses. * **Error Handling:** Implement robust error handling to catch network errors, API errors, and JSON parsing errors. * **Rate Limiting (Important):** Implement rate limiting to prevent overwhelming the Ollama server with requests. This is crucial for performance and stability. 3. **Response Handling:** * **Parse JSON Response:** Parse the JSON response from the Ollama API. The response will contain the generated text. * **Send Message to Minecraft Chat:** Send the generated text back to the Minecraft chat, either to the player who sent the original message or to all players. Use the Minecraft server's API to send chat messages. * **Formatting:** Format the response appropriately for the Minecraft chat (e.g., add a prefix to indicate that the message is from the Ollama model). **Example (Conceptual Java Code Snippet - Fabric Mod)** ```java import net.fabricmc.api.ModInitializer; import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents; import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback; import net.minecraft.server.MinecraftServer; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.text.Text; import com.mojang.brigadier.CommandDispatcher; import com.mojang.brigadier.arguments.StringArgumentType; import static net.minecraft.server.command.CommandManager.*; import static com.mojang.brigadier.arguments.StringArgumentType.*; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.util.concurrent.CompletableFuture; import com.google.gson.Gson; import com.google.gson.JsonObject; public class OllamaMod implements ModInitializer { private static final String OLLAMA_API_URL = "http://localhost:11434/api/generate"; private static final String OLLAMA_MODEL = "llama2"; // Or your chosen model private static final HttpClient httpClient = HttpClient.newHttpClient(); private static final Gson gson = new Gson(); @Override public void onInitialize() { ServerLifecycleEvents.SERVER_STARTED.register(this::onServerStarted); CommandRegistrationCallback.EVENT.register(this::registerCommands); } private void onServerStarted(MinecraftServer server) { System.out.println("Ollama Mod Initialized!"); } private void registerCommands(CommandDispatcher<net.minecraft.server.command.ServerCommandSource> dispatcher, net.minecraft.server.command.CommandRegistryAccess registryAccess, net.minecraft.server.command.CommandManager.RegistrationEnvironment environment) { dispatcher.register(literal("ask") .then(argument("prompt", string()) .executes(context -> { String prompt = getString(context, "prompt"); ServerPlayerEntity player = context.getSource().getPlayer(); askOllama(prompt, player); return 1; }))); } private void askOllama(String prompt, ServerPlayerEntity player) { CompletableFuture.runAsync(() -> { try { JsonObject requestBody = new JsonObject(); requestBody.addProperty("model", OLLAMA_MODEL); requestBody.addProperty("prompt", prompt); requestBody.addProperty("stream", false); // Get a single response HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(OLLAMA_API_URL)) .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString(gson.toJson(requestBody))) .build(); HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString()); if (response.statusCode() == 200) { JsonObject jsonResponse = gson.fromJson(response.body(), JsonObject.class); String ollamaResponse = jsonResponse.get("response").getAsString(); // Adjust based on Ollama's actual response format player.sendMessage(Text.literal("Ollama: " + ollamaResponse)); } else { player.sendMessage(Text.literal("Error communicating with Ollama: " + response.statusCode())); } } catch (Exception e) { player.sendMessage(Text.literal("An error occurred: " + e.getMessage())); e.printStackTrace(); } }); } } ``` **Key Considerations and Challenges** * **Asynchronous Operations:** Crucially important to avoid blocking the Minecraft server thread. Use `CompletableFuture` or similar mechanisms. * **Error Handling:** Network errors, API errors, JSON parsing errors – handle them all gracefully. * **Rate Limiting:** Protect the Ollama server from being overwhelmed. * **Security:** If you're exposing this to the internet, be very careful about security. Sanitize inputs to prevent prompt injection attacks. * **Ollama API Changes:** The Ollama API might change in the future, so keep your code up-to-date. * **Minecraft Server Version:** Ensure your mod is compatible with the specific version of Minecraft you're targeting. * **Mod Loader (Fabric/Forge):** Choose the mod loader that best suits your needs and experience. * **Context:** The Ollama model will perform better if you provide it with context about the game world, the player's inventory, and recent events. This requires more complex data gathering from the Minecraft server. * **Streaming Responses:** Consider using streaming responses from the Ollama API for a more interactive experience. This requires more complex handling of the response data. * **Resource Management:** Be mindful of memory usage, especially if you're using large models. **Next Steps** 1. **Choose a Mod Loader:** Fabric is generally considered more lightweight and modern, while Forge has a larger ecosystem of mods. 2. **Set up a Development Environment:** Follow the instructions for setting up a development environment for your chosen mod loader. 3. **Implement the Basic Chatbot Functionality:** Start with the code snippet above and get the basic chatbot working. 4. **Add Error Handling and Rate Limiting:** Make the code more robust. 5. **Experiment with Different Interaction Models:** Explore other ways to integrate the Ollama model into the game. 6. **Consider Context:** Add context to the prompts sent to the Ollama model to improve its responses. This is a challenging but rewarding project. Good luck! Remember to break the problem down into smaller, manageable steps.

Browser JavaScript Evaluator

Browser JavaScript Evaluator

这是一个 MCP 服务器的参考设计,该服务器托管一个网页,该网页通过 SSE 连接回服务器,并允许 Claude 在该页面上执行 JavaScript。

iOS Simulator MCP Server

iOS Simulator MCP Server

镜子 (jìng zi)