
Datamuse Mcp Server
io.github.cyanheads由 GitHub 帳號 cyanheads 發布v0.2.0更新於 Oct 24, 2026
使用 Datamuse 查詢押韻詞、同義詞、諧音詞、拼寫符合詞和詞語聯想。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Find rhymes, synonyms, sound-alikes, spelling matches, and word associations with Datamuse.
概覽
Datamuse 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Datamuse Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@cyanheads/datamuse-mcp-server
Find rhymes, synonyms, sound-alikes, spelling matches, and word associations with Datamuse via MCP. STDIO or Streamable HTTP.
Overview
Word finding for writing, editing, puzzles, and naming, powered by the Datamuse API. Find a rhyme with a particular meaning, explore lexical alternatives, or combine meaning, sound, spelling, and relation constraints.
Tools
Capability reference
datamuse_find_rhymes tool
- Required
word;rhyme_typeisexact(default) ornear, never blended; optionalmeans_likeandspelled_likenarrow the same search. English only - Shared search controls:
limit(default 20),offset(default 0),include_definitions,include_pronunciation, andinclude_ipa(metadata options defaultfalse). Rows carry whatever metadata Datamuse supplies
datamuse_find_synonyms tool
- Required
word;relationissynonyms(default),antonyms,broader(direct hypernyms), ornarrower(direct hyponyms). English only - Same shared search controls as rhymes; statistical associations are the
associatedrelation ofdatamuse_find_words
datamuse_find_words tool
- At least one of
means_like,sounds_like,spelled_like(upstream spelling patterns), or up to 14relations: [{ relation, word }], all conjoined; repeated relations are kept.left_context,right_context, and up to fivetopics, each a single word, affect ordering only - Relations:
exact_rhyme,near_rhyme,synonyms,antonyms,broader,narrower,parts,wholes,nouns_modified_by,adjectives_describing,followers,predecessors,associated,homophones,consonant_match;datamuse_list_referencegives their directions vocabularyisen(default) ores; Spanish takes meaning, sound, and spelling constraints, not relations. Rejections are typed:missing_constraint,unsupported_vocabulary_relation,invalid_context_hint
Spelling patterns are interpreted by Datamuse using supported OneLook syntax:
For anagrams, call datamuse_find_words with {"spelled_like":"//listen"}. +letters restricts allowed letters and -letters excludes them; neither requires every listed letter.
datamuse_get_word_info tool
Supply 1–100 nonblank words, each at most 200 characters. The first ten are processed sequentially through the shared request budget; later entries return processing_cap. One 20-second deadline includes all requests, retries and pacing. Completed results survive item failures; pending entries return deadline_exceeded. Caller cancellation stops the call.
The same include_definitions, include_pronunciation, and include_ipa options apply. Each indexed outcome contains trimmed caller input and either a complete raw row, a failure reason with recovery, or an unprocessed reason. Only a query-tagged echo matching the supplied spelling under Unicode lowercase is accepted: Ice Cream can return raw row.word='ice cream', while corrections are never substituted. Missing metadata stays absent, and duplicates keep their indices. Lookup output is complete on both MCP surfaces and has no search byte slicing.
datamuse_list_reference tool
topicisall(default),relations,metadata,combinations, orlimitations- Returns static
sections: [{ topic, text }]without a network request
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Datamuse-specific:
- Live queries to Datamuse's fixed HTTPS
/wordsendpoint, with no local mirror or stored queries - One request budget shared by every tool and tenant: one start per second, one request in flight, a bounded queue, and one retry. It is process-local, so it does not account for other processes or other users of the same egress address
- Results are corpus-derived suggestions with sense-dependent, sometimes guessed metadata (parts of speech, syllables,
f:frequency per million words). They do not establish dictionary completeness or poetic suitability
Agent-friendly output:
- Effective-query echo and honest caps: every search returns
effectiveQuery,returnedCount,limitReached, andtruncated, plus relevant notices andnextOffset. Positive safe-integer limits above 1000 are clamped withrequestedLimitand effectivelimitechoed. Invalid integers reject before I/O - Whole-row navigation:
offsetaccepts 0–999. Searches fetchmax=min(1000, offset+limit)and select complete rows under 64,000 bytes per serialized MCP surface, including escaping and enrichment. A local byte cut setstruncated=true; re-run withoffset=nextOffsetwhen supplied. One oversized row is returned intact with a soft-budget notice and offset progress. API-cap notices are separate from byte cuts. Rankings can change between calls, so offsets are best-effort navigation with possible duplicates or gaps, never snapshots, stable pagination, totals, or proof of exhaustion. No continuation beyond index 999 - Phrase relation recovery: phrase targets stay accepted and unchanged. When a relation query returns empty, guidance explains limited phrase coverage and suggests
means_likeorsounds_like; rhyme guidance also suggests explicitly trying the final word - Optional pronunciation:
include_pronunciationappendsrtomd;include_ipaimplies pronunciation and addsipa=1. Rawpron:andipa_pron:tags may both occur. ARPAbet stress digits mean 0 unstressed, 1 primary, 2 secondary; pronunciations may be guessed, sense-dependent, or absent - Lossless rows:
wordplus whateverscore,numSyllables,tags,defs,defHeadword, and other fields Datamuse sent, unchanged and in upstream order, identical instructuredContentand the fenced JSON text.scoreranks results within one query only - Typed failures: declared reasons for access errors, rate limits (
upstream_rate_limitedandpacer_shed, withretryAfter), malformed upstream data, and invalid input, each with a recovery hint
Access, privacy, and attribution
Datamuse currently documents keyless access up to 100,000 requests per day and asks customer-facing applications to contact it. It has announced manually issued API keys for early 2027, with conflicting dates: January 1 in its usage section and February 1 in its banner. No key format is documented yet, so this server uses the keyless API, and access may be interrupted at the switch.
Queries are sent to Datamuse, which keeps a temporary log of them until the end of the following day. Server payload logging and telemetry are optional; review their settings before sending sensitive text.
Word results and lexical metadata come from Datamuse; see its documentation for data sources and attribution requirements. The Apache-2.0 license covers this server's code, not the upstream data.
Getting started
Add the following to your MCP client configuration file.
Or with npx (no Bun required):
Or with Docker:
For Streamable HTTP, set the transport and start the server:
Prerequisites
- Bun v1.4.0 or higher (or Node.js v24+).
- No Datamuse credentials are currently required; see Access, privacy, and attribution for the announced key transition.
Installation
- Clone the repository:
- Navigate into the directory:
- Install dependencies:
- Configure environment:
Configuration
See .env.example for every server setting and the common framework overrides.
Running the server
Local development
-
Build and run the production version:
-
Run checks and tests:
Project structure
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor logging,ctx.statefor storage - Register new tools and resources in the
createApp()arrays insrc/index.ts - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
License
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
來源:README.md,提交 9ce1d06
工具
0版本歷史
2- v0.2.0最新Oct 20, 2026
- v0.1.1Oct 20, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分