Metadata-Version: 2.5
Name: cal-mcp
Version: 0.2.0
Summary: Read-only MCP adapter for the Comprehensive Aramaic Lexicon
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: httpx2<3,>=2.12
Requires-Dist: jsonschema<5,>=4.26
Requires-Dist: mcp<3,>=2
Provides-Extra: dev
Requires-Dist: build<2,>=1.3; extra == 'dev'
Requires-Dist: mypy<2,>=1.17; extra == 'dev'
Requires-Dist: pytest<9,>=8.4; extra == 'dev'
Requires-Dist: ruff<1,>=0.12; extra == 'dev'
Description-Content-Type: text/markdown

# CAL-MCP

CAL-MCP connects AI assistants and other [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) clients to the [Comprehensive Aramaic Lexicon (CAL)](https://cal.huc.edu/). Ask your assistant to look up an Aramaic or Syriac word, read a CAL text, find where a word occurs, compare Targum readings or search CAL's bibliography. CAL-MCP fetches the answer from CAL and returns it with the CAL page it came from and the time it was retrieved, so you can check and cite it.

CAL-MCP is an independent project. It is not affiliated with or endorsed by the Comprehensive Aramaic Lexicon Project or Hebrew Union College.

```mermaid
flowchart LR
    You[You] --> Client[AI assistant or other MCP client]
    Client <--> Server[CAL-MCP, running on your computer]
    Server <-->|live requests, only when you ask| CAL[CAL website: cal.huc.edu]
```

## What you can do

You don't need to know the tool names: ask in plain language and your assistant picks the right tools. They are listed here so you can see what is covered.

| Area | What you can do | Tools |
| --- | --- | --- |
| Typing Aramaic | Convert Aramaic typed in Hebrew, Syriac or another supported script into CAL's transliteration code. Runs locally, without contacting CAL. | `cal_convert_to_code` |
| Lexicon | Look up a word, root or headword and read its CAL entry; browse entries alphabetically; open the full passage behind a citation. | `cal_lexicon_lookup`, `cal_lexicon_browse`, `cal_lexicon_citation_context` |
| English search | Find Aramaic words by their English meaning, search specialised gloss fields, or search the English text of CAL's citations. | `cal_gloss_search`, `cal_gloss_field`, `cal_citation_text_search` |
| Texts | Find texts by catalogue or topic, read a page, see a text's edition and source details, and read line comments and translations. | `cal_text_catalogue`, `cal_text_search`, `cal_text_page`, `cal_text_information`, `cal_text_line_comments` |
| Word analysis | See CAL's analysis of one word in a text. CAL currently refuses this page to automated clients it has not listed, including CAL-MCP; the tool then gives you the link to open it in your browser. | `cal_token_analysis` |
| Concordance | List a text's words by frequency, or see where a word occurs in chosen texts or dialects, in context. | `cal_text_concordance`, `cal_kwic_texts`, `cal_kwic_dialects`, `cal_kwic_dialect`, `cal_kwic_full_context` |
| Bibliography | Find scholarship by author, text or subject, or word; see CAL's list of recent publications (from version 0.2.0). | `cal_bibliography_authors`, `cal_bibliography_author`, `cal_bibliography_keyword`, `cal_bibliography_lemma`, `cal_bibliography_recent` |
| Dictionaries | See which CAL entries match a page of a printed dictionary. | `cal_dictionary_collation` |
| Citations from other sources | Find CAL citations from texts that are not in CAL's online corpus. | `cal_external_citation_dialects`, `cal_external_citation_sources`, `cal_external_citations` |
| Targum | Compare a biblical verse across the Targums, count a word in the Targums and see examples, and trace a Hebrew word to its Targum equivalents. | `cal_targum_parallel`, `cal_targum_concordance`, `cal_targum_concordance_examples`, `cal_targum_hebrew_lemmas`, `cal_targum_hebrew_reflexes`, `cal_targum_reflex_examples` |
| Syriac | Browse Syriac texts by category and group, see CAL's lists of words missing from *A Syriac Lexicon*, and compare a verse in the Hebrew Bible and the Peshitta. | `cal_syriac_texts`, `cal_syriac_group`, `cal_syriac_missing_words`, `cal_syriac_peshitta_parallel` |

Some things to try:

- "Look up the Aramaic word *br* in CAL."
- "Which Aramaic words does CAL gloss as 'camel'?"
- "Find the Tel Dan inscription in CAL and show me its text."
- "What does CAL say about the first word of that line?"

Each tool call fetches one thing from CAL, and CAL-MCP never follows links or fetches anything in the background. To see more (the next page, a fuller context, another text), the assistant makes another call.

## Versions

| Version | Status | Tools |
| --- | --- | --- |
| [0.1.0](https://pypi.org/project/cal-mcp/0.1.0/) | First release, October 2026 | 36 public tools |
| 0.2.0 | Release candidate: published only after its release checks pass | 37: adds `cal_bibliography_recent` |

Check [PyPI](https://pypi.org/project/cal-mcp/) or [GitHub Releases](https://github.com/alexsosn/CAL-MCP/releases) for the versions you can install, and the [changelog](CHANGELOG.md) for what changed.

## Install

You need Python 3.11 or newer and internet access to `cal.huc.edu`.

```bash
python -m pip install "cal-mcp==0.1.0"
```

Then add CAL-MCP to your MCP client as a local server: the command is `cal-mcp`, with no arguments, using the standard input/output (stdio) transport. Your client starts it when needed. Run `cal-mcp --version` to check the installation.

Each client has its own place for these settings; see [Installation](docs/installation.md) and [Standalone MCP](docs/integrations/standalone-mcp.md), which also cover networks that need a proxy.

CAL-MCP has also been added to the [Agora](docs/integrations/agora.md) plugin registry. Agora is optional: CAL-MCP does not need it. The registry change is merged, but Agora's candidate v1.1 marketplace release is not yet published, so install CAL-MCP directly.

## How CAL-MCP treats CAL

- **Live, and only on request.** CAL-MCP contacts CAL only when a tool is called. It does not download, copy or store the CAL database, so it is not an offline lexicon or a hosted service.
- **Every result from CAL shows its source.** Results include the CAL page they came from and when they were retrieved. CAL is a work in progress and asks scholars to cite the date they consulted it; see [Provenance and citation](docs/concepts/provenance-and-citation.md).
- **CAL is the authority.** Results are passed on as CAL gives them. CAL-MCP does not correct them or add its own linguistic analysis, and when CAL offers several possible readings you get all of them.
- **Light on CAL's servers.** Requests are spaced out and capped. See [Configuration](docs/configuration.md).
- **Clear failures.** If CAL is unreachable or its pages change in a way CAL-MCP does not recognise, a tool reports an error rather than guessing. See [Limitations](docs/limitations.md).

## Documentation

- [User documentation](docs/index.md): start here for everything CAL-MCP can do.
- [Getting started](docs/getting-started.md): first research workflows.
- [Tool reference](docs/index.md#tool-reference): each tool in detail.
- [Limitations](docs/limitations.md): what CAL-MCP does not do.

## Contributing

Development is issue-driven and test-first, and the normal test suite runs offline. Start with [AGENTS.md](AGENTS.md) and [PRODUCT_GOALS.md](PRODUCT_GOALS.md). The [maintainer wiki](wiki/README.md) covers architecture, testing and releases, and [Installation](docs/installation.md#install-from-a-repository-checkout) shows how to set up a development checkout.

## License

CAL-MCP's code and documentation are licensed under the MIT License. That license does not cover CAL's data, website content, the text editions behind it, or third-party dictionaries; they belong to their owners and follow their own terms.
