Crossword MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Crossword MCP Serverload grid-001.txt and clue-001.txt then find consistent solutions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
クロスワード MCP サーバー
このリポジトリは、クロスワード支援MCPサーバーです。盤面とカギ定義が記載されたテキストファイルを読み込み、候補語の登録、整合性チェック、最終盤面の描画などを行えます。
必要環境
Python 3.11 以降
依存関係は uv run 経由でインストールされるため、事前に手動で pip install する必要はありません。
Related MCP server: Greenloom CAD MCP Server
データ形式
グリッド (
data/grid-*.txt)全角数字で行・列番号を記載
入力可能なマスは全角の「?」
黒マスは全角の「#」
カギ (
data/clue-*.txt)1 行 1 レコードの JSON Lines
id,direction("across"/"down"),row,col,length,clueをすべて指定
data/フォルダに、サンプルのgridとclueのペアを記載しています。別の問題を解かせたい場合は、このファイルを参考にgrid, clueのファイルを作成してください。
提供ツール
MCP サーバーは次のツール(メソッド)を提供します。
ツール名 | 説明 |
| グリッドとカギ定義を読み込み、状態を初期化します。 |
| 文字数が一致する候補語を追加登録します。既存候補は保持され、重複は無視されます。 |
| 指定した |
| 現在の候補語から整合性を満たす組合せを全探索します。 |
| 全カギの解答(ひらがなのみ)を盤面に反映し、整形済みのグリッドを描画します。 |
| 上記ツール群を組み合わせて解法を進めるためのプロンプトです。 |
Claude Code への登録と利用方法
Claude Code に本サーバーを追加するには、プロジェクトルートで次のコマンドを実行してください。
claude mcp add crossword_tools --scope project -- uv run --with fastmcp fastmcp run src/server.py(crossword_tools はこのサーバーに付与する MCP 名称です。必要に応じて変更してください)
登録後は、Claude Code においてカスタムスラッシュコマンド /crossword_tools を選択し、引数としてグリッドとカギのファイル(またはテキスト)を指定してください。
プロンプトに沿って、Claude Codeが自律的に状態の初期化や候補語の追加、整合性チェックを行い、最終解答にたどり着いた場合はその解答の描画・レポート作成を行います。
/crossword_tools:solve_crossword (MCP) grid-001.txt clue-001.txtライセンス
本リポジトリは MIT License の下で提供されます。
Available Tools
5 toolsget_candidatesA
登録済みの候補語リストを取得する。
Args:
clue_id (str): 取得対象のカギ ID。事前に register_candidates で候補を登録して
いる必要がある。
Returns: list[str]: 登録済み候補語のリスト。登録時に渡した文字列を順序どおりに返す。
Raises:
ValueError: clue_id が空の場合。
KeyError: 指定した clue_id の候補が未登録の場合。
| Name | Required | Description | Default |
|---|---|---|---|
| clue_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden and does well. It discloses that the tool returns a list in the original registration order, specifies two error conditions (ValueError for empty clue_id, KeyError for unregistered clue_id), and indicates this is a retrieval operation rather than a mutation. It doesn't mention performance characteristics like rate limits or authentication needs, but covers the essential behavioral aspects.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with clear sections (Args, Returns, Raises) and front-loads the core purpose. Each sentence earns its place by providing essential information. It could be slightly more concise in the Japanese portion, but overall it's efficiently organized with no wasted text.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (single parameter retrieval), no annotations, but with an output schema present, the description is complete. It covers purpose, parameter meaning, return behavior, error conditions, and prerequisites. The output schema handles return value documentation, so the description appropriately focuses on operational context rather than repeating schema information.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 0% description coverage, so the description must fully compensate. It provides comprehensive parameter semantics: explains that clue_id identifies which set of candidates to retrieve, specifies it must be non-empty, and clarifies the prerequisite relationship with register_candidates. This adds significant value beyond the bare schema type information.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('取得する' - retrieve/get) and resource ('登録済みの候補語リスト' - registered candidate word list). It distinguishes from sibling tools by specifying it retrieves pre-registered candidates rather than registering them (register_candidates) or searching (search_consistent_sets). The purpose is precise and unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context about when to use this tool: when you need to retrieve previously registered candidates for a specific clue_id. It mentions the prerequisite that candidates must have been registered via 'register_candidates' first. However, it doesn't explicitly state when NOT to use this tool or name specific alternatives among the siblings, which prevents a perfect score.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
register_candidatesA
指定したカギに対して文字数がマッチする候補語を追加登録する。登録済みと除外された語をまとめて返す。
Args:
clue_id (str): 登録対象のカギ ID。setup で読み込んだカギ定義に存在している
必要がある。前後の空白は自動で除去される。
candidates (list[str]): 追加したい候補語のリスト。空文字は許容されない。
カギの length と文字数が一致しない語は登録されず、除外リストに入る。
Returns:
dict[str, list[str]]: registered に登録後の候補語リスト(過去の登録分を含む)、
rejected に長さ不一致で追加できなかった語のリストを格納する辞書。
Notes: 長さが一致した語のみ状態に追加され、既存の候補リストは保持したまま追記される。 同じ語が既に登録済みの場合は無視される。
Raises:
RuntimeError: setup をまだ呼び出していない場合。
ValueError: clue_id が空、または候補語が空文字だった場合。
KeyError: 指定した clue_id のカギが存在しない場合。
| Name | Required | Description | Default |
|---|---|---|---|
| clue_id | Yes | ||
| candidates | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden and delivers comprehensive behavioral disclosure. It describes the tool's mutation behavior (adds candidates to existing state), idempotency (duplicates are ignored), validation logic (length matching, non-empty strings), error conditions, and return structure. It also explains state persistence ('既存の候補リストは保持したまま追記される' - existing candidate list is maintained and appended to).
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured and efficiently organized with clear sections (purpose statement, Args, Returns, Notes, Raises). Every sentence adds value: the opening statement defines the core operation, followed by organized technical details. No redundant or verbose content is present.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's mutation complexity and lack of annotations, the description provides complete context. It covers purpose, usage prerequisites, parameter semantics, behavioral details (validation, idempotency, state changes), return values (though output schema exists, the description clarifies the dictionary structure), and error conditions. The presence of an output schema reduces the need to explain return types, but the description still adds valuable context about what 'registered' and 'rejected' contain.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Despite 0% schema description coverage, the description fully compensates by providing detailed parameter semantics in the Args section. It explains clue_id must exist in setup-loaded definitions and gets trimmed, and candidates must be non-empty strings with length matching the clue's length. The description adds crucial validation logic not inferable from the bare schema types.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with specific verbs ('追加登録する' - add/register) and resources ('候補語' - candidate words) for a specific target ('指定したカギ' - specified clue). It distinguishes from siblings by focusing on registration rather than retrieval (get_candidates), rendering (render_solution), searching (search_consistent_sets), or setup (setup).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit usage guidance: it states when to use (to add candidate words matching length to a clue), prerequisites (must call 'setup' first, clue_id must exist in loaded definitions), and exclusions (candidates must be non-empty strings, length must match clue's length). The 'Raises' section further clarifies error conditions that guide proper usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
render_solutionA
全カギの解答を盤面へ反映し、整合性チェックを通過した描画結果を返す。
Args:
assignments (dict[str, str]): clue_id をキーとした解答文字列の辞書。setup
済みのすべてのカギに対して、黒マス以外のセルを埋める語を指定する。
各文字列は純粋なひらがなのみで構成されている必要がある。
Returns: str: 列・行番号付きで整形したグリッド文字列。交差が一致している場合のみ 返される。
Raises:
RuntimeError: setup が未実行の場合。
ValueError: 未指定または未知の clue_id がある、解答が空文字、長さ不一致、
ひらがな以外の文字が含まれている、あるいは黒マスとの衝突・既存文字との
矛盾が発生した場合。
| Name | Required | Description | Default |
|---|---|---|---|
| assignments | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden and does so effectively. It discloses critical behavioral traits: it performs validation ('整合性チェックを通過した'), returns only consistent results ('交差が一致している場合のみ返される'), and raises specific errors for various failure modes (RuntimeError, ValueError). This covers safety, validation logic, and error conditions beyond basic input/output.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is efficiently structured with a clear purpose statement, followed by organized sections for Args, Returns, and Raises. Each sentence adds value: the first defines the core action, and subsequent sections provide essential usage details without redundancy. It's appropriately sized for a tool with complex validation logic.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (validation, rendering, error handling), no annotations, and an output schema present, the description is complete. It covers purpose, prerequisites, parameter semantics, return format, and error conditions thoroughly. The output schema handles return structure, so the description appropriately focuses on behavioral context and constraints.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate fully. It does so by explaining the parameter's purpose ('clue_id をキーとした解答文字列の辞書'), constraints ('setup 済みのすべてのカギに対して', '黒マス以外のセルを埋める語'), format requirements ('純粋なひらがなのみで構成されている必要がある'), and error cases related to it. This adds substantial meaning beyond the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('render_solution', '反映し', '返す') and resource ('盤面', '描画結果') with explicit scope ('全カギの解答', '整合性チェックを通過した'). It distinguishes from siblings like 'get_candidates' (retrieval) or 'setup' (initialization) by focusing on rendering validated solutions.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context by mentioning prerequisites ('setup 済みのすべてのカギに対して') and errors ('setup が未実行の場合'), and distinguishes from siblings by its focus on rendering validated assignments rather than searching or registering candidates. However, it lacks explicit when-not-to-use guidance or named alternatives for overlapping functions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_consistent_setsA
登録済み候補から交差条件を満たす割当てを探索する。
Args:
target_clue_ids (list[str] | None): 探索対象とするカギ ID のリスト。None または
空リストを渡した場合は、候補が登録済みのすべてのカギを対象とする。
Returns:
list[dict[str, str]]: 整合性が取れた解集合のリスト。各要素は clue_id をキー、
採用した候補語を値とする辞書。複数の最大解が存在する場合は重複しない
形で列挙し、整合するカギが 1 件も無い場合は空リストを返す。
Raises:
RuntimeError: setup が未実行、または候補語が一件も登録されていない場合。
KeyError: target_clue_ids に含まれる ID がカギ定義または候補登録に存在しない
場合。
| Name | Required | Description | Default |
|---|---|---|---|
| target_clue_ids | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden and does well by disclosing key behavioral traits: it explains the return format (list of dicts with clue_id and candidate word), error conditions (raises RuntimeError for uninitialized setup or no candidates, KeyError for invalid IDs), and edge cases (empty list for no consistent clues, enumerates multiple maximum solutions without duplicates). This covers critical operational aspects beyond basic functionality.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with clear sections (Args, Returns, Raises) and front-loaded purpose statement. It's appropriately sized, with each sentence adding value: the opening explains the core function, and subsequent parts detail inputs, outputs, and errors without redundancy. Minor room for improvement in flow keeps it from a perfect score.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity (search tool with dependencies, error handling), no annotations, and an output schema present, the description is complete. It covers purpose, parameter semantics, return values, error conditions, and prerequisites. The output schema means return values don't need explanation, and the description adequately addresses all other contextual aspects for effective tool use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It adds meaningful semantics for the single parameter 'target_clue_ids': explains it's a list of clue IDs or None, clarifies that None or empty list targets all registered clues, and notes validation (raises KeyError for non-existent IDs). This goes beyond the schema's basic type definition, providing context and usage rules.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: '探索する' (explore/search) for '割当て' (assignments) that satisfy '交差条件' (intersection conditions) from '登録済み候補' (registered candidates). It specifies the resource (candidate assignments) and verb (search/explore). However, it doesn't explicitly differentiate from sibling tools like 'get_candidates' or 'render_solution', which keeps it from a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage by mentioning prerequisites ('setup' must be executed, candidates must be registered) and dependencies on other tools. It also hints at alternatives by noting that 'target_clue_ids' can be None to target all clues. However, it lacks explicit guidance on when to use this tool versus siblings like 'get_candidates' or 'render_solution', leaving some ambiguity.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
setupA
クロスワードの盤面とカギ定義を読み込み、状態を初期化する。
Args:
grid_text (str): 行番号つきの盤面テキスト。列・行番号は全角数字で表記し、
文字が入るマスは "?"、黒マスは "#" で記述する。各行のマス数が一致している
必要がある。
clue_text (str): JSON Lines 形式のカギ定義。各行は id/direction/row/col
/length/clue を持つ辞書で、direction は "across" か "down"。row と
col は 1 起点の正整数。
Returns: list[list[str]]: 正規化済みセル行列。各要素は "?" または "#" のシンボル。
Raises: ValueError: 盤面の行長不一致・未知のセル記号・カギ定義の欠損や不正値など、 入力内容が検証に失敗した場合。
Notes: この関数を呼び出すと既存の候補リストは破棄され、状態が再初期化される。
| Name | Required | Description | Default |
|---|---|---|---|
| grid_text | Yes | ||
| clue_text | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden and does well at disclosing key behavioral traits. It explicitly states that calling this tool 'discards existing candidate lists and reinitializes the state' (destructive behavior), describes the return format (normalized cell matrix), and documents error conditions (ValueError for validation failures). It doesn't mention performance characteristics or rate limits, but covers the essential behavioral aspects for a setup/initialization tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured and appropriately sized. It starts with a clear purpose statement, then provides detailed parameter documentation in an Args section, followed by Returns and Raises sections, and ends with important Notes. Every sentence earns its place by providing essential information without redundancy. The information is front-loaded with the core purpose stated first.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given this is a setup/initialization tool with 2 parameters, no annotations, but with output schema (returns list[list[str]]), the description is complete. It explains what the tool does, how to use parameters, what it returns, what errors can occur, and important behavioral notes about state reinitialization. The output schema handles return type documentation, so the description appropriately focuses on semantics and behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 0%, so the description must fully compensate - which it does excellently. It provides detailed semantic explanations for both parameters: grid_text format (row numbers, cell symbols, consistency requirements) and clue_text format (JSON Lines with specific fields, direction values, 1-based indexing). The description adds substantial meaning beyond what the bare schema provides, making parameter usage clear.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with specific verbs ('読み込み' - load, '初期化する' - initialize) and resources ('クロスワードの盤面とカギ定義' - crossword grid and clue definitions). It distinguishes from siblings by explaining this tool sets up/initializes the puzzle state while other tools like get_candidates, register_candidates, render_solution, and search_consistent_sets operate on that initialized state.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context about when to use this tool: to initialize the crossword puzzle state by loading grid and clue data. It mentions that calling this function discards existing candidate lists and reinitializes the state, which implies this should be used at the start of puzzle solving. However, it doesn't explicitly state when NOT to use it or name specific alternatives among the sibling tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
- First observed
get_candidates - First observed
register_candidates - First observed
render_solution - First observed
search_consistent_sets - First observed
setup
TDQS
Each tool has a clearly distinct purpose with no overlap. setup initializes the puzzle, register_candidates adds word candidates, get_candidates retrieves them, search_consistent_sets finds solutions, and render_solution displays the final grid. The tools form a logical workflow without ambiguity.
All tool names follow a consistent verb_noun pattern in snake_case: setup, register_candidates, get_candidates, search_consistent_sets, and render_solution. The naming is predictable and readable throughout the set.
Five tools are well-scoped for a crossword puzzle server, covering initialization, candidate management, solution search, and rendering. Each tool earns its place without redundancy or gaps, typical for a focused domain.
The tool set provides complete coverage for crossword puzzle solving: setup for loading, register/get_candidates for word management, search_consistent_sets for finding solutions, and render_solution for output. There are no obvious gaps in the lifecycle from setup to solution rendering.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
- potto-japanOAuthapp.potto
Authoritative JLPT-graded Japanese dataset (kanji, vocab, grammar, history) via MCP and REST.
MCP server for Japan geodata: cadastral lot numbers (chiban) and reverse geocoding, for AI agents.
Chess MCP for Claude: engine analysis, attack maps, game review. One URL, no install.
Japan data tools for AI agents: calendar (rokuyo), address, name splitting, corporate number lookup
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables natural language-driven DeFi operations including swaps, lending, bridging, and onchain transactions across multiple protocols via MCP-compatible clients.59MIT- AlicenseAqualityCmaintenanceEnables automated CAD operations via natural language, supporting both AutoCAD LT on Windows and headless DXF generation on any platform.8MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read, modify, and create Word (.docx) and Excel (.xlsx) files through natural language commands, including batch queries and temporary table management.MIT
- FlicenseNot gradedqualityCmaintenanceEnables local document question-answering and retrieval via MCP, supporting multi-turn conversation, intent recognition, and tools for document search, Q&A, and summarization.5-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/watamoo/mcp-crossword-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server