New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@pressa/mcp

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pressa/mcp

MCP server for Pressa — LaTeX to PDF compilation service

Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
253
25.25%
Maintainers
1
Weekly downloads
 
Created
Source

@pressa/mcp

MCP (Model Context Protocol) server for Pressa - a LaTeX-to-PDF compilation service. This server lets AI assistants compile LaTeX documents and check API usage through a standardized interface.

Setup

Add this to your MCP client configuration (e.g. Claude Desktop, Cursor):

{
  "mcpServers": {
    "pressa": {
      "command": "npx",
      "args": ["-y", "@pressa/mcp"],
      "env": {
        "PRESSA_API_KEY": "pressa_your_key_here"
      }
    }
  }
}

Environment Variables

VariableRequiredDefaultDescription
PRESSA_API_KEYYes-Your Pressa API key (starts with pressa_)
PRESSA_API_URLNohttps://api.pressa.devAPI base URL

Tools

compile

Compile LaTeX source code into a PDF.

Input:

ParameterTypeRequiredDescription
latexstringYesLaTeX source code
compilerstringNo"pdflatex" (default), "xelatex", or "lualatex" (Pro and Business plans only)

Each plan has limits on pages per document, LaTeX source size, PDF output size, and compile timeout. If a compile exceeds your plan's page limit, the document does not count against your monthly quota and the MCP response includes the limit and an upgrade URL.

Output (success):

{
  "job_id": "ffc2bd62-3b67-45d6-be14-b529c4b9489f",
  "pdf_url": "https://api.pressa.dev/api/v1/pdfs/ffc2bd62...?sig=xxx&exp=xxx",
  "expires_at": "2026-04-09T20:44:55Z",
  "pages": 1,
  "compilation_time_ms": 359,
  "usage": {
    "plan": "free",
    "compilations_this_month": 9,
    "monthly_limit": 50
  }
}

Output (error): Compilation log and error line number.

usage

Get current API usage statistics.

Input: None.

Output:

{
  "user": {
    "email": "user@example.com",
    "username": "user",
    "plan": "free"
  },
  "usage": {
    "compilations_this_month": 9,
    "monthly_limit": 50,
    "remaining": 41,
    "resets_at": "2026-04-30T23:59:59Z"
  },
  "api_key": {
    "prefix": "pressa_a",
    "name": "my-key",
    "total_requests": 15,
    "last_used_at": "2026-04-08T20:44:55Z"
  }
}

Development

npm install
npm run build
npm start

License

MIT

Keywords

mcp

FAQs

Package last updated on 15 Apr 2026

Related posts