MCP Server
⚡ 11 Tools 🔌 Streamable HTTP 🔒 OAuth 2.1 + PKCE 📂 2 GB files

MCP Server
for LSA Decrypt

Let AI agents decrypt your MIUI Gallery encrypted files.
Connect your favorite agent — Claude Code, OpenCode, Cursor, Codex, or Windsurf — and decrypt .lsa and .lsav files with natural language commands.

How It Works

Four simple steps from encrypted file to decrypted media — all through your AI agent.

1

Connect Your Agent

Add the MCP server URL to your AI agent's config file. OAuth 2.1 is handled automatically.

2

Ask Your Agent

Tell your agent to decrypt your file and give it the exact path, e.g. "decrypt C:\my-files\photo.602.lsa". That's it — the agent handles the upload for you.

3

Automated Processing

The agent triggers the decryption pipeline and polls for progress. Your file is decrypted with AES and converted to JPEG or MP4.

4

Download & Enjoy

Get a free watermarked preview immediately. Want the original, watermark-free quality? Purchase it with credits — all without leaving your AI agent.

Live Demo

Watch an AI agent decrypt a file step by step. This is exactly how the MCP server works.

MCP Decrypt Session
you@workstation $ Decrypt my file: C:\my-files\somefile.602.lsa
.
get_upload_url Getting presigned S3 upload URL...
get_upload_url URL obtained — ready to upload
upload_file_to_s3 Uploading encrypted file (15.2 MB)...
upload_file_for_decryption Decryption pipeline started — job #a1b2c3
check_decryption_status Processing... ████████▎▎ 75%
check_decryption_status Complete! Preview ready
fetch_media_file Downloading decrypted preview...
get_pricing Original (no watermark) available — see pricing below
.
✓ Your file has been decrypted successfully!
Decrypted preview — somefile.jpg
📷 preview
Say "buy the original" to purchase — no need to leave the chat

11 MCP Tools

Every tool the MCP server exposes — from upload to final download.

📤 Upload

get_upload_url

Get a presigned S3 URL for uploading an encrypted MIUI Gallery .lsa or .lsav file. Call this first.

upload_file_to_s3

Upload encrypted file data to temporary S3 storage using the presigned URL. Supports local file path or base64.

upload_file_for_decryption

Start decrypting an encrypted file. Provide the fileKey from get_upload_url and get a jobId for status polling.

🔄 Process

check_decryption_status

Poll the current status and progress of a file decryption job. Returns status, progress, preview URL, and purchase info.

fetch_media_file

Download a preview or original media file from the decryption output as base64 with metadata.

💰 Purchase

get_pricing

Get current pricing for credit packs, detected currency, and country code.

create_checkout_session

Create a Stripe checkout session to purchase credit packs for downloading original decrypted files.

purchase_original_file

Create a checkout session to purchase the original (unwatermarked) quality for one file.

get_original_file

After purchase, get the download URL for the original unwatermarked file.

📋 Manage

get_user_files

List files the current user has decrypted. Supports pagination, search, file type filtering, and sorting.

batch_decrypt_info

Get information about batch decrypting multiple files at once via the web application.

Connect Your Agent

MCP endpoint: https://mcp.lsadecrypt.online/mcp

No account needed — OAuth 2.1 creates your session automatically the first time you use a tool.

OpenCode OpenCode
1 Edit your config file
opencode.json  (project root, or ~/.config/opencode/opencode.json)
{ "mcp": { "lsadecrypt": { "type": "remote", "url": "https://mcp.lsadecrypt.online/mcp" } } }

Top-level key is mcp, not mcpServers — OpenCode uses its own schema.

2 Authenticate (run in your terminal)
$ opencode mcp auth lsadecrypt

Opens your browser to sign in via OAuth — no account or password needed beforehand. Skippable: OpenCode will trigger the same flow automatically the first time you use the tool.

3 Launch OpenCode
$ opencode
Claude Code Claude Code (Anthropic)
1 Add the server (run in your terminal)
$ claude mcp add --transport http lsadecrypt https://mcp.lsadecrypt.online/mcp

This writes the entry for you. To make it available in every project, add -s user before the server name.

or edit the file manually
.mcp.json  (project root)
{ "mcpServers": { "lsadecrypt": { "type": "http", "url": "https://mcp.lsadecrypt.online/mcp" } } }
2 Reload (inside a Claude Code session)
> /mcp

If the server needs authentication, Claude Code opens your browser to sign in via OAuth automatically — no account or password needed beforehand.

Codex Codex (OpenAI)
1 Add the server (run in your terminal)
$ codex mcp add lsadecrypt --url https://mcp.lsadecrypt.online/mcp

This is the recommended path — Codex writes the correct entry to ~/.codex/config.toml for you.

2 Authenticate (run in your terminal)
$ codex mcp login lsadecrypt

Opens your browser to sign in via OAuth — no account or password needed beforehand.

or edit the file manually
~/.codex/config.toml
[mcp_servers.lsadecrypt] url = "https://mcp.lsadecrypt.online/mcp"

Codex CLI only reads TOML — there's no YAML config format.

Cursor Cursor
1 Edit your config file
.cursor/mcp.json  (project root, or ~/.cursor/mcp.json for global)
{ "mcpServers": { "lsadecrypt": { "url": "https://mcp.lsadecrypt.online/mcp" } } }

No "type" field needed — Cursor infers a remote server from the presence of url.

2 Reload Cursor

Restart Cursor, or run Developer: Reload Window from the command palette. You'll be prompted to sign in via OAuth in your browser the first time a tool is used — no account or password needed beforehand.

Windsurf Windsurf (Codeium)
1 Edit your config file
~/.codeium/windsurf/mcp_config.json
{ "mcpServers": { "lsadecrypt": { "serverUrl": "https://mcp.lsadecrypt.online/mcp" } } }

Windsurf uses serverUrl for remote servers, not url — and no "type" field.

2 Restart Windsurf

Quit and reopen Windsurf completely — closing just the window won't reload MCP servers. Or use the MCP panel (hammer icon) to refresh. You'll be prompted to sign in via OAuth in your browser the first time a tool is used — no account or password needed beforehand.

Why MCP?

The Model Context Protocol lets AI agents interact directly with real-world services.

🔌

No Installation Required

Just add a URL to your agent config. No Docker, no Python, no npm. Streamable HTTP transport means zero setup.

🔒

Secure by Default

OAuth 2.1 with PKCE for authorization_code flow. Per-session cookie isolation prevents cross-session data leaks.

Real-time Progress

Streaming responses let your agent show live progress. No more waiting — watch your files decrypt step by step.

Ready to Try It?

No account needed — connect your AI agent and start decrypting with natural language commands. Prefer a browser? Upload files directly on the main site instead.

Visit Main Site → Try Decrypting