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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clens_mcp-1.0.2.tar.gz | 3.9 kB | Without provenance | Details for clens_mcp-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clens_mcp-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for clens_mcp-1.0.2-py3-none-any.whl |
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
|
Security for clens-mcp 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.