Labsco
MCP SERVER

APLCart MCP Server

by xpqz

Search APLCart's collection of APL idioms by exact syntax, by keyword, or by describing in plain English what you want the expression to do.

Framework & SDK Documentation Lookup
Summary
The APL idiom you half-remember, found by describing it.

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.

What it is

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.

What you get
  • 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
Requirements

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.

Setup effort

Build from source — clone the repository and build it, then point your client at the binary