APLCart is where APL programmers go when they know what they want but not which three glyphs do it. Putting it behind semantic search means the assistant can take "split a vector on a delimiter" and come back with the actual expression.
An MCP server over APLCart, the searchable collection of APL expressions and their descriptions. Three tools cover the three ways people look an idiom up: by the syntax itself, by words in the description, and by natural-language meaning.
- An exact-syntax lookup that returns the APLCart entry for an expression
- Search across syntax, descriptions and keywords at once
- The keywords APLCart files a given expression under
- Natural-language queries answered from OpenAI embeddings over the collection
- An optional SQLite backend for faster searches
Python 3.11 or higher, and the APLCart data converted locally with aplcart2json.py before the first run. Semantic search additionally needs an OpenAI key in OPENAI_API_KEY and an embeddings pass that writes aplcart.index; the other lookups work without it.
Build from source — clone the repository and build it, then point your client at the binary
