npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

datamuse-mcp-server

v0.1.0

Published

MCP server for Datamuse — rhymes, synonyms, related words, homophones, autocomplete, word metadata

Readme

MCP server providing 10 word-finding tools powered by the Datamuse API.

Integration with AI Clients

VS Code (GitHub Copilot / Copilot Chat)

Add to your VS Code settings JSON (.vscode/mcp.json or user settings.json):

{
  "mcp": {
    "servers": {
      "datamuse": {
        "command": "node",
        "args": ["/absolute/path/to/datamuse-mcp-server/packages/datamuse-server/dist/index.js"],
        "env": {
          "DATAMUSE_MAX_RESULTS": "50",
          "DATAMUSE_TIMEOUT_MS": "10000"
        }
      }
    }
  }
}

Or if installed globally via npm:

{
  "mcp": {
    "servers": {
      "datamuse": {
        "command": "npx",
        "args": ["datamuse-mcp-server"]
      }
    }
  }
}

Claude Desktop

Add to your Claude Desktop config file (claude_desktop_config.json):

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "datamuse": {
      "command": "node",
      "args": ["/absolute/path/to/datamuse-mcp-server/packages/datamuse-server/dist/index.js"],
      "env": {
        "DATAMUSE_MAX_RESULTS": "50",
        "DATAMUSE_TIMEOUT_MS": "10000"
      }
    }
  }
}

Or if installed globally via npm:

{
  "mcpServers": {
    "datamuse": {
      "command": "npx",
      "args": ["datamuse-mcp-server"]
    }
  }
}

Tools

datamuse_rhymes

Find perfect rhyming words.

Input:  { word: "time", limit?: 20 }
Output: dime, lime, crime, rhyme, climb, paradigm, sublime...

datamuse_near_rhymes

Find approximate/near rhymes.

Input:  { word: "orange", limit?: 20 }
Output: arrange, strange, range...

datamuse_synonyms

Find synonyms.

Input:  { word: "happy", limit?: 20 }
Output: joyful, glad, pleased, cheerful...

datamuse_antonyms

Find words with opposite meaning.

Input:  { word: "happy", limit?: 20 }
Output: sad, unhappy, miserable...

datamuse_related

Find related/associated words with specific relation types.

Input:  { word: "ocean", relation?: "triggers"|"followers"|"predecessors"|"kind_of"|"part_of"|"comprises", limit?: 20 }
Output: (triggers) beach, waves, salt, water...

datamuse_sounds_like

Find words that sound similar (homophones).

Input:  { word: "their", limit?: 20 }
Output: there, they're...

datamuse_spelled_like

Find words matching a spelling pattern (? = single char, * = multi).

Input:  { pattern: "ca?", limit?: 20 }
Output: cat, car, cap, can, cab...

datamuse_autocomplete

Autocomplete suggestions for a prefix.

Input:  { prefix: "hel", limit?: 10 }
Output: hello, help, helicopter, helmet...

datamuse_word_info

Get definitions, syllables, frequency, pronunciation.

Input:  { word: "serendipity" }
Output: (noun) good luck in making unexpected discoveries | 5 syllables | 4.2/million

datamuse_creative_find

Multi-constraint word finding — combine meaning, sound, spelling, and topic.

Input:  { meaningLike?: "ocean", soundsLike?: "see", spelledLike?: "s*", topic?: "nature", limit?: 20 }
Output: sea, surf, shore...

Datamuse API Mapping

| Tool | API Parameter | |------|---------------| | rhymes | rel_rhy | | near_rhymes | rel_nry | | synonyms | rel_syn | | antonyms | rel_ant | | related (triggers) | rel_trg | | related (followers) | lc | | related (predecessors) | rc | | related (kind_of) | rel_spc | | related (part_of) | rel_com | | related (comprises) | rel_par | | sounds_like | sl | | spelled_like | sp | | autocomplete | /sug?s= | | word_info | sp + md=dpsrf + ipa=1 | | creative_find | ml, sl, sp, topics |

Usage

# Run directly
node dist/index.js

# Or via npx
npx datamuse-mcp-server

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | DATAMUSE_BASE_URL | https://api.datamuse.com | API endpoint | | DATAMUSE_MAX_RESULTS | 50 | Max results per query | | DATAMUSE_TIMEOUT_MS | 10000 | Request timeout |

Usage

Ask questions like:

  • "What rhymes with orange?"
  • "Find synonyms for happy"
  • "What words sound like flower?"
  • "Autocomplete the prefix 'ser'"
  • words with a meaning similar to ringing in the ears
  • words related to duck that start with the letter b
  • words related to spoon that end with the letter a
  • words that sound like jirraf
  • words that start with t, end in k, and have two letters in between
  • words that are spelled similarly to hipopatamus
  • adjectives that are often used to describe ocean
  • adjectives describing ocean sorted by how related they are to temperature
  • nouns that are often described by the adjective yellow
  • words that often follow "drink" in a sentence, that start with the letter w
  • words that are triggered by (strongly associated with) the word "cow"
  • suggestions for the user if they have typed in rawand so far