Dictionary Server

by meowrain

7 stars
358 downloads
Not rated
GitHub

About

Dictionary Server is a Model Context Protocol (MCP) server that retrieves word meanings, pronunciation, definitions, and example sentences from the Cambridge Dictionary. It is designed for developers building AI assistants (like Claude) or any MCP‑compatible tool that needs…

Details

Author
meowrain
GitHub stars
7
Downloads
358
Categories
Other, API

- Seamless integration with Claude and other AI assistants via MCP.
- Robust lookup_word tool for querying words.
- Retrieves meaning, pronunciation, and example sentences from Cambridge Dictionary.
- Returns structured JSON responses adhering to MCP specification.
- Error responses include isError: true for transparent handling.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Dictionary Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Integrate the server by adding the following configuration to your MCP settings:

"mcp-server-cambridge-dict": {
"command": "npx",
"args": ["-y", "mcp-server-dictionary"],
"disabled": false
}

After configuration, run the server with npm run start:mcp. You can also test it using the MCP Inspector via npm run inspector.

lookup_word

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "dictionary server": {
            "dictionary-server": {
                "command": "npx",
                "args": [
                    "-y",
                    "mcp-server-dictionary"
                ],
                "disabled": false
            }
        }
    }
}

McpServers

{
    "dictionary-server": {
        "command": "npx",
        "args": [
            "-y",
            "mcp-server-dictionary"
        ],
        "disabled": false
    }
}

Dictionary Server

smithery badge

A dictionary server supporting the Model Context Protocol (MCP).

Retrieves word meanings from the Cambridge Dictionary.

Adding MCP to Command Line

To integrate the MCP server into your command line, add the following configuration:

"mcp-server-cambridge-dict": {
  "command": "npx",
  "args": ["-y", "mcp-server-dictionary"],
  "disabled": false
}

Features

- Seamless integration with Claude and other AI assistants via the MCP protocol.
- Robust dictionary query tools.
- Retrieves word meanings from the Cambridge Dictionary.

Development

Install Dependencies

Install the required dependencies:

npm install

Build the Server

Build the server for production:

npm run build

Development Mode

Enable auto-rebuild during development:

npm run watch

Running the Server

Start the MCP server with the following command:

npm run start:mcp

Testing with MCP Inspector

To test the server, use the MCP Inspector:

npm run inspector

MCP Response Specification

This server adheres to the MCP response specification.

Tool Response

A successful word query returns the following format:

{
  "content": [
    {
      "type": "text",
      "text": "Word query result (in JSON format)"
    }
  ]
}

Error Response

In case of an error, the response format is:

{
  "content": [
    {
      "type": "text",
      "text": "Error message"
    }
  ],
  "isError": true
}

API Documentation

lookup_word

Fetches the pronunciation, definition, and example sentences for a word.

Parameters

- word (string): The word to query.

Returns

Detailed information about the word, including pronunciation, definition, and example sentences.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.