iran-dictionary-mcp 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. iran_dictionary_mcp-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +43 -0
  2. iran_dictionary_mcp-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
  3. iran_dictionary_mcp-0.1.0/.github/banner.png +0 -0
  4. iran_dictionary_mcp-0.1.0/.github/dependabot.yml +10 -0
  5. iran_dictionary_mcp-0.1.0/.github/workflows/ci.yml +22 -0
  6. iran_dictionary_mcp-0.1.0/.github/workflows/publish.yml +51 -0
  7. iran_dictionary_mcp-0.1.0/.gitignore +6 -0
  8. iran_dictionary_mcp-0.1.0/LICENSE +21 -0
  9. iran_dictionary_mcp-0.1.0/PKG-INFO +157 -0
  10. iran_dictionary_mcp-0.1.0/README.md +128 -0
  11. iran_dictionary_mcp-0.1.0/pyproject.toml +60 -0
  12. iran_dictionary_mcp-0.1.0/server.json +32 -0
  13. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/__init__.py +5 -0
  14. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/abadis/__init__.py +0 -0
  15. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/abadis/dictionary.py +198 -0
  16. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/abadis/http.py +192 -0
  17. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/merged.py +161 -0
  18. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/registry.py +16 -0
  19. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/server.py +91 -0
  20. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/vajehyab/__init__.py +0 -0
  21. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/vajehyab/dictionary.py +120 -0
  22. iran_dictionary_mcp-0.1.0/src/iran_dictionary_mcp/vajehyab/http.py +194 -0
  23. iran_dictionary_mcp-0.1.0/tests/__init__.py +0 -0
  24. iran_dictionary_mcp-0.1.0/tests/conftest.py +78 -0
  25. iran_dictionary_mcp-0.1.0/tests/fixtures/abadis_suggest.html +1 -0
  26. iran_dictionary_mcp-0.1.0/tests/fixtures/antonym_dust.json +1 -0
  27. iran_dictionary_mcp-0.1.0/tests/fixtures/en2fa_hello.json +1 -0
  28. iran_dictionary_mcp-0.1.0/tests/fixtures/entry_moein_dust.html +1 -0
  29. iran_dictionary_mcp-0.1.0/tests/fixtures/motaradef_dust.json +1 -0
  30. iran_dictionary_mcp-0.1.0/tests/fixtures/names.html +1 -0
  31. iran_dictionary_mcp-0.1.0/tests/fixtures/search_salam.json +1 -0
  32. iran_dictionary_mcp-0.1.0/tests/fixtures/suggestion.json +1 -0
  33. iran_dictionary_mcp-0.1.0/tests/fixtures/synonym_dust.json +1 -0
  34. iran_dictionary_mcp-0.1.0/tests/fixtures/word_hello.html +7 -0
  35. iran_dictionary_mcp-0.1.0/tests/fixtures/word_salam.html +15 -0
  36. iran_dictionary_mcp-0.1.0/tests/test_dictionary.py +131 -0
  37. iran_dictionary_mcp-0.1.0/tests/test_live.py +56 -0
  38. iran_dictionary_mcp-0.1.0/uv.lock +1412 -0
@@ -0,0 +1,43 @@
1
+ name: Bug report
2
+ description: A tool failed or returned wrong data
3
+ labels: [bug]
4
+ body:
5
+ - type: input
6
+ id: tool
7
+ attributes:
8
+ label: Tool
9
+ description: Which tool, e.g. ins_quote_travel
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: input
14
+ attributes:
15
+ label: Arguments and result
16
+ description: The arguments the agent sent and the error or wrong output. Remove anything personal.
17
+ render: json
18
+ validations:
19
+ required: true
20
+ - type: textarea
21
+ id: expected
22
+ attributes:
23
+ label: What you expected
24
+ description: e.g. what irantalent.com, jobinja.ir or jobvision.ir shows for the same input
25
+ - type: input
26
+ id: client
27
+ attributes:
28
+ label: MCP client and OS
29
+ placeholder: Claude Desktop 1.x on Windows 11
30
+ - type: dropdown
31
+ id: network
32
+ attributes:
33
+ label: Network
34
+ options:
35
+ - Direct connection from Iran
36
+ - Direct connection outside Iran
37
+ - VPN or proxy
38
+ - IRAN_JOBS_MCP_PROXY set
39
+ - type: input
40
+ id: version
41
+ attributes:
42
+ label: iran-dictionary-mcp version
43
+ placeholder: "0.1.0"
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: Question or idea
4
+ url: https://github.com/sepehr071/iran-dictionary-mcp/discussions
5
+ about: Ask how to use it or suggest a new tool
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: monthly
7
+ - package-ecosystem: uv
8
+ directory: /
9
+ schedule:
10
+ interval: monthly
@@ -0,0 +1,22 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ python: ["3.10", "3.11", "3.12", "3.13"]
14
+ steps:
15
+ - uses: actions/checkout@v7
16
+ - uses: astral-sh/setup-uv@v10.2.0
17
+ with:
18
+ python-version: ${{ matrix.python }}
19
+ - run: uv sync --locked
20
+ - run: uv run ruff check .
21
+ - run: uv run ruff format --check .
22
+ - run: uv run pytest -q
@@ -0,0 +1,51 @@
1
+ name: Publish
2
+
3
+ # Tag a release (git tag v0.1.0 && git push --tags) after bumping the version in
4
+ # pyproject.toml and server.json.
5
+ on:
6
+ push:
7
+ tags: ["v*"]
8
+
9
+ jobs:
10
+ pypi:
11
+ runs-on: ubuntu-latest
12
+ environment: pypi
13
+ permissions:
14
+ id-token: write # PyPI trusted publishing
15
+ contents: write # GitHub Release
16
+ steps:
17
+ - uses: actions/checkout@v7
18
+ - uses: astral-sh/setup-uv@v10.2.0
19
+ - name: Check versions match the tag
20
+ run: |
21
+ TAG=${GITHUB_REF_NAME#v}
22
+ grep -q "^version = \"$TAG\"" pyproject.toml
23
+ test "$(jq -r .version server.json)" = "$TAG"
24
+ test "$(jq -r '.packages[0].version' server.json)" = "$TAG"
25
+ - run: uv sync --locked && uv run pytest -q
26
+ - run: uv build
27
+ - uses: pypa/gh-action-pypi-publish@release/v1
28
+ - run: gh release create "$GITHUB_REF_NAME" dist/* --generate-notes --title "$GITHUB_REF_NAME"
29
+ env:
30
+ GH_TOKEN: ${{ github.token }}
31
+
32
+ mcp-registry:
33
+ needs: pypi
34
+ runs-on: ubuntu-latest
35
+ permissions:
36
+ id-token: write # MCP Registry login via GitHub OIDC
37
+ contents: read
38
+ steps:
39
+ - uses: actions/checkout@v7
40
+ - name: Wait for PyPI to serve the new version
41
+ run: |
42
+ for i in $(seq 1 30); do
43
+ curl -sf "https://pypi.org/pypi/iran-dictionary-mcp/${GITHUB_REF_NAME#v}/json" >/dev/null && exit 0
44
+ sleep 10
45
+ done
46
+ exit 1
47
+ - name: Install mcp-publisher
48
+ run: |
49
+ curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.8.1/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
50
+ - run: ./mcp-publisher login github-oidc
51
+ - run: ./mcp-publisher publish
@@ -0,0 +1,6 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ dist/
5
+ .pytest_cache/
6
+ .ruff_cache/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sepehr Radmard
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,157 @@
1
+ Metadata-Version: 2.5
2
+ Name: iran-dictionary-mcp
3
+ Version: 0.1.0
4
+ Summary: Unofficial read-only MCP server for Persian dictionaries Abadis and Vajehyab: Dehkhoda, Moein, Amid, synonyms, antonyms, English and Arabic translation, names.
5
+ Project-URL: Homepage, https://github.com/sepehr071/iran-dictionary-mcp
6
+ Project-URL: Repository, https://github.com/sepehr071/iran-dictionary-mcp
7
+ Project-URL: Issues, https://github.com/sepehr071/iran-dictionary-mcp/issues
8
+ Project-URL: Website, https://mcpfarsi.ir/
9
+ Author-email: Sepehr Radmard <sepehrr80@gmail.com>
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: abadis,ai-agents,amid,antonyms,claude,dehkhoda,dictionary,farsi,iran,mcp,mcp-server,model-context-protocol,moein,persian,persian-dictionary,persian-names,synonyms,translation,vajehyab
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Requires-Python: >=3.10
23
+ Requires-Dist: beautifulsoup4>=4.12
24
+ Requires-Dist: curl-cffi>=0.16.3
25
+ Requires-Dist: httpx-curl-cffi>=0.1.5
26
+ Requires-Dist: httpx>=0.27
27
+ Requires-Dist: mcp<3,>=2.2
28
+ Description-Content-Type: text/markdown
29
+
30
+ <!-- mcp-name: io.github.sepehr071/iran-dictionary-mcp -->
31
+
32
+ <div align="center">
33
+
34
+ <img src="https://raw.githubusercontent.com/sepehr071/iran-dictionary-mcp/main/.github/banner.png" alt="iran-dictionary-mcp: unofficial Persian dictionary (لغت‌نامه) MCP server that looks up word meanings, synonyms, antonyms and translations on Abadis and Vajehyab for Claude, Cursor and Copilot" width="100%">
35
+
36
+ # iran-dictionary-mcp: Persian dictionary (لغت‌نامه) MCP server for AI agents, Abadis + Vajehyab
37
+
38
+ **iran-dictionary-mcp is an unofficial, read-only MCP server that lets an AI agent look up Persian words, synonyms, antonyms and translations on two dictionary sites at once: Abadis (آبادیس, abadis.ir) and Vajehyab (واژه‌یاب, vajehyab.com).**<br>
39
+ Its 7 tools return Dehkhoda, Moein and Amid meanings, synonyms and antonyms, pure-Persian equivalents, English, Arabic and Turkish translation with example sentences, spelling autocomplete and Persian first names.<br>
40
+ No API key or account is needed; it works in Claude, Cursor, Copilot and any other MCP client.
41
+
42
+ [![PyPI](https://img.shields.io/pypi/v/iran-dictionary-mcp?color=2563eb)](https://pypi.org/project/iran-dictionary-mcp/)
43
+ [![Python](https://img.shields.io/pypi/pyversions/iran-dictionary-mcp)](https://pypi.org/project/iran-dictionary-mcp/)
44
+ [![CI](https://github.com/sepehr071/iran-dictionary-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/sepehr071/iran-dictionary-mcp/actions/workflows/ci.yml)
45
+ [![License: MIT](https://img.shields.io/badge/license-MIT-16a34a)](https://github.com/sepehr071/iran-dictionary-mcp/blob/main/LICENSE)
46
+
47
+ [For AI agents](#for-ai-agents) · [Quick start](#quick-start) · [Tools](#tools) · [Limits](#limits) · [فارسی](#فارسی)
48
+
49
+ </div>
50
+
51
+ ---
52
+
53
+ ## For AI agents
54
+
55
+ - **What:** unofficial MCP server (model context protocol) for abadis.ir and vajehyab.com, merged: word meanings, synonyms and antonyms, translation, autocomplete, plus each site's own tools (Abadis first names, Vajehyab scoped search and full entries).
56
+ - **Install:** `uvx iran-dictionary-mcp` or `claude mcp add iran-dictionary -- uvx iran-dictionary-mcp`. Transport: stdio. Needs [uv](https://docs.astral.sh/uv/getting-started/installation/) (Python 3.10+).
57
+ - **Auth:** none. Optional `IRAN_DICTIONARY_MCP_PROXY` (one HTTP proxy URL) applies to both sites; system proxy settings are ignored.
58
+ - **Access:** read-only. It cannot log in or save words.
59
+ - **Tools:** 7, all prefixed `dic_`. Four merged tools take `source` (`all` default, `abadis`, `vajehyab`) and answer with one block per site; if one site fails its block holds an `error` and the other still answers. The other three are one site's own tools.
60
+ - **Use when:** the user asks what a Persian word means, wants synonyms, antonyms or a pure-Persian equivalent, a Persian-English, Arabic or Turkish translation, the right spelling, rhymes, or a Persian first name by meaning.
61
+ - **Output:** compact JSON, mostly Persian text. Meaning text is cut short by default; `full` returns more.
62
+
63
+ ## Quick start
64
+
65
+ You need [uv](https://docs.astral.sh/uv/getting-started/installation/). No API key or account.
66
+
67
+ Claude Code:
68
+
69
+ ```bash
70
+ claude mcp add iran-dictionary -- uvx iran-dictionary-mcp
71
+ ```
72
+
73
+ Claude Desktop, Cursor, VS Code and other clients:
74
+
75
+ ```json
76
+ {
77
+ "mcpServers": {
78
+ "iran-dictionary": { "command": "uvx", "args": ["iran-dictionary-mcp"] }
79
+ }
80
+ }
81
+ ```
82
+
83
+ Example prompts:
84
+
85
+ - "What does the Persian word سلام mean, according to Dehkhoda?"
86
+ - "Give me synonyms and antonyms of دوست."
87
+ - "Translate hello into Persian with example sentences."
88
+ - <span dir="rtl">نام دخترانهٔ ایرانی با معنی گل پیشنهاد بده.</span>
89
+ - <span dir="rtl">معنی واژهٔ «دمساز» در لغت‌نامه دهخدا چیست؟</span>
90
+
91
+ Real result (17 Nov 2026), `dic_synonyms(word="دوست")`: Abadis returns 19 synonyms (آشنا، حبیب، خلیل، دمساز، دوستدار، رفیق ...); Vajehyab returns the same 19, antonyms دشمن، عدو، خصم، متخاصم, and 6 entries that list دوست as their synonym (برادر، جانان، حریف، حمیم، حواری، مقترن).
92
+
93
+ ## Tools
94
+
95
+ Merged (both sites, `source` argument):
96
+
97
+ | Tool | What it does |
98
+ |---|---|
99
+ | `dic_lookup` | Look a word up in the Persian dictionaries of Abadis and Vajehyab, one block per site. |
100
+ | `dic_synonyms` | Find synonyms, antonyms and pure-Persian equivalents (برابر پارسی) of a Persian word, one block per site. |
101
+ | `dic_translate` | Translate a single word or short phrase between Persian and English, Arabic or Turkish, one block per site. |
102
+ | `dic_suggest` | Complete the start of a word into dictionary headwords, one list per site; use it to find the exact spelling. |
103
+
104
+ Single site:
105
+
106
+ | Tool | What it does |
107
+ |---|---|
108
+ | `dic_abadis_names` | Search Abadis's Persian first-name list by name, gender, origin, theme or first letter. |
109
+ | `dic_vajehyab_search` | Search Vajehyab's dictionaries with a scope: exact entries, entries naming it a synonym or antonym, rhymes, sound-alikes. |
110
+ | `dic_vajehyab_entry` | Read one whole Vajehyab entry (for example the full Dehkhoda text with its poetry), cut at `max_chars`. |
111
+
112
+ ## Limits
113
+
114
+ - Single words and short phrases, not sentences. `ar-fa` with Arabic-letter spellings (such as كتاب with an Arabic kaf) was not checked and may find nothing.
115
+ - Abadis has no Arabic or Turkish to Persian. Vajehyab's English translation is shorter than its site page, which adds a subscription source.
116
+ - There is no public proverb or poetry search; Dehkhoda entries quote poetry.
117
+ - Vajehyab engine excerpts are about 200 characters; use `dic_lookup(full=True)` or `dic_vajehyab_entry` for the whole entry.
118
+ - Dictionary text is third-party content. Both sites answer from outside Iran.
119
+
120
+ ## How it works
121
+
122
+ Neither site has a public API. Abadis pages are fetched and parsed as HTML; Vajehyab is read through its own search engine JSON and the data embedded in its entry pages. The tools were mapped in Chrome and checked against the real pages on 2026-11-16 (meanings, 19 synonyms, antonyms, English translation with examples, first names). One mismatch found there (synonym lists that mention the word) is fixed in `dic_synonyms`.
123
+
124
+ ## فارسی
125
+
126
+ <div dir="rtl">
127
+
128
+ iran-dictionary-mcp یک سرور MCP غیررسمی و فقط‌خواندنی است که معنی واژه‌ها، مترادف و متضاد، برابر پارسی، ترجمه به انگلیسی، عربی و ترکی و نام‌های ایرانی را هم‌زمان از دو سایت آبادیس و واژه‌یاب (شامل لغت‌نامه دهخدا، معین و عمید) برای عامل هوش مصنوعی می‌آورد. نصب در Claude Code:
129
+
130
+ </div>
131
+
132
+ ```bash
133
+ claude mcp add iran-dictionary -- uvx iran-dictionary-mcp
134
+ ```
135
+
136
+ ## Development
137
+
138
+ ```bash
139
+ uv sync
140
+ uv run ruff check . && uv run ruff format --check .
141
+ uv run pytest -q # offline tests on recorded fixtures
142
+ uv run pytest -m live -q # live calls to Abadis and Vajehyab
143
+ ```
144
+
145
+ Releases: bump the version in `pyproject.toml` and `server.json`, run `uv lock`, then push a `v*` tag; GitHub Actions publishes to PyPI.
146
+
147
+ ## Disclaimer
148
+
149
+ Unofficial and not affiliated with or endorsed by Abadis or Vajehyab. It is read-only and uses the public pages and endpoints of those sites, which can change without notice.
150
+
151
+ ## Author
152
+
153
+ Built and maintained by **Sepehr Radmard** (سپهر رادمرد). [LinkedIn](https://www.linkedin.com/in/sepehr-radmard) · [GitHub](https://github.com/sepehr071) · more servers in [iran-mcp](https://github.com/sepehr071/iran-mcp).
154
+
155
+ ## License
156
+
157
+ [MIT](https://github.com/sepehr071/iran-dictionary-mcp/blob/main/LICENSE)
@@ -0,0 +1,128 @@
1
+ <!-- mcp-name: io.github.sepehr071/iran-dictionary-mcp -->
2
+
3
+ <div align="center">
4
+
5
+ <img src="https://raw.githubusercontent.com/sepehr071/iran-dictionary-mcp/main/.github/banner.png" alt="iran-dictionary-mcp: unofficial Persian dictionary (لغت‌نامه) MCP server that looks up word meanings, synonyms, antonyms and translations on Abadis and Vajehyab for Claude, Cursor and Copilot" width="100%">
6
+
7
+ # iran-dictionary-mcp: Persian dictionary (لغت‌نامه) MCP server for AI agents, Abadis + Vajehyab
8
+
9
+ **iran-dictionary-mcp is an unofficial, read-only MCP server that lets an AI agent look up Persian words, synonyms, antonyms and translations on two dictionary sites at once: Abadis (آبادیس, abadis.ir) and Vajehyab (واژه‌یاب, vajehyab.com).**<br>
10
+ Its 7 tools return Dehkhoda, Moein and Amid meanings, synonyms and antonyms, pure-Persian equivalents, English, Arabic and Turkish translation with example sentences, spelling autocomplete and Persian first names.<br>
11
+ No API key or account is needed; it works in Claude, Cursor, Copilot and any other MCP client.
12
+
13
+ [![PyPI](https://img.shields.io/pypi/v/iran-dictionary-mcp?color=2563eb)](https://pypi.org/project/iran-dictionary-mcp/)
14
+ [![Python](https://img.shields.io/pypi/pyversions/iran-dictionary-mcp)](https://pypi.org/project/iran-dictionary-mcp/)
15
+ [![CI](https://github.com/sepehr071/iran-dictionary-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/sepehr071/iran-dictionary-mcp/actions/workflows/ci.yml)
16
+ [![License: MIT](https://img.shields.io/badge/license-MIT-16a34a)](https://github.com/sepehr071/iran-dictionary-mcp/blob/main/LICENSE)
17
+
18
+ [For AI agents](#for-ai-agents) · [Quick start](#quick-start) · [Tools](#tools) · [Limits](#limits) · [فارسی](#فارسی)
19
+
20
+ </div>
21
+
22
+ ---
23
+
24
+ ## For AI agents
25
+
26
+ - **What:** unofficial MCP server (model context protocol) for abadis.ir and vajehyab.com, merged: word meanings, synonyms and antonyms, translation, autocomplete, plus each site's own tools (Abadis first names, Vajehyab scoped search and full entries).
27
+ - **Install:** `uvx iran-dictionary-mcp` or `claude mcp add iran-dictionary -- uvx iran-dictionary-mcp`. Transport: stdio. Needs [uv](https://docs.astral.sh/uv/getting-started/installation/) (Python 3.10+).
28
+ - **Auth:** none. Optional `IRAN_DICTIONARY_MCP_PROXY` (one HTTP proxy URL) applies to both sites; system proxy settings are ignored.
29
+ - **Access:** read-only. It cannot log in or save words.
30
+ - **Tools:** 7, all prefixed `dic_`. Four merged tools take `source` (`all` default, `abadis`, `vajehyab`) and answer with one block per site; if one site fails its block holds an `error` and the other still answers. The other three are one site's own tools.
31
+ - **Use when:** the user asks what a Persian word means, wants synonyms, antonyms or a pure-Persian equivalent, a Persian-English, Arabic or Turkish translation, the right spelling, rhymes, or a Persian first name by meaning.
32
+ - **Output:** compact JSON, mostly Persian text. Meaning text is cut short by default; `full` returns more.
33
+
34
+ ## Quick start
35
+
36
+ You need [uv](https://docs.astral.sh/uv/getting-started/installation/). No API key or account.
37
+
38
+ Claude Code:
39
+
40
+ ```bash
41
+ claude mcp add iran-dictionary -- uvx iran-dictionary-mcp
42
+ ```
43
+
44
+ Claude Desktop, Cursor, VS Code and other clients:
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "iran-dictionary": { "command": "uvx", "args": ["iran-dictionary-mcp"] }
50
+ }
51
+ }
52
+ ```
53
+
54
+ Example prompts:
55
+
56
+ - "What does the Persian word سلام mean, according to Dehkhoda?"
57
+ - "Give me synonyms and antonyms of دوست."
58
+ - "Translate hello into Persian with example sentences."
59
+ - <span dir="rtl">نام دخترانهٔ ایرانی با معنی گل پیشنهاد بده.</span>
60
+ - <span dir="rtl">معنی واژهٔ «دمساز» در لغت‌نامه دهخدا چیست؟</span>
61
+
62
+ Real result (17 Nov 2026), `dic_synonyms(word="دوست")`: Abadis returns 19 synonyms (آشنا، حبیب، خلیل، دمساز، دوستدار، رفیق ...); Vajehyab returns the same 19, antonyms دشمن، عدو، خصم، متخاصم, and 6 entries that list دوست as their synonym (برادر، جانان، حریف، حمیم، حواری، مقترن).
63
+
64
+ ## Tools
65
+
66
+ Merged (both sites, `source` argument):
67
+
68
+ | Tool | What it does |
69
+ |---|---|
70
+ | `dic_lookup` | Look a word up in the Persian dictionaries of Abadis and Vajehyab, one block per site. |
71
+ | `dic_synonyms` | Find synonyms, antonyms and pure-Persian equivalents (برابر پارسی) of a Persian word, one block per site. |
72
+ | `dic_translate` | Translate a single word or short phrase between Persian and English, Arabic or Turkish, one block per site. |
73
+ | `dic_suggest` | Complete the start of a word into dictionary headwords, one list per site; use it to find the exact spelling. |
74
+
75
+ Single site:
76
+
77
+ | Tool | What it does |
78
+ |---|---|
79
+ | `dic_abadis_names` | Search Abadis's Persian first-name list by name, gender, origin, theme or first letter. |
80
+ | `dic_vajehyab_search` | Search Vajehyab's dictionaries with a scope: exact entries, entries naming it a synonym or antonym, rhymes, sound-alikes. |
81
+ | `dic_vajehyab_entry` | Read one whole Vajehyab entry (for example the full Dehkhoda text with its poetry), cut at `max_chars`. |
82
+
83
+ ## Limits
84
+
85
+ - Single words and short phrases, not sentences. `ar-fa` with Arabic-letter spellings (such as كتاب with an Arabic kaf) was not checked and may find nothing.
86
+ - Abadis has no Arabic or Turkish to Persian. Vajehyab's English translation is shorter than its site page, which adds a subscription source.
87
+ - There is no public proverb or poetry search; Dehkhoda entries quote poetry.
88
+ - Vajehyab engine excerpts are about 200 characters; use `dic_lookup(full=True)` or `dic_vajehyab_entry` for the whole entry.
89
+ - Dictionary text is third-party content. Both sites answer from outside Iran.
90
+
91
+ ## How it works
92
+
93
+ Neither site has a public API. Abadis pages are fetched and parsed as HTML; Vajehyab is read through its own search engine JSON and the data embedded in its entry pages. The tools were mapped in Chrome and checked against the real pages on 2026-11-16 (meanings, 19 synonyms, antonyms, English translation with examples, first names). One mismatch found there (synonym lists that mention the word) is fixed in `dic_synonyms`.
94
+
95
+ ## فارسی
96
+
97
+ <div dir="rtl">
98
+
99
+ iran-dictionary-mcp یک سرور MCP غیررسمی و فقط‌خواندنی است که معنی واژه‌ها، مترادف و متضاد، برابر پارسی، ترجمه به انگلیسی، عربی و ترکی و نام‌های ایرانی را هم‌زمان از دو سایت آبادیس و واژه‌یاب (شامل لغت‌نامه دهخدا، معین و عمید) برای عامل هوش مصنوعی می‌آورد. نصب در Claude Code:
100
+
101
+ </div>
102
+
103
+ ```bash
104
+ claude mcp add iran-dictionary -- uvx iran-dictionary-mcp
105
+ ```
106
+
107
+ ## Development
108
+
109
+ ```bash
110
+ uv sync
111
+ uv run ruff check . && uv run ruff format --check .
112
+ uv run pytest -q # offline tests on recorded fixtures
113
+ uv run pytest -m live -q # live calls to Abadis and Vajehyab
114
+ ```
115
+
116
+ Releases: bump the version in `pyproject.toml` and `server.json`, run `uv lock`, then push a `v*` tag; GitHub Actions publishes to PyPI.
117
+
118
+ ## Disclaimer
119
+
120
+ Unofficial and not affiliated with or endorsed by Abadis or Vajehyab. It is read-only and uses the public pages and endpoints of those sites, which can change without notice.
121
+
122
+ ## Author
123
+
124
+ Built and maintained by **Sepehr Radmard** (سپهر رادمرد). [LinkedIn](https://www.linkedin.com/in/sepehr-radmard) · [GitHub](https://github.com/sepehr071) · more servers in [iran-mcp](https://github.com/sepehr071/iran-mcp).
125
+
126
+ ## License
127
+
128
+ [MIT](https://github.com/sepehr071/iran-dictionary-mcp/blob/main/LICENSE)
@@ -0,0 +1,60 @@
1
+ [project]
2
+ name = "iran-dictionary-mcp"
3
+ version = "0.1.0"
4
+ description = "Unofficial read-only MCP server for Persian dictionaries Abadis and Vajehyab: Dehkhoda, Moein, Amid, synonyms, antonyms, English and Arabic translation, names."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ authors = [{ name = "Sepehr Radmard", email = "sepehrr80@gmail.com" }]
9
+ requires-python = ">=3.10"
10
+ keywords = ["mcp", "model-context-protocol", "abadis", "vajehyab", "dictionary", "persian-dictionary", "dehkhoda", "moein", "amid", "synonyms", "antonyms", "translation", "persian-names", "iran", "claude", "persian", "farsi", "ai-agents", "mcp-server"]
11
+ classifiers = [
12
+ "Development Status :: 4 - Beta",
13
+ "Intended Audience :: Developers",
14
+ "Operating System :: OS Independent",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.10",
17
+ "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
21
+ ]
22
+ dependencies = [
23
+ "mcp>=2.2,<3",
24
+ "httpx>=0.27",
25
+ "httpx-curl-cffi>=0.1.5",
26
+ "curl-cffi>=0.16.3",
27
+ "beautifulsoup4>=4.12",
28
+ ]
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/sepehr071/iran-dictionary-mcp"
32
+ Repository = "https://github.com/sepehr071/iran-dictionary-mcp"
33
+ Issues = "https://github.com/sepehr071/iran-dictionary-mcp/issues"
34
+ Website = "https://mcpfarsi.ir/"
35
+
36
+ [project.scripts]
37
+ iran-dictionary-mcp = "iran_dictionary_mcp.server:main"
38
+
39
+ [dependency-groups]
40
+ dev = ["pytest>=8", "ruff>=0.6"]
41
+
42
+ [build-system]
43
+ requires = ["hatchling"]
44
+ build-backend = "hatchling.build"
45
+
46
+ [tool.hatch.build.targets.wheel]
47
+ packages = ["src/iran_dictionary_mcp"]
48
+
49
+ [tool.pytest.ini_options]
50
+ testpaths = ["tests"]
51
+ addopts = "-m 'not live'"
52
+ markers = ["live: calls the real Abadis and Vajehyab sites (run with -m live)"]
53
+
54
+ [tool.ruff]
55
+ line-length = 120
56
+ target-version = "py310"
57
+
58
+ [tool.ruff.lint]
59
+ select = ["E", "F", "I", "B", "UP"]
60
+ ignore = ["E501"] # long Field(description=...) strings read better on one line
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.sepehr071/iran-dictionary-mcp",
4
+ "title": "Iran Dictionary (Abadis + Vajehyab)",
5
+ "description": "Read-only Persian dictionaries: Abadis and Vajehyab. Meanings, synonyms, translation, names.",
6
+ "repository": {
7
+ "url": "https://github.com/sepehr071/iran-dictionary-mcp",
8
+ "source": "github"
9
+ },
10
+ "websiteUrl": "https://github.com/sepehr071/iran-dictionary-mcp",
11
+ "version": "0.1.0",
12
+ "packages": [
13
+ {
14
+ "registryType": "pypi",
15
+ "registryBaseUrl": "https://pypi.org",
16
+ "identifier": "iran-dictionary-mcp",
17
+ "version": "0.1.0",
18
+ "runtimeHint": "uvx",
19
+ "transport": {
20
+ "type": "stdio"
21
+ },
22
+ "environmentVariables": [
23
+ {
24
+ "name": "IRAN_DICTIONARY_MCP_PROXY",
25
+ "description": "Optional HTTP proxy URL for the Abadis and Vajehyab requests; system proxy settings are ignored.",
26
+ "isRequired": false,
27
+ "isSecret": false
28
+ }
29
+ ]
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,5 @@
1
+ """Unofficial MCP server for Persian dictionaries Abadis and Vajehyab: meanings, synonyms, translation and names."""
2
+
3
+ from importlib.metadata import version
4
+
5
+ __version__ = version("iran-dictionary-mcp")