Skip to main content
Glama

datamuse-mcp

npm version npm downloads license node github release publish workflow

MCP server for the Datamuse API (word search, rhymes, synonyms, and more).

This project is open source, free to use, and licensed under MIT.

About

datamuse-mcp is a local stdio MCP server that wraps Datamuse endpoints into validated MCP tools. It is designed for practical word-finding use cases in assistants and clients that support MCP.

Related MCP server: multilingual-dictionary-mcp

Purpose

This server provides simple MCP tools to:

  • find synonyms, antonyms, and rhymes;

  • run autocomplete;

  • fetch lexical details (definitions, POS, syllables, pronunciation, frequency);

  • search by spelling pattern (*, ?) or phonetic similarity.

Requirements

  • Node.js >= 18

  • npm

Install

npm install

Development

npm run dev

Build & run

npm run build
npm start

Manual JSON-RPC checks

# List tools
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node dist/index.js

# Call a tool
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"find_synonyms","arguments":{"word":"happy"}}}' | node dist/index.js

More tool examples

{ "tool": "find_antonyms", "arguments": { "word": "happy", "max": 10 } }
{ "tool": "find_rhymes", "arguments": { "word": "love", "type": "perfect", "max": 20 } }
{ "tool": "find_similar_sounding", "arguments": { "text": "definately", "max": 15 } }
{ "tool": "find_by_pattern", "arguments": { "pattern": "s??r?", "meaning_hint": "celestial", "max": 25 } }
{ "tool": "find_related_words", "arguments": { "word": "music", "relation_type": "triggers", "max": 15 } }
{ "tool": "get_word_info", "arguments": { "word": "serendipity" } }
{ "tool": "autocomplete", "arguments": { "prefix": "astro", "max": 10 } }

Claude Desktop configuration

Add this to claude_desktop_config.json:

{
  "mcpServers": {
    "datamuse": {
      "command": "node",
      "args": ["/absolute/path/to/datamuse-mcp/dist/index.js"]
    }
  }
}

Exposed tools

  • find_synonyms

  • find_antonyms

  • find_rhymes

  • find_similar_sounding

  • find_by_pattern

  • find_related_words

  • find_adjectives_for_noun

  • find_nouns_for_adjective

  • get_word_info

  • autocomplete

Security and limits

  • The server runs over stdio (local usage recommended).

  • Outbound requests go to https://api.datamuse.com.

  • A local in-memory cache is used (5-minute TTL), with no disk persistence.

  • Datamuse may enforce request limits/quotas.

Publishing

For npm and MCP Registry deployment, see PUBLISHING.md.

Contributing

See CONTRIBUTING.md.

License

MIT — see LICENSE.

Available Tools

10 tools
autocompleteA

Get word suggestions for a partial input. Includes intelligent spelling correction and phonetic fallbacks when exact prefix matches aren't found.

Inputs: prefix (required), max.

find_adjectives_for_nounB

Find adjectives commonly used to describe a noun. Based on Google Books Ngrams data. Example: 'ocean' → deep, blue, vast, pacific.

Inputs: noun (required), max.

find_antonymsA

Find antonyms (words with opposite meanings) for a given word using WordNet relationships.

Inputs: word (required), max.

find_by_patternA

Find words matching a spelling pattern with wildcards. Use '' for any number of characters, '?' for exactly one character. Examples: 't??k' matches talk/tank/tick, 'unable' matches unable/unforgettable.

Inputs: pattern (required), max, meaning_hint.

find_nouns_for_adjectiveA

Find nouns commonly described by an adjective. Based on Google Books Ngrams data. Example: 'yellow' → sun, light, fever, pages.

Inputs: adjective (required), max.

find_rhymesA

Find words that rhyme with a given word. Supports perfect rhymes and near-rhymes. Useful for poetry, songwriting, and creative writing.

Inputs: word (required), max, type.

find_similar_soundingA

Find words that sound similar to the input. Useful for spelling correction, finding homophones, creating puns, or phonetic matching.

Inputs: text (required), max.

find_synonymsB

Find synonyms (words with similar meanings) for a given word. Uses WordNet and corpus data. Optionally bias results toward a specific topic.

Inputs: word (required), max, topic.

get_word_infoA

Get detailed information about a word including: definitions, part of speech, syllable count, pronunciation (IPA), and usage frequency.

Inputs: word (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct lexical relationship (synonyms, antonyms, rhymes, sound-alikes, pattern, related words, adjective-noun, noun-adjective, info, autocomplete) with no overlap. An agent can easily select the correct tool based on the desired operation.

    Naming Consistency4/5

    Most tools follow a 'find_' prefix pattern (e.g., find_synonyms, find_rhymes), but 'get_word_info' and 'autocomplete' deviate. This is a minor inconsistency in an otherwise coherent naming scheme.

    Tool Count5/5

    10 tools is a well-scoped set for a word query server. Each tool provides essential functionality without redundancy, making the surface manageable and purposeful.

    Completeness5/5

    The tools cover a broad range of word relationships: synonyms, antonyms, rhymes, phonetic matching, pattern matching, semantic relations, collocations, dictionary info, and autocomplete. There are no obvious gaps for common lexical queries.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers