Skip to main content

Contextal Lens MCP server

An STDIO MCP server for analyzing local files with Contextal Lens. It supports executables, DLLs, archives, documents, email, installers, images, and other formats supported by the backend.

Setup

Install uv and add the server to your MCP client:

{
  "mcpServers": {
    "clens": {
      "command": "uvx",
      "args": ["clens-mcp"],
      "env": {
        "CTX_URL": "https://your-contextal-lens-endpoint.example",
        "CTX_TOKEN": "replace-with-your-token"
      }
    }
  }
}

Tool

analyse_file(path) sends a local file to Contextal Lens and returns its content graph and security signals. Its description covers generic requests such as "check whether this file is safe" as well as explicit Clens requests.

The tool description tells agents to call analyse_file directly for file-safety requests, including "controllami che questo file sia sicuro", without first opening or preprocessing the file. MCP exposes tools; the client/model decides when to call them, so a server description cannot guarantee automatic selection. See tool selection for details and troubleshooting.

License

This package is distributed under the MIT License. See the LICENSE.txt file for more details.

Release files for clens-mcp 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clens-mcp 1.0.2
File Size Uploaded
clens_mcp-1.0.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clens-mcp 1.0.2
File Interpreter ABI Platform
clens_mcp-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / clens_mcp-1.0.2.tar.gz

Download URL clens_mcp-1.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
346ab97ec30ceeeea602caf9547987ac20860830902a92e21087acaf110f5dee
BLAKE2b-256 checksum
How to use checksums
9b0ae05dfa983294879bbe3c9e2dab4fe52337adbf76a7a8a6dfef297eb5a18d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / clens_mcp-1.0.2-py3-none-any.whl

Download URL clens_mcp-1.0.2-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
326023b38e91f219f2ee9702cb6fe6149df8349bd67742894b9bb625312609a0
BLAKE2b-256 checksum
How to use checksums
a74af0f129e59b3a31a855fac3d4de1b96e2a2a100775f3a3d4059153217ee62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page