Discover Awesome MCP Servers

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

All84,516
Remote MCP Server on Cloudflare

Remote MCP Server on Cloudflare

Model Context Protocol (MCP) Implementation

Model Context Protocol (MCP) Implementation

Learn MCP by building from Scarch

Modular Outlook MCP Server

Modular Outlook MCP Server

MCP server for Claude to access Outlook data via Microsoft Graph API

@modelcontextprotocol/server-terminal

@modelcontextprotocol/server-terminal

Terminal server implementation for Model Context Protocol

MCP2HTTP

MCP2HTTP

MCP2HTTP is a minimal transport adapter that bridges MCP clients using stdio with stateless HTTP servers.

Dockerized Salesforce MCP Server

Dockerized Salesforce MCP Server

Dockerized Salesforce MCP Server for REST API integration

Exa MCP Server ๐Ÿ”

Exa MCP Server ๐Ÿ”

ํด๋กœ๋“œ๋Š” MCP (๋ชจ๋ธ ์ปจํ…์ŠคํŠธ ํ”„๋กœํ† ์ฝœ)์„ ์‚ฌ์šฉํ•˜์—ฌ ์›น ๊ฒ€์ƒ‰ | Exa๋ฅผ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Basilisp nREPL MCP Bridge

Basilisp nREPL MCP Bridge

simple MCP server for nREPL

Zoom MCP Server

Zoom MCP Server

MCP server for Zoom

MCP Expert Server

MCP Expert Server

Mirror of

mcp-server-datahub

mcp-server-datahub

DataHub์˜ ๊ณต์‹ MCP ์„œ๋ฒ„ (

mcp_server_local_files

mcp_server_local_files

Local File System MCP Server

GooseTeam

GooseTeam

Look, a flock of geese! An MCP server and protocol for Goose agent collaboration.

MCPClient Python Application

MCPClient Python Application

Okay, I understand. You want an implementation for interacting between an MCP (presumably Minecraft Protocol) server and an Ollama model. This is a complex project, so let's break down the key components and provide a conceptual outline with code snippets. I'll focus on the core logic and leave out boilerplate code for brevity. **Conceptual Outline** 1. **Minecraft Server Interaction (MCP):** * Establish a connection to the Minecraft server. * Listen for player chat messages. * Parse the chat messages to extract the player's input. * Send responses back to the Minecraft server to be displayed to the player. 2. **Ollama Model Interaction:** * Send the player's input to the Ollama model. * Receive the model's response. 3. **Orchestration:** * Connect the Minecraft server interaction and the Ollama model interaction. * Handle errors gracefully. * Potentially implement a command prefix to trigger the Ollama interaction. **Code Snippets (Python - Example)** This example uses Python because it's commonly used for both Minecraft server interaction and interacting with APIs. You'll need libraries like `mcstatus` (for basic server status and RCON) or a more robust Minecraft protocol library like `python-minecraft-protocol` (for more advanced interaction) and `requests` for making HTTP requests to the Ollama API. ```python import mcstatus import requests import json import time # --- Minecraft Server Interaction --- def get_server_status(server_address, server_port): """Gets the status of the Minecraft server.""" try: server = mcstatus.JavaServer(server_address, server_port) status = server.status() return status except Exception as e: print(f"Error getting server status: {e}") return None def send_command_to_server(server_address, server_port, rcon_password, command): """Sends a command to the Minecraft server using RCON.""" try: server = mcstatus.JavaServer(server_address, server_port) with server.rcon(rcon_password) as rcon: response = rcon.command(command) return response except Exception as e: print(f"Error sending command: {e}") return None def listen_for_chat_messages(server_address, server_port, rcon_password, command_prefix="!ollama"): """Listens for chat messages and processes them.""" # This is a simplified example. A real implementation would need to # continuously monitor the server logs or use a more sophisticated # Minecraft protocol library to receive chat messages in real-time. # This example uses RCON to get the latest server log entries. # It's not ideal for real-time chat monitoring, but it demonstrates the concept. while True: log_entries = send_command_to_server(server_address, server_port, rcon_password, "log read") if log_entries: for line in log_entries.splitlines(): if "]: [CHAT]" in line: try: username = line.split("]: [CHAT]")[0].split("<")[1].split(">")[0] message = line.split("]: [CHAT]")[1].strip() if message.startswith(command_prefix): user_input = message[len(command_prefix):].strip() print(f"Received message from {username}: {user_input}") ollama_response = get_ollama_response(user_input) if ollama_response: send_command_to_server(server_address, server_port, rcon_password, f"say {username}: {ollama_response}") else: send_command_to_server(server_address, server_port, rcon_password, f"say Ollama error.") except IndexError: print(f"Could not parse chat message: {line}") time.sleep(5) # Check for new messages every 5 seconds. Adjust as needed. # --- Ollama Model Interaction --- OLLAMA_API_URL = "http://localhost:11434/api/generate" # Default Ollama API endpoint OLLAMA_MODEL = "llama2" # Replace with your desired Ollama model def get_ollama_response(prompt): """Sends a prompt to the Ollama model and returns the response.""" try: data = { "prompt": prompt, "model": OLLAMA_MODEL, "stream": False # Set to True for streaming responses } response = requests.post(OLLAMA_API_URL, json=data, stream=False) #stream=False for non-streaming response.raise_for_status() # Raise HTTPError for bad responses (4xx or 5xx) json_response = response.json() return json_response["response"] except requests.exceptions.RequestException as e: print(f"Error communicating with Ollama: {e}") return None except json.JSONDecodeError as e: print(f"Error decoding Ollama response: {e}") return None except KeyError as e: print(f"Error extracting response from Ollama JSON: {e}") return None # --- Main --- if __name__ == "__main__": SERVER_ADDRESS = "your_server_address" # Replace with your server address SERVER_PORT = 25565 # Default Minecraft port RCON_PASSWORD = "your_rcon_password" # Replace with your RCON password status = get_server_status(SERVER_ADDRESS, SERVER_PORT) if status: print(f"Server is online with {status.players.online} players.") listen_for_chat_messages(SERVER_ADDRESS, SERVER_PORT, RCON_PASSWORD) else: print("Server is offline.") ``` **Explanation and Key Considerations:** * **Minecraft Protocol Library:** The `mcstatus` library is very basic. For real-time chat monitoring and more robust interaction, use `python-minecraft-protocol`. This library allows you to directly interact with the Minecraft protocol, giving you much more control. It's more complex to use, but it's necessary for a production-ready implementation. You'll need to handle packet parsing and authentication. * **RCON (Remote Console):** RCON is used in the example for simplicity. It allows you to send commands to the server. However, it's not ideal for real-time chat monitoring because you have to poll the server logs. `python-minecraft-protocol` is the better approach for real-time interaction. * **Ollama API:** The code assumes Ollama is running locally on the default port (11434). Adjust `OLLAMA_API_URL` if your Ollama instance is running elsewhere. * **Error Handling:** The code includes basic error handling, but you should add more robust error handling for production use. Consider logging errors to a file. * **Command Prefix:** The `command_prefix` (e.g., `!ollama`) allows players to trigger the Ollama interaction. This prevents the model from responding to every chat message. * **Rate Limiting:** Implement rate limiting to prevent abuse and to avoid overwhelming the Ollama model. You can track the number of requests from each player and limit the frequency. * **Security:** Be very careful about security. Never hardcode sensitive information like RCON passwords in your code. Use environment variables or a configuration file to store sensitive data. Sanitize user input to prevent prompt injection attacks. * **Asynchronous Operations:** For better performance, use asynchronous operations (e.g., `asyncio` in Python) to handle the Minecraft server interaction and the Ollama API calls concurrently. This will prevent the program from blocking while waiting for responses. * **Model Selection:** The `OLLAMA_MODEL` variable allows you to choose which Ollama model to use. Make sure the model is installed in your Ollama instance. * **Streaming Responses:** The `stream` parameter in the Ollama API request can be set to `True` to receive streaming responses. This allows you to display the model's output in real-time as it's being generated. You'll need to modify the code to handle the streaming response format. * **Prompt Engineering:** Experiment with different prompts to get the best results from the Ollama model. You can include context from the Minecraft world in the prompt to make the responses more relevant. * **Context Management:** Consider implementing context management to allow the model to remember previous conversations. You can store the conversation history for each player and include it in the prompt. **Example Usage:** 1. Install the necessary libraries: ```bash pip install mcstatus requests ``` 2. Replace the placeholder values in the code with your actual server address, port, and RCON password. 3. Run the script. 4. In Minecraft, type `!ollama What is the meaning of life?` in the chat. The script will send the prompt to the Ollama model and display the response in the Minecraft chat. **Korean Translation of Key Terms:** * **Minecraft Protocol (MCP):** ๋งˆ์ธํฌ๋ž˜ํ”„ํŠธ ํ”„๋กœํ† ์ฝœ * **Ollama Model:** Ollama ๋ชจ๋ธ * **Server Address:** ์„œ๋ฒ„ ์ฃผ์†Œ * **Server Port:** ์„œ๋ฒ„ ํฌํŠธ * **RCON Password:** RCON ๋น„๋ฐ€๋ฒˆํ˜ธ * **Chat Message:** ์ฑ„ํŒ… ๋ฉ”์‹œ์ง€ * **Prompt:** ํ”„๋กฌํ”„ํŠธ * **Response:** ์‘๋‹ต * **Command Prefix:** ๋ช…๋ น์–ด ์ ‘๋‘์‚ฌ * **Rate Limiting:** ์†๋„ ์ œํ•œ * **Security:** ๋ณด์•ˆ * **Asynchronous Operations:** ๋น„๋™๊ธฐ ์ž‘์—… * **Prompt Engineering:** ํ”„๋กฌํ”„ํŠธ ์—”์ง€๋‹ˆ์–ด๋ง * **Context Management:** ์ปจํ…์ŠคํŠธ ๊ด€๋ฆฌ This detailed explanation and code outline should give you a solid foundation for building your Minecraft server and Ollama model integration. Remember to choose the appropriate Minecraft protocol library based on your needs and to prioritize security and error handling. Good luck!

Browser JavaScript Evaluator

Browser JavaScript Evaluator

This is a reference design for a MCP server that hosts a web page that connects back to the server via sse and allows Claude to execute javascript on the page.

iOS Simulator MCP Server

iOS Simulator MCP Server

Mirror of

Fiberflow MCP Gateway

Fiberflow MCP Gateway

Run Fiberflow MCP SSE Server over stdio.

Gmail MCP Server

Gmail MCP Server

Mirror of

Supergateway

Supergateway

Run MCP stdio servers over SSE and SSE over stdio. AI gateway.

generator-mcp

generator-mcp

Yeoman Generator to quickly create a new MCP Server

MCP Server Playwright

MCP Server Playwright

MCP Server Playwright - Claude ๋ฐ์Šคํฌํ†ฑ์šฉ ๋ธŒ๋ผ์šฐ์ € ์ž๋™ํ™” ์„œ๋น„์Šค

NSAF MCP Server

NSAF MCP Server

๊ฑฐ์šธ

Initial thoughts

Initial thoughts

"OpenAPI specifications๋ฅผ MCP ์„œ๋ฒ„์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๋„๊ตฌ๋กœ ๋ณ€ํ™˜ํ•ฉ๋‹ˆ๋‹ค."

glif-mcp

glif-mcp

๊ฑฐ์šธ

Weather MCP Server

Weather MCP Server

์ƒ˜ํ”Œ ๋‚ ์”จ ์˜ˆ๋ณด ๊ฐ€์ ธ์˜ค๊ธฐ์šฉ MCP ์„œ๋ฒ„ ๊ตฌํ˜„

Spring AI MCP Server ็คบไพ‹้กน็›ฎ

Spring AI MCP Server ็คบไพ‹้กน็›ฎ

Financial Analysis MCP Server

Financial Analysis MCP Server

๊ฑฐ์šธ

ConnectWise Manage MCP Server

ConnectWise Manage MCP Server

A Model Context Protocol (MCP) server for ConnectWise Manage API integration

Ghost MCP Server

Ghost MCP Server

Mirror of

๐Ÿ† LinkedIn DI MCP Server

๐Ÿ† LinkedIn DI MCP Server

Audiense Digital Intelligence LinkedIn MCP ์„œ๋ฒ„๋Š” ๋ชจ๋ธ ์ปจํ…์ŠคํŠธ ํ”„๋กœํ† ์ฝœ(MCP)์„ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•˜๋ฉฐ, Claude ๋ฐ ๊ธฐํƒ€ MCP ํ˜ธํ™˜ ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์‚ฌ์šฉ์ž์˜ Audiense DI LinkedIn ๊ณ„์ •๊ณผ ์ƒํ˜ธ ์ž‘์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.