Skip to main content
Glama
Dictionary Lookup MCP Server

Dictionary Lookup MCP Server

Dictionary Lookup MCP Server

公式Python SDKで構築された最小限のModel Context Protocolサーバーです。defineという1つのツールを公開しており、無料のdictionaryapi.dev APIを使用して英単語の定義を検索します。

このプロジェクトは、MCPサーバーの構造、クライアントとの通信方法、そして公開デプロイの方法を理解するための学習演習として構築されました。

機能

  • 単一のツールを公開: define(word: str) -> str

  • 単語を指定すると、品詞と定義を返します

  • APIキーや認証は不要です

Related MCP server: yifanli-mcp-add-demo

必要条件

  • Python 3.10+

  • uv (推奨) または pip

セットアップ (ローカル)

# 1. Clone this repo
git clone <your-repo-url>
cd my-mcp-server

# 2. Install dependencies
uv sync

ローカルでの実行

オプションA — MCP Inspector (ビジュアルテストツール、初心者に最適):

uv run mcp dev server.py

これによりブラウザベースのインスペクタが開き、完全なAIクライアントを必要とせずにdefineツールを直接呼び出してリクエスト/レスポンスを確認できます。

オプションB — Claude Desktopに接続:

Claude Desktopの設定ファイル(claude_desktop_config.json)にこれを追加します:

{
  "mcpServers": {
    "dictionary-lookup": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/my-mcp-server",
        "run",
        "server.py"
      ]
    }
  }
}

Claude Desktopを再起動し、次のように質問します: 「辞書ツールを使って'ephemeral'を定義してください。」

使用例

入力: define("ephemeral") 出力: ephemeral (adjective): lasting for a very short time.

デプロイ

このサーバーはSmitheryで公開されています: <link once deployed>

独自のコピーをデプロイするには:

  1. このリポジトリをGitHubにプッシュします。

  2. リモートホスティング用にserver.pyがstreamable-httpトランスポートをサポートしていることを確認します。

  3. ホストするか(Render/Railwayなど)、Smitheryの公開フローを使用します。

  4. Smitheryで「Publish via URL」を選択し、ホストしたサーバーのエンドポイントを指定します。

このプロジェクトの目的

MCPの基礎を学ぶために構築されました: クライアントがサーバーのツールをどのように発見するか、ツール呼び出しがどのように行われ応答されるか、そして動作するサーバーがSmitheryのようなマーケットプレイスを通じてどのように公開共有されるか。

Available Tools

1 tool
defineA

Look up the definition of an English word and return it as text.

Inputs: word (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    There is only one tool, so there is no possibility of confusing it with another tool. Its purpose is immediately clear and unambiguous.

    Naming Consistency5/5

    The single tool name 'define' is a clear imperative verb that matches its action. With only one tool, there are no mixed naming conventions or inconsistencies.

    Tool Count3/5

    One tool feels thin for a server labeled as a dictionary lookup service, though it does cover the core definition lookup need. It is borderline rather than extreme.

    Completeness4/5

    The core lookup functionality is covered well, but a dictionary server might reasonably include related operations like synonyms, usage examples, or pronunciation. These are minor gaps rather than fatal omissions.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A minimal Model Context Protocol server built with FastAPI that provides a basic "Hello World" resource and tool. Serves as a starting point for building and validating MCP client integrations with richer resources and tools.
      -
    • F
      license
      B
      quality
      Not graded
      maintenance
      A minimal Model Context Protocol server that provides a simple tool for adding two integers. It serves as a demonstration of the official Python MCP SDK and is designed for local execution via stdio.
      1
      -
    • A
      license
      A
      quality
      D
      maintenance
      A minimal starting point for a Model Context Protocol server with stdio transport and one tool, enabling quick setup and custom tool addition.
      1
      ISC