Lens-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LENS_SCHEMA_NAME | No | Schema used by introspection and table samples | public |
| LENS_DATABASE_URL | Yes | Postgres connection URL | |
| LENS_MAX_ROW_LIMIT | No | Maximum allowed limit | 1000 |
| LENS_ALLOWED_TABLES | Yes | Comma-separated allow-list such as public.customers,public.orders | |
| LENS_DEFAULT_ROW_LIMIT | No | Limit added when a query has no limit | 100 |
| LENS_STATEMENT_TIMEOUT_MS | No | Postgres statement timeout | 5000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_tablesD | – |
| describe_tableD | – |
| sample_tableD | – |
| queryD | – |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a distinct, clearly separate purpose: listing tables, describing schema, running queries, and sampling data. No overlap.
Three tools follow 'verb_noun' pattern consistently; 'query' deviates slightly as a single verb, but this is acceptable for a common database command.
Four tools is well-scoped for a database exploration server, covering core operations without excess.
The set covers essential data exploration operations (list, describe, sample, query). Missing write or administrative tools, but that fits the exploration focus.