ObjectLens MCP Server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ObjectLens MCP Server list buckets for my default provider"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ObjectLens MCP Server
A Model Context Protocol (MCP) server that connects Large Language Models (LLMs) to the ObjectLens REST API. This allows AI assistants to browse S3-compatible buckets, search indexed S3 object metadata, and preview object contents directly.
Configuration
The server is configured using environment variables:
Environment Variable | Description | Default |
| Base URL of the ObjectLens REST API |
|
| Username for HTTP Basic Authentication | None |
| Password for HTTP Basic Authentication | None |
Related MCP server: minio-mcp-server
Exposed Tools
The server exposes the following tools to the LLM:
list_providers: List configured S3 storage providers.get_default_provider: Get connection details of the default/active provider.list_buckets: List S3 buckets for a specific provider.list_bucket_objects: List or search objects in a specific bucket with prefix and pagination.get_object_metadata: Retrieve detailed metadata (size, content-type, ETag, etc.) of an object.get_object_preview: Read the content/preview of an object (supports text, JSON, CSV, code, etc.).search_objects: Query indexed metadata globally or scoped to a bucket.scan_bucket: Trigger S3 bucket metadata scanning to sync metadata into ObjectLens database.list_activities: Fetch recent activity logs/operations from ObjectLens.
Installation and Run
Run with UV
You can run the server directly using uv:
# From this directory
uv run python server.pyOr run it remotely:
uv run --path /path/to/objectlens/mcp-server/server.pyDocker
Build locally:
Build the Docker image:
docker build -t objectlens-mcp-server .Run the container:
docker run -i --rm \
-e OBJECTLENS_API_URL="http://host.docker.internal:8000" \
objectlens-mcp-serverPull from GHCR:
The image is automatically built and published to GitHub Container Registry (GHCR) on every push to the main branch or when a release tag (e.g., v1.0.0) is published.
To pull and run the pre-built image directly from GHCR:
docker run -i --rm \
-e OBJECTLENS_API_URL="http://host.docker.internal:8000" \
ghcr.io/<github-owner-or-org>/mcp-server:latest(The -i flag is required because the MCP server communicates over standard input/output).
Integration
Claude Desktop
To integrate this server with Claude Desktop, add it to your configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"objectlens": {
"command": "uv",
"args": [
"run",
"--path",
"/path/to/objectlens/mcp-server/server.py"
],
"env": {
"OBJECTLENS_API_URL": "http://localhost:8000"
}
}
}
}Available Tools
9 toolsget_default_providerA
Get connection details of the default/active storage provider.
Inputs: no named parameters. Returns: result
get_object_metadataA
Get detailed metadata for a specific object in a bucket.
:param bucket: Name of the bucket. :param key: Unique key/path of the object. :param provider_id: Optional provider connection ID.
Inputs: key (required), bucket (required), provider_id. Returns: result
get_object_previewA
Read the contents or preview of an S3 object. Useful for text, JSON, CSV, or code files.
:param bucket: Name of the bucket. :param key: Unique key/path of the object. :param max_bytes: Maximum number of bytes to retrieve (default is 1MB). :param provider_id: Optional provider connection ID.
Inputs: key (required), bucket (required), max_bytes, provider_id. Returns: result
list_activitiesA
List recent S3 activities/logs indexed in ObjectLens.
:param limit: Maximum activities to list (default is 10). :param offset: Offset for pagination.
Inputs: limit, offset. Returns: result
list_bucket_objectsA
List or search objects inside a specific bucket, with prefix filtering and pagination.
:param bucket: The bucket name to query. :param prefix: Optional prefix/folder path (e.g. 'data/'). :param search: Optional search pattern or glob string (e.g. '*.json'). :param limit: Maximum items to return (default is 50). :param offset: Offset for pagination (default is 0). :param delimiter: Path separator (default is '/'). :param provider_id: Optional provider connection ID.
Inputs: bucket (required), limit, offset, prefix, +3 more. Returns: result
list_bucketsA
List all S3 buckets for a specific provider, or the default provider if not specified.
:param provider_id: Optional connection ID of the provider.
Inputs: provider_id. Returns: result
list_providersA
List S3-compatible storage providers configured in ObjectLens.
Inputs: no named parameters. Returns: result
scan_bucketA
Trigger a S3 bucket metadata scan to index object records into ObjectLens database.
:param bucket: The S3 bucket to index. :param provider_id: Optional provider connection ID.
Inputs: bucket (required), provider_id. Returns: result
search_objectsB
Search indexed object metadata in ObjectLens using a query pattern.
:param search: Broad search query (e.g. partial file name or type). :param bucket: Optional bucket name to scope the search. :param prefix: Optional prefix to scope the search. :param limit: Maximum search results (default 100). :param offset: Offset for pagination. :param provider_id: Optional provider connection ID.
Inputs: search (required), limit, bucket, offset, +2 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have clear distinct purposes: listing providers, getting default provider, listing buckets, listing objects, getting metadata, scanning, previewing, searching, and listing activities. The only slight overlap is between list_bucket_objects and search_objects, but the descriptions clarify one is a direct S3 listing while the other searches the indexed metadata.
All tool names follow a consistent verb_noun pattern with lowercase and underscores: list_providers, get_default_provider, list_buckets, list_bucket_objects, get_object_metadata, scan_bucket, get_object_preview, search_objects, list_activities. This makes the set very predictable.
With 9 tools, the server is well-scoped for S3 provider and object metadata management. Each tool covers a distinct aspect of listing, retrieval, scanning, and searching, and the count feels appropriate for the domain.
The tool set covers the core workflows of listing providers, buckets, objects, retrieving metadata and content, triggering scans, searching the index, and viewing activities. Minor gaps exist such as provider CRUD or object deletion, but these are likely outside the server's focus on indexing and browsing.
Maintenance
Related MCP Connectors
Access Pollinations models and API capabilities through agent tools.
Connect AI clients to biomedical data and tools.
Connect ChatGPT or Claude to your CRM, store or shipping API. Keys stay out of the chat.
Connect your AI agent to the apitree API marketplace.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with AWS S3 buckets to list buckets and objects, retrieve files, and expose PDF documents as resources that can be loaded into the LLM's context.79MIT No Attribution
- FlicenseNot gradedqualityDmaintenanceEnables LLM agents to interact with MinIO/S3 object storage, supporting bucket and object operations like listing, reading, writing, and generating presigned URLs.1-
- AlicenseAqualityCmaintenanceEnables AI assistants to explore and manage S3-compatible object storage (AWS S3, RustFS, MinIO, Cloudflare R2) by listing buckets and objects, inspecting metadata, and reading object contents with capped range requests. Write operations such as upload and delete are available but disabled unless explicitly enabled, with optional bucket allow-listing and custom TLS trust.6MIT
- AlicenseCqualityBmaintenanceEnables LLM and AI agent clients to manage S3-compatible object storage such as MinIO, AWS S3, Aliyun OSS, Cloudflare R2, and Tencent COS through the Model Context Protocol. It provides 19 production-grade tools covering bucket lifecycle, object browsing, search, text and byte-range reads, streaming uploads/downloads, presigned URLs, moves, batch deletion, and tag management, protected by read-only, sandbox, prefix-deletion, and content-truncation guards.2144 npmMIT