Discover Awesome MCP Servers

Extend your agent with 27,188 capabilities via MCP servers.

All27,188
WinsecMCP

WinsecMCP

Windows Hardening MCP Server

Create your first own server

Create your first own server

了解しました。以下に、文字 "r" をカウントするシンプルな MCP (Minecraft Coder Pack) サーバーのコード例を示します。 ```java package your.package.name; // パッケージ名を適切に変更してください import net.minecraft.server.MinecraftServer; import net.minecraft.server.dedicated.DedicatedServer; import net.minecraft.util.text.TextComponentString; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLServerStartingEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; @Mod(modid = "r_counter", name = "R Counter", version = "1.0") // modid, name, version を適切に変更してください public class RCounter { private int rCount = 0; @Mod.EventHandler public void serverStarting(FMLServerStartingEvent event) { // サーバー起動時に実行される処理 event.registerServerCommand(new CountRCommand()); // コマンドを登録 } // TickEvent.ServerTickEvent を使用して、サーバーのティックごとに処理を実行 @SubscribeEvent public void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.END) { // サーバーのティックごとに実行される処理 MinecraftServer server = MinecraftServer.getServer(); if (server != null) { // サーバーに接続しているすべてのプレイヤーの名前をチェック server.getPlayerList().getPlayers().forEach(player -> { String playerName = player.getName(); // プレイヤー名に含まれる "r" の数をカウント for (char c : playerName.toLowerCase().toCharArray()) { if (c == 'r') { rCount++; } } }); } } } // "r" の数を表示するコマンド public static class CountRCommand extends net.minecraft.command.CommandBase { @Override public String getName() { return "countr"; // コマンド名 } @Override public String getUsage(net.minecraft.command.ICommandSender sender) { return "/countr"; // コマンドの使い方 } @Override public void execute(MinecraftServer server, net.minecraft.command.ICommandSender sender, String[] args) throws net.minecraft.command.CommandException { // RCounter インスタンスを取得 RCounter rCounterInstance = (RCounter) server.getEntityWorld().getMinecraftServer().getModObject("r_counter"); // modid を使用 if (rCounterInstance != null) { // "r" の数を送信者に表示 sender.sendMessage(new TextComponentString("Total 'r' count in player names: " + rCounterInstance.rCount)); } else { sender.sendMessage(new TextComponentString("Error: RCounter instance not found.")); } } } } ``` **解説:** 1. **パッケージとインポート:** 適切なパッケージ名を設定し、必要なクラスをインポートします。 2. **Mod アノテーション:** `modid`, `name`, `version` を適切に設定します。 3. **`rCount` 変数:** "r" の数を保持する変数です。 4. **`serverStarting` メソッド:** サーバー起動時に実行される処理を記述します。ここでは、`CountRCommand` を登録しています。 5. **`onServerTick` メソッド:** サーバーのティックごとに実行される処理を記述します。 * `MinecraftServer.getServer()` でサーバーインスタンスを取得します。 * `server.getPlayerList().getPlayers()` で接続しているすべてのプレイヤーのリストを取得します。 * 各プレイヤーの名前を取得し、`toLowerCase()` で小文字に変換してから、`toCharArray()` で文字配列に変換します。 * 文字配列をループし、`'r'` が出現するたびに `rCount` をインクリメントします。 6. **`CountRCommand` クラス:** `/countr` コマンドを実装します。 * `getName()` でコマンド名を定義します。 * `getUsage()` でコマンドの使い方を定義します。 * `execute()` でコマンド実行時の処理を記述します。 * `server.getEntityWorld().getMinecraftServer().getModObject("r_counter")` で `RCounter` のインスタンスを取得します。 `"r_counter"` は `Mod` アノテーションで定義した `modid` です。 * `rCount` の値をコマンド実行者に送信します。 **使い方:** 1. このコードを Java ファイル (`RCounter.java` など) に保存します。 2. MCP 環境をセットアップし、このファイルを `src/main/java/your/package/name` に配置します (パッケージ名を適切に変更してください)。 3. `build.gradle` ファイルに Forge の依存関係を追加します。 4. MCP を実行して、Mod をビルドします。 5. 生成された Mod ファイルを Minecraft の `mods` フォルダに配置します。 6. Minecraft サーバーを起動します。 7. ゲーム内で `/countr` コマンドを実行すると、プレイヤー名に含まれる "r" の合計数が表示されます。 **注意点:** * このコードは、サーバーに接続しているプレイヤーの名前のみをチェックします。 * `your.package.name` を適切なパッケージ名に変更してください。 * `modid`, `name`, `version` を適切に変更してください。 * このコードは基本的な例であり、エラー処理やパフォーマンスの最適化は含まれていません。 * `getModObject` は非推奨のメソッドである可能性があります。より新しい方法で Mod インスタンスを取得する方法を検討してください。例えば、`@Mod.Instance` アノテーションを使用する方法があります。 **改善点:** * 設定ファイルから "r" をカウントする対象の文字を変更できるようにする。 * カウント対象をプレイヤー名だけでなく、チャットメッセージなどにも拡張する。 * カウント結果をログファイルに記録する。 * より効率的な文字列検索アルゴリズムを使用する。 このコードが、あなたの目的に役立つことを願っています。

CBCI MCP

CBCI MCP

Enables dynamic database querying through natural language questions using LLM-powered parameter extraction and template-based SQL generation. Supports flexible configuration for various domains and databases with automated response formatting.

Compiler Explorer MCP

Compiler Explorer MCP

LLMをCompiler Explorer APIに接続し、コードのコンパイル、コンパイラ機能の調査、さまざまなコンパイラや言語における最適化の分析を可能にする、モデルコンテキストプロトコルサーバー。

AutoDev MCP

AutoDev MCP

A dual-track testing server that combines CLI test execution with Playwright-based browser testing and persistent SQLite logging. It enables automated test pipelines, Git integration, and evidence-based requirement generation to streamline the development lifecycle.

Xiaobai Print MCP

Xiaobai Print MCP

An MCP server and local HTTP bridge designed to integrate remote upstream MCP tools into OpenClaw skills or local environments. It enables users to generate skill wrappers and proxy tool calls via a local HTTP bridge for use in Claude Desktop, Cursor, or OpenClaw.

Complexipy MCP Server

Complexipy MCP Server

Analyzes cognitive complexity of Python code by scanning files and directories to identify functions exceeding complexity thresholds using the complexipy library.

InfiniteMCP

InfiniteMCP

A meta-MCP server that acts as a universal gateway, allowing users to discover and execute tools from thousands of other MCP servers through semantic search. It dynamically loads servers on demand and provides standardized functions for searching, discovering, and running tools across the entire MCP ecosystem.

Gemini MCP Server

Gemini MCP Server

Integrates Google Gemini API capabilities into Claude Code, supporting text generation, image analysis, and AI image creation. It features specialized tools for creative brainstorming and managing multi-turn chat sessions.

hyperliquid-whalealert-mcp

hyperliquid-whalealert-mcp

hyperliquid-whalealert-mcp

DataForSEO MCP Server

DataForSEO MCP Server

Enables AI assistants to interact with DataForSEO APIs and obtain SEO data including SERP results, keyword research, on-page metrics, backlink analysis, and domain analytics through a standardized interface.

SFCC MCP Server

SFCC MCP Server

Software Planning Tool

Software Planning Tool

Facilitates software development planning through interactive sessions that break down projects into manageable tasks with complexity scoring, code examples, and implementation plan management.

MCP Server: ComfyUI Selfie

MCP Server: ComfyUI Selfie

チャットアシスタントに自撮り写真を生成させてください。

GitHubMcpServer

GitHubMcpServer

Exposes GitHub REST API operations as AI-ready tools for managing repositories, tracking push history, and updating settings. It enables LLM agents to perform tasks like creating repositories, retrieving metadata, and monitoring branch activity through a standardized interface.

Heimdall

Heimdall

Heimdallは、ローカルのMCPサーバーを管理するための軽量なサービスで、単一のnpxコマンドでインストールできます。特定のMCPサーバースツールをMCPクライアントに対して承認でき、同じ設定がデバイス上のすべてのMCPクライアントからアクセス可能です。

faster-whisper-mcp

faster-whisper-mcp

Enables high-quality transcription and subtitle generation from local media files or URLs using Faster Whisper on local hardware. It supports automatic language detection and integration with MCP clients for seamless speech-to-text workflows.

AnkiMCP Server

AnkiMCP Server

Exposes Anki flashcard collections to AI assistants via MCP, enabling AI-powered study sessions, card creation, deck management, and review workflows. Supports comprehensive collection operations including search, media management, and note type customization.

TypeScript MCP

TypeScript MCP

A specialized server that provides advanced TypeScript code manipulation and analysis capabilities, enabling refactoring, navigation, diagnostics, and module analysis through Claude.

Philips Hue MCP Server

Philips Hue MCP Server

ClaudeのようなAIアシスタントが、自然言語コマンドを通じてPhilips Hueスマート照明システムを制御できるようにする、モデルコンテキストプロトコルインターフェース。

MATLAB MCP Server

MATLAB MCP Server

MATLAB Engine APIを使用してPythonからMATLABコードを実行できるようにし、複数のリクエスト間でMATLABセッションを共有することで、Claude Desktopとのシームレスな統合を可能にします。

NetBrain MCP

NetBrain MCP

An open-source network operations integration platform that connects large language models with network devices through the Model Context Protocol, allowing AI assistants to perform network configuration, diagnostics, and management tasks.

YouTube MCP

YouTube MCP

A Model Context Protocol server that analyzes YouTube videos, enabling users to extract transcripts, generate summaries, and query video content using Gemini AI.

MCP Weather Server

MCP Weather Server

Provides real-time weather information and multi-day forecasts for global locations using city names, coordinates, or ZIP codes. It includes tools for current conditions, forecasting, and weather summaries designed for activity planning.

Payday MCP Server

Payday MCP Server

Enables secure, read-only access to the Payday API through Claude Desktop with OAuth2 authentication. Supports querying customers, invoices, expenses, and payments with multi-profile support for different environments.

FIXParser MCP

FIXParser MCP

Introducing the Agentic Trading Co-Pilot, a next-gen AI assistant powered by FIXParser, enabling real-time market access, intelligent order execution, and autonomous trading decisions—all through seamless FIX protocol integration.

Linear Regression MCP

Linear Regression MCP

CSVファイルをアップロードするだけで、Claudeが線形回帰モデルをトレーニングできるMCPサーバー。データの前処理からモデル評価まで、MLパイプライン全体を処理します。

Aspen Catalog MCP

Aspen Catalog MCP

Enables AI clients to search Aspen Discovery library catalogs and check real-time book availability by keyword, author, or ISBN. This server allows users to verify local library inventory and filter book recommendations accordingly.

Swiss Health MCP Server

Swiss Health MCP Server

Provides AI assistants access to 1.6 million Swiss health insurance premium records from 55 insurers across 11 years (2016-2026), enabling price comparisons, historical analysis, and finding the cheapest insurance options based on location, age, and coverage preferences.

Code Review MCP

Code Review MCP

Enables comprehensive GitHub PR reviews through Cursor's AI by fetching PR diffs, running static analysis tools (ESLint, Prettier, TypeScript, Semgrep), executing tests, and generating detailed code review reports with inline comments.