Aspose.TeX for Java MCP Server
Search the Aspose.TeX for Java guides and API reference, look up the exact signature of a class or method, and list breaking changes and release features, from any MCP-compatible AI client, served by a context engine you host yourself.
How it works
- The server is the Aspose Context Engine with the Aspose.TeX for Java plugin registered. It indexes the product's documentation and API reference, and your AI client reads from that index.
- Your client calls 9 read-only tools: search the guides, look up an exact signature, list a type's members, and list breaking changes and release features. Nothing is written and no files are touched.
- The endpoint is fixed to one product and one SDK language, so a question cannot drift to another product.
Host Aspose.TeX for Java yourself
No hosted endpoint is provided. You run the engine, its databases and the ingestion step, so plan for a developer machine or a server, not a one-line install.
Before you start
- Git and Python 3.12 or newer.
- PostgreSQL, Valkey, RabbitMQ, Qdrant and OpenSearch. The engine's make infra-up starts development copies in Docker; read its environment and ports first so they do not clash with services you already run.
- An OpenAI-compatible embeddings endpoint, its API key and a model name.
- On Windows, run every command in WSL 2 (Ubuntu): the helper scripts are POSIX shell scripts. Docker Desktop can provide the services.
1. Get the code and set it up
Do not clone recursively: the engine carries historical documentation submodules this deployment does not need. Setup installs the engine and plugin interpreters and verifies registration. It downloads no documentation and publishes nothing.
git clone https://github.com/aspose-tex-mcp/java-server.git cd java-server ./scripts/setup.sh
2. Start the services and configure the engine
Copy engine/.env.example to engine/.env.local and set the values below. make infra-up starts the five services with its own example credentials, so make the connection settings match them (or the credentials you chose). Keep real secrets out of git.
cp engine/.env.example engine/.env.local make -C engine infra-up
| Setting | What it does | Example |
|---|---|---|
POSTGRES_DSN | PostgreSQL connection. It also holds the API-reference symbol store. | postgresql+psycopg://adcs:CHANGE_ME@127.0.0.1:5432/adcs |
REDIS_URL | Valkey (Redis-compatible) connection. | redis://127.0.0.1:6379/0 |
RABBITMQ_URL | RabbitMQ connection, used by the worker for queued ingestion. | amqp://adcs:CHANGE_ME@127.0.0.1:5672// |
QDRANT_URL | Qdrant, the vector store. | http://127.0.0.1:6333 |
OPENSEARCH_URL | OpenSearch, the lexical index. | http://127.0.0.1:9200 |
ADCS_PERSISTENCE_BACKEND | Where the engine keeps its records. | postgres |
ADCS_RETRIEVAL_BACKEND | How retrieval is served. | qdrant_opensearch |
APIREF_STRUCTURED_STORE_ENABLED | Turns on the four exact-symbol tools (aspose_lookup, get_symbol, list_members, search_symbols). Without it they return an error. | true |
ADCS_API_KEY | Key for the engine's admin API. Generate a random value. | CHANGE_ME |
ADCS_HASH_SECRET | Keys the hash of client IP addresses in logs. The engine warns when it is unset, and reads it from the environment of the process that starts the server, so export it there. | CHANGE_ME |
ADCS_EMBEDDING_BACKEND | The embeddings provider type. | openai_compatible |
ADCS_EMBEDDING_API_URL | Base URL of an OpenAI-compatible embeddings API. | https://embeddings.example.com/v1 |
ADCS_EMBEDDING_API_KEY | That API's key. | YOUR_API_KEY |
ADCS_EMBEDDING_MODEL | The embedding model. Keep it fixed after ingestion: changing it means re-indexing. | your-embedding-model |
3. Fetch the documentation sources
Shallow, sparse clones of the documentation and API-reference repositories. Keep the working trees clean.
mkdir -p engine/sources git clone --filter=blob:none --sparse --branch main https://github.com/aspose-tex-mcp/docs.git engine/sources/documentation git -C engine/sources/documentation sparse-checkout set en/java git clone --filter=blob:none --sparse --branch master https://github.com/aspose-tex-mcp/reference.git engine/sources/api-reference git -C engine/sources/api-reference sparse-checkout set english/java
4. Prepare the code-example cache
This downloads the code examples the documentation references. It is a network step: run it once per cache, and never concurrently.
PYTHONPATH=plugins/tex-java/src plugins/tex-java/.venv/bin/python \ -m adcs_tex_java.gist_examples \ --source-root engine/sources/documentation/en/java \ --cache plugins/tex-java/sources/gist-examples.json
5. Validate, then publish the index
Validation checks extraction and publishes nothing. Review it, then publish. Publishing embeds the content, so it calls your embeddings endpoint and takes a while.
# validate: checks extraction, publishes nothing ./scripts/ingest.sh --source-kind docs ./scripts/ingest.sh --source-kind apiref # publish: embeds the content into the index ./scripts/ingest.sh --source-kind docs --publish ./scripts/ingest.sh --source-kind apiref --publish
6. Run the server
Always use the run-engine.sh wrapper, which selects this deployment's plugin catalog. The worker is only needed for queued ingestion (--enqueue).
./scripts/run-engine.sh -m uvicorn adcs.api.main:app --host 127.0.0.1 --port 8080 # separate terminal, only for queued ingestion ./scripts/run-engine.sh -m celery -A adcs.worker.celery_app:celery_app worker --loglevel=info
7. Check it works
A running process and a successful initialize do not prove the index has content. Call a tool and look at the citations it returns.
curl http://127.0.0.1:8080/healthz
Connect your AI client to Aspose.TeX for Java
The address below is the local one from the steps above. Use your own host in its place, with TLS and authentication set up to match your engine settings; these examples supply no credentials.
claude mcp add --transport http tex-java http://127.0.0.1:8080/tex/java/mcp/v1/streamable-http
{
"servers": {
"tex-java": {
"type": "http",
"url": "http://127.0.0.1:8080/tex/java/mcp/v1/streamable-http"
}
}
}{
"mcpServers": {
"tex-java": {
"url": "http://127.0.0.1:8080/tex/java/mcp/v1/streamable-http"
}
}
}Example prompts
- Using the Aspose.TeX for Java MCP server, show me how to convert a LaTeX file to PDF and which options class controls the input working directory.
- Look up the options class for a TeX conversion in Aspose.TeX for Java and list its members.
- How do I save an Aspose.TeX for Java conversion result as an image?
Available tools (9)
Every tool this server exposes, read from the running server's own tool list. product_id and language are fixed by this endpoint, so they are not shown.
| Tool | Description | Parameters |
|---|---|---|
resolve_product |
Return this endpoint's fixed scope: Aspose.TeX for Java. Read-only |
query: string
|
| prompt: which product and SDK language does the aspose tex java mcp server cover? | ||
| prompt: resolve the product for the query 'latex to pdf' using the aspose tex java mcp server | ||
query_docs |
Aspose.TeX for Java only. Search Aspose documentation for guides, how-to articles, and API reference pages. Use this to understand how an API works before writing code. Make focused queries like 'create pivot table from data range' rather than broad queries like 'features'. Call MULTIPLE times for different aspects of your task. Read-only |
query: string (required)
|
| prompt: search the docs for how to convert a LaTeX document to PDF using the aspose tex java mcp server | ||
| prompt: search the docs for how to set the input working directory using the aspose tex java mcp server | ||
get_symbol_doc |
Aspose.TeX for Java only. Look up the exact API signature, parameters, return type, and usage examples for a specific class or method. Use this to verify EVERY class/method you plan to use — do NOT guess signatures. Examples: 'BarcodeGenerator', 'RecognitionSettings', 'Document.Save', 'PivotTable.AddFieldToArea'. Read-only |
symbol_fqn: string (required)
|
| prompt: get the documentation for com.aspose.tex.TeXOptions using the aspose tex java mcp server | ||
list_breaking_changes |
Aspose.TeX for Java only. List breaking API changes and deprecations between two product versions. Use when migrating code or targeting a specific version. Read-only |
from_version: string (required), to_version: string (required)
|
| prompt: list the breaking changes between 25.10 and 26.10 using the aspose tex java mcp server | ||
list_latest_release_features |
Aspose.TeX for Java only. List new features, improvements, and migration hints from the latest (or specified) release of a product SDK. Read-only |
version: string, top_k: integer
|
| prompt: list the new features in the latest release using the aspose tex java mcp server | ||
| prompt: list the top 5 new features of latest-stable using the aspose tex java mcp server | ||
aspose_lookup |
Look up API symbols and signatures for Aspose.TeX for Java. Provide a natural-language query or dotted symbol name. Product and SDK language are fixed by this endpoint. Read-only |
query: string (required), version: string, limit: integer
|
| prompt: look up how to save as an image using the aspose tex java mcp server | ||
| prompt: look up PdfDevice in latest-stable and show up to 5 matches using the aspose tex java mcp server | ||
get_symbol |
Aspose.TeX for Java only. Exact API-reference symbol lookup from the structured symbol store (precise, non-vector). Returns ALL overloads of a fully-qualified member with signature, summary, parameters, returns, and examples. Use to verify the exact signature of a class/method before using it. member_fqn is dotted and case-insensitive, e.g. 'Aspose.Cells.Workbook.Save' or 'aspose.email.MapiMessage'. Read-only |
version: string, symbol_fqn: string (required)
|
| prompt: get the exact declaration of com.aspose.tex.TeXOptions using the aspose tex java mcp server | ||
| prompt: get com.aspose.tex.TeXOptions for latest-stable using the aspose tex java mcp server | ||
list_members |
Aspose.TeX for Java only. List the direct members (methods, properties, fields, nested types) of a class or namespace from the structured symbol store. Use to discover what operations a type offers. parent_fqn is the dotted class/namespace, e.g. 'Aspose.Cells.Workbook' or 'aspose.email.mapi'. Read-only |
version: string, parent_fqn: string (required)
|
| prompt: list the members of com.aspose.tex.TeXOptions using the aspose tex java mcp server | ||
| prompt: list the members of com.aspose.tex.rendering for latest-stable using the aspose tex java mcp server | ||
search_symbols |
Aspose.TeX for Java only. Search API symbols by name or concept (prefix/fuzzy + full-text) in the structured symbol store. Use to find the right class/method when you don't know the exact name, e.g. query 'Workbook', 'save as pdf', 'pivot table'. Read-only |
version: string, query: string (required), limit: integer
|
| prompt: search the API for symbols about image save options using the aspose tex java mcp server | ||
| prompt: search the latest-stable API for 'pdf device' and show the top 5 using the aspose tex java mcp server | ||
Source code and components
Pinned to exact commits, because these repositories publish no release tags.
| Component | Repository | Commit |
|---|---|---|
| Deployment (this server) | aspose-tex-mcp/java-server | 97f49ff |
| Context engine | aspose-core-mcp/context-engine | 754ad0b |
| tex-java plugin | aspose-tex-mcp/java-plugin | 78382fc |
Documentation sources it indexes
| Repository | Branch | Folder |
|---|---|---|
| aspose-tex-mcp/docs | main | en/java |
| aspose-tex-mcp/reference | master | english/java |
Good to know
- The deployment bundles no indexed documentation and no hosted endpoint. Until you ingest, the tools have nothing to return.
- The steps above index one documentation version, latest-stable, so list_breaking_changes returned no items when we tried it.
- The engine still defines routes for other products and for Total. This deployment does not remove them, so restrict the exposed paths at your ingress if you want only this one.
Observed when we called the tools on this pinned commit:
- Symbols are indexed under their full Java package names, such as com.aspose.tex.TeXOptions, and methods are camelCase (getInputWorkingDirectory). Use the full name as the lookup key.
- list_latest_release_features returned an error ("No release or migration notes were found in selected scope"): no release notes are indexed for this product.
- Asking for a version other than latest-stable, such as 26.10, returned an error, because only latest-stable is indexed.