
An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

A Model Context Protocol server built with FastMCP that exposes Lumenore's analytics, natural language query and file upload capabilities to AI assistants.
Lumenore Analytics MCP Server is cataloged as an MCP server attributed to lumenore-platform. A Model Context Protocol server built with FastMCP that exposes Lumenore's analytics, natural language query and file upload capabilities to AI assistants. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Lumenore Analytics MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The server publishes OAuth protected-resource metadata and returns a 401 challenge, letting OAuth-capable clients sign users in through the Lumenore identity provider; the user's bearer token is forwarded to Lumenore on every call.
Queries and results are not stored by the MCP server; requests are processed in memory, though large URL-relay uploads use a temporary file deleted when the upload ends, and Lumenore's backend privacy policies apply to forwarded requests.
For files larger than 100 KiB attached in chat, use create_upload_link, which returns an upload_page_url for a browser upload page.
README.md · f2e6c20c5f1f · Fetched 2026-11-13 11:49:16 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server that gives AI assistants (Claude, ChatGPT and other MCP clients) access to Lumenore's analytics, natural language query and file upload capabilities. Built with FastMCP and Python 3.13.
401 with a WWW-Authenticate challenge, so Claude, ChatGPT and other OAuth-capable clients can sign users in through the Lumenore identity provider. The user's bearer token is forwarded to Lumenore on every call./upload page uploads large files straight from the user's browser to a signed URL, so file bytes never pass through the model.get_metadata_info (column-level schema details) and health_check.BASE_PATH routing for gateways/ingress, health probes (/health, /ready, /live), and a run.sh startup script.git clone <repository-url>
cd lumenore-mcp-engine
pip install -r requirements.txt
cp .env.example .env # then edit the values
python main.py # or ./run.sh
Connect your MCP client to http://localhost:8080/mcp using Streamable HTTP.
LUMENORE_API_KEY (or LUMENORE_CLIENT_ID + LUMENORE_SECRET) in .env.SERVER_URL) and publish-api (PUBLISH_API_BASE_URL)git clone <repository-url>
cd lumenore-mcp-engine
pip install -r requirements.txt
cp .env.example .env
Main dependencies (see requirements.txt): fastmcp 3.4.4, mcp 1.28.1, uvicorn, starlette, httpx, aiohttp, requests, pydantic-settings, python-dotenv.
Settings are read from environment variables or a .env file (Pydantic settings). .env.example contains a working UAT template.
| Variable | Required | Default | Description |
|---|---|---|---|
SERVER_URL | No | https://preview.lumenore.com | Lumenore backend base URL for analytics calls and client-credential login |
BASE_PATH | No | "" | Path prefix the app handles itself, e.g. /bridge/lumenore-mcp. Leave empty when the gateway strips the prefix |
DEBUG | No | false | Debug-level logging (still never logs credentials, queries or responses) |
LOG_FILE | No | – | Optional path for a rotating log file. Logs go to stderr only when unset |
| Variable | Required | Default | Description |
|---|---|---|---|
AUTHORIZATION_SERVER_ISSUER | Yes, for OAuth clients | http://localhost:8081 | Public issuer URL of the Lumenore identity provider, e.g. https://your-lumenore-host.example.com/api/secure |
MCP_RESOURCE_URL | Yes, for OAuth clients | http://localhost:8080/mcp | Public URL of the MCP endpoint (the gateway URL when a gateway fronts /mcp), e.g. https://your-lumenore-host.example.com/api/mcp-server/mcp |
MCP_SCOPES | No | mcp.tools,lumenore | Comma-separated scopes advertised in the metadata; must match scopes the IDP accepts |
Use public URLs here.
localhostdefaults only work when the client runs on the same machine.
| Variable | Required | Default | Description |
|---|---|---|---|
LUMENORE_API_KEY | No | – | Bearer token (JWT, without the Bearer prefix) used when a request carries no credentials |
LUMENORE_CLIENT_ID | No | – | Client ID for client-credential login (POST {SERVER_URL}/api/secure/client/user-login) |
LUMENORE_SECRET | No | – | Client secret paired with LUMENORE_CLIENT_ID |
Leave these empty for multi-tenant deployments. Every request must then bring its own credentials, and unauthenticated /mcp calls get the OAuth 401 challenge.
PUBLISH_API_TOKEN (below) also counts as a server-level credential.
When any server-level credential is set, /mcp needs no token, so the server validates Host and Origin to block DNS rebinding from a browser:
| Variable | Default | Description |
|---|---|---|
ALLOWED_HOSTS | – | Extra comma-separated hostnames accepted in the Host header (ports are ignored). localhost, 127.0.0.1, ::1 and the MCP_RESOURCE_URL host are always accepted. * disables the check |
ALLOWED_ORIGINS | – | Extra comma-separated origins (https://app.example.com) accepted in the Origin header. Origins whose host is an allowed host are always accepted, as are requests without Origin. * disables the check |
Other requests to /mcp get 403. If the server runs behind a proxy or a container service name, add that hostname to ALLOWED_HOSTS.
| Variable | Default | Description |
|---|---|---|
PUBLISH_API_BASE_URL | {SERVER_URL}/api/publish | Base URL for upload session management |
PUBLISH_API_SESSIONS_PATH | /signed/sessions | Sessions path below PUBLISH_API_BASE_URL |
PUBLISH_API_TOKEN | – | Optional server-level bearer for publish-api; used only when the request carries no credentials at all. Counts as a server-level credential |
UPLOAD_PAGE_BASE_URL | derived | Public URL of the browser upload page, e.g. https://your-lumenore-host.example.com/bridge/lumenore-mcp/upload. Defaults to MCP_RESOURCE_URL with /mcp replaced by /upload |
UPLOAD_PAGE_ALLOWED_HOSTS | PUBLISH_API_BASE_URL host | Comma-separated hosts (subdomains match) the browser upload page may send files to. Set it if publish-api returns signed URLs on another host |
ALLOWED_SOURCE_URL_HOSTS | – | Optional comma-separated allowlist for upload_file_from_url. Empty allows any public HTTPS host |
UPLOAD_FROM_URL_MAX_CONCURRENCY | 2 | Max simultaneous upload_file_from_url downloads; further calls are refused until one finishes |
UPLOAD_FROM_URL_TIMEOUT_SECONDS | 300 | Total time one upload_file_from_url download may take |
MAX_INLINE_BYTES | 102400 | Max size for upload_file (100 KiB) |
MAX_CHUNK_BYTES | 30000 | Max raw bytes per chunk |
MAX_TOTAL_BYTES | 104857600 | Max file size (100 MiB) |
UPLOAD_URL_CACHE_TTL_SECONDS | 600 | How long signed upload URLs are cached per upload |
CHUNK_NUMBER_START | 0 | First chunk number (zero-based) |
ALLOWED_EXTENSIONS | – | Optional allowlist, e.g. pdf,txt,csv. Empty allows all |
DEFAULT_UPLOAD_DESTINATION | Lumenore | Destination label (metadata only) |
ENABLE_HANDOFF_TOOLS | false | Registers the extra handoff tools (see File Uploads) |
REQUEST_TIMEOUT (60s), CONNECT_TIMEOUT (10s), TOTAL_TIMEOUT (300s), RETRY_ATTEMPTS (1), RETRY_DELAY (1s), POOL_CONNECTIONS (10), POOL_MAXSIZE (20), POOL_TIMEOUT (30s), SERVER_TIMEOUT (300s), KEEP_ALIVE_TIMEOUT (60s).
.envSERVER_URL=https://your-lumenore-host.example.com
AUTHORIZATION_SERVER_ISSUER=https://your-lumenore-host.example.com/api/secure
MCP_RESOURCE_URL=https://your-lumenore-host.example.com/api/mcp-server/mcp
MCP_SCOPES=mcp.tools,lumenore
UPLOAD_PAGE_BASE_URL=https://your-lumenore-host.example.com/bridge/lumenore-mcp/upload
PUBLISH_API_BASE_URL=https://your-lumenore-host.example.com/api/publish
PUBLISH_API_SESSIONS_PATH=/signed/sessions
PUBLISH_API_TOKEN=
MAX_INLINE_BYTES=102400
MAX_CHUNK_BYTES=30000
MAX_TOTAL_BYTES=104857600
UPLOAD_URL_CACHE_TTL_SECONDS=600
CHUNK_NUMBER_START=0
ENABLE_HANDOFF_TOOLS=false
ALLOWED_EXTENSIONS=
DEFAULT_UPLOAD_DESTINATION=Lumenore
# Optional server-level fallback (leave empty for multi-tenant)
# LUMENORE_API_KEY=
# LUMENORE_CLIENT_ID=
# LUMENORE_SECRET=
# BASE_PATH=/bridge/lumenore-mcp
python main.py
# or
./run.sh # prints SERVER_URL / BASE_PATH / DEBUG, then starts main.py
The server listens on 0.0.0.0:8080 using the Streamable HTTP transport.
Base path options
| Setup | BASE_PATH | MCP URL |
|---|---|---|
| Direct, or gateway strips the prefix (recommended) | empty | http://yourserver:8080/mcp |
| Gateway forwards the full path | /bridge/lumenore-mcp | http://yourserver:8080/bridge/lumenore-mcp/mcp |
When BASE_PATH is set, only paths under that prefix are served, matched on segment boundaries. Health probes, /upload and the OAuth metadata are served under the prefix too.
MCP client ──► POST /mcp (no token)
◄── 401 WWW-Authenticate: Bearer resource_metadata=".../.well-known/oauth-protected-resource/mcp"
MCP client ──► GET /.well-known/oauth-protected-resource/mcp
◄── { resource, authorization_servers: [AUTHORIZATION_SERVER_ISSUER], scopes_supported, bearer_methods_supported: ["header"] }
MCP client ──► Lumenore IDP (AUTHORIZATION_SERVER_ISSUER) — user signs in, client gets an access token
MCP client ──► POST /mcp Authorization: Bearer <token>
MCP server ──► Lumenore APIs with the same Authorization header
Authorization header reaches it.401 challenge is returned when the request has no Authorization: Bearer header, no client-credential headers, and no server-level credentials are configured.Authorization header that is not Bearer <token> is always rejected with 401. It never falls back to client-credential headers or server-level credentials.Authorization: Bearer <token> request header (OAuth or a user-supplied token)Lumenore-Client-Id + Lumenore-Client-Secret request headers (X-Lumenore-Client-Id / X-Lumenore-Client-Secret also accepted). The server logs in at {SERVER_URL}/api/secure/client/user-login and uses the returned access_token cookie.LUMENORE_API_KEY from the environmentLUMENORE_CLIENT_ID + LUMENORE_SECRET from the environmentTokens obtained through client-credential login are refreshed once automatically on a 401 from the backend. Tool calls with no usable credentials fail with 401 Unauthorized: No credentials provided.
For uploads, publish-api requires a bearer: the request bearer is used first, then client-credential headers (exchanged for a bearer). Only when the request carries no credentials at all is PUBLISH_API_TOKEN used, then LUMENORE_API_KEY.
.env or tokens to version controlAdd a custom connector with the public MCP URL (MCP_RESOURCE_URL), for example https://your-lumenore-host.example.com/api/mcp-server/mcp. The client discovers the IDP and asks the user to sign in.
{
"mcpServers": {
"lumenore": {
"type": "streamable-http",
"url": "https://your-lumenore-host.example.com/api/mcp-server/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}
Alternatively send Lumenore-Client-Id and Lumenore-Client-Secret headers instead of Authorization.
from fastmcp import Client
from fastmcp.client.transports import StreamableHttpTransport
transport = StreamableHttpTransport(
"http://localhost:8080/mcp",
headers={"Authorization": "Bearer <token>"},
)
async with Client(transport) as client:
tools = await client.list_tools()
result = await client.call_tool("nlq_to_data", {
"userQuery": "Top 5 sales regions last month",
"schemaId": 123,
})
Connection details: Streamable HTTP, port 8080, MCP protocol 2024-11-05+, auth via OAuth bearer, client-credential headers, or server-level credentials.
| Tool | Description |
|---|---|
get_dataset_metadata | Lists available datasets with schema IDs, names and timestamps |
get_metadata_info | Column-level metadata for a schema (schemaId): names, aliases, descriptions, data types, date formats, units |
| Tool | Description |
|---|---|
nlq_to_data | Converts a question into structured data (userQuery, schemaId) |
All take userQuery and schemaId.
| Tool | Description |
|---|---|
get_trend_data | Temporal patterns and trends |
get_prediction_data | Forecasts and predictions |
get_outlier_data | Anomalies and unusual patterns |
get_correlation_data | Relationships between variables |
get_change_data | Pattern shifts and transitions |
get_pareto_data | 80/20 impact analysis |
| Tool | Description |
|---|---|
upload_file | Uploads a small file (≤ MAX_INLINE_BYTES) sent inline as text or base64 |
create_upload_link | Creates a short-lived browser upload page (upload_page_url) for large files |
upload_file_from_url | Server downloads a public HTTPS URL and uploads it to Lumenore |
start_chunked_upload | Starts a chunked upload session |
upload_chunk | Uploads one base64 chunk (safe to retry) |
get_upload_status | Progress and status of an upload session |
complete_upload | Completes a direct upload or merges chunks |
abort_upload | Aborts an upload session |
With ENABLE_HANDOFF_TOOLS=true, three more are registered: create_direct_upload_session, create_chunked_upload_session (with a shell loop for uploading chunks) and refresh_upload_url.
| Tool | Description |
|---|---|
health_check | Server status, auth mode, tool list and Lumenore API connectivity (requires credentials) |
{"data": {...}, "status": "success"}{"error": "...", "status": "validation_error"}{"error": "...", "status": "error"}Upload tools raise MCP tool errors with an actionable message instead.
The default target is standard Lumenore file storage. No folder, workspace or dataset is needed. destination is metadata only. On completion, publish-api returns uniqueFileName.
| Situation | Tool |
|---|---|
| File ≤ 100 KiB | upload_file |
| Larger file attached in chat | create_upload_link, then give the user upload_page_url |
| Client has a temporary HTTPS URL for the file | upload_file_from_url |
| Script or agent that can send bytes itself | start_chunked_upload → upload_chunk × N → complete_upload |
The server's MCP instructions tell assistants to upload the complete file (no trimming or cleaning unless asked), to use the browser page for large attachments, and to confirm the uploaded file name.
create_upload_link creates a DIRECT session and returns upload_page_url, which points at {UPLOAD_PAGE_BASE_URL}#put=…&complete=…&name=…&type=…&size=…. The signed URLs are in the URL fragment, which browsers never send to a server, so they do not appear in access logs, gateway logs or Referer headers; the page also removes the fragment from the address bar once it has read it. The page:
UPLOAD_PAGE_ALLOWED_HOSTS (enforced by the browser through connect-src), so it cannot be used to send files to another site. create_upload_link also refuses signed URLs on other hosts. Requests that put the signed URLs in the query string get 400PUTs the bytes to the signed URL with progress, then POSTs the signed completion URLconnect-src built from UPLOAD_PAGE_ALLOWED_HOSTS, no framing), Referrer-Policy: no-referrer, X-Content-Type-Options: nosniff, Cache-Control: no-store and noindexA curl command is also returned as a technical fallback. content_type must be a plain media type (type/subtype) and every value in the command is shell-quoted.
PUBLISH_API_BASE_URL + /signed/sessions[/{id}][/presign|/complete] with the request's bearer.PUTs go only to the HMAC-signed uploadUrl / uploadUrlTemplate returned by publish-api (the hostname may differ) with Content-Type: application/octet-stream, never the bearer token.{chunkNumber} in the template is replaced with the URL-quoted, zero-based chunk number.429/500/502/503/504. Expired signed URLs (401/403/404/410) are refreshed once, then the upload fails with a clear error.upload_file_from_url first verifies the caller's bearer with publish-api, and only then resolves or downloads anything. Downloads are limited by UPLOAD_FROM_URL_MAX_CONCURRENCY and UPLOAD_FROM_URL_TIMEOUT_SECONDS. It accepts only HTTPS URLs without embedded credentials that resolve to public internet addresses (loopback, private, link-local/cloud-metadata and other internal ranges are rejected, and the connected address is re-checked). It sends no credentials to the source, does not follow redirects, streams in MAX_CHUNK_BYTES pieces, and enforces MAX_TOTAL_BYTES. Use ALLOWED_SOURCE_URL_HOSTS to restrict it further.ALLOWED_EXTENSIONS.Expected publish-api responses: session create 201; direct PUT 202 with data.status=UPLOADED; chunk PUT 200 (duplicate) or 202; complete 200/201 with data.uniqueFileName.
All paths are relative to BASE_PATH when it is set.
| Path | Method | Auth | Purpose |
|---|---|---|---|
/mcp | POST/GET | Bearer, client headers or server creds | MCP Streamable HTTP endpoint |
/.well-known/oauth-protected-resource and /.well-known/oauth-protected-resource/mcp | GET | None | OAuth protected-resource metadata |
/upload | GET | Signed query parameters | Browser upload page |
/health, /healthz | GET | None | Status, configuration and tool list |
/ready, /readiness | GET | None | Readiness (503 if tools are unavailable) |
/live, /liveness | GET | None | Liveness (OK) |
Health probe requests are filtered out of access logs.
metadata = await client.call_tool("get_dataset_metadata", {})
columns = await client.call_tool("get_metadata_info", {"schemaId": 35403})
sales = await client.call_tool("nlq_to_data", {
"userQuery": "Total sales by region for Q4 2024, highest first", "schemaId": 35403})
trend = await client.call_tool("get_trend_data", {
"userQuery": "Monthly sales trends for Q4 2024", "schemaId": 35403})
pareto = await client.call_tool("get_pareto_data", {
"userQuery": "Which products contribute to 80% of our sales?", "schemaId": 35403})
outliers = await client.call_tool("get_outlier_data", {
"userQuery": "Customers with unusually high order values or frequency", "schemaId": 35404})
drivers = await client.call_tool("get_correlation_data", {
"userQuery": "What factors correlate with customer lifetime value?", "schemaId": 35404})
forecast = await client.call_tool("get_prediction_data", {
"userQuery": "Predict demand for the next 3 months by product category", "schemaId": 35405})
changes = await client.call_tool("get_change_data", {
"userQuery": "Any significant recent changes in demand patterns?", "schemaId": 35405})
# Small file
await client.call_tool("upload_file", {
"file_name": "notes.csv", "content": "a,b\n1,2\n", "encoding": "text"})
# Large file: give the user the browser page
link = await client.call_tool("create_upload_link", {
"file_name": "sales_2025.xlsx", "total_size": 4_812_331,
"content_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})
# -> link["upload_page_url"]
Best practices: start with get_dataset_metadata (and get_metadata_info) to find schema IDs and columns, keep queries specific, and check status in every response.
UPLOAD_URL_CACHE_TTL_SECONDS, scoped to the token that created themLOG_FILE is setupload_file_from_url only fetches public HTTPS addresses/upload page only sends files to allowlisted publish-api hosts and cannot be framedSee the Privacy Policy.
User query → MCP Server → Lumenore Backend → Results → User
(no storage) (Lumenore's privacy policy applies)
AUTHORIZATION_SERVER_ISSUER, MCP_RESOURCE_URL and UPLOAD_PAGE_BASE_URL to public HTTPS URLsLUMENORE_API_KEY, LUMENORE_CLIENT_ID/LUMENORE_SECRET, PUBLISH_API_TOKEN) on a publicly reachable deployment. With them set, /mcp does not require OAuth and anyone who can reach the server acts as that account. The server logs a warning at startup when they are setALLOWED_EXTENSIONS and MAX_TOTAL_BYTES to match your policy.env permissions (chmod 600 .env)DEBUG=falseUPLOAD_PAGE_ALLOWED_HOSTS to exactly the publish-api hosts you usepip-audit -r requirements.txt)Email askme@lumenore.com with details and reproduction steps. We acknowledge within 24 hours; please allow us to fix the issue before public disclosure.
curl http://localhost:8080/live → OKcurl http://localhost:8080/healthcurl http://localhost:8080/.well-known/oauth-protected-resource/mcpcurl -I $SERVER_URL(Add BASE_PATH to each path when it is set.)
| Symptom | Fix |
|---|---|
| Client never shows a sign-in prompt | AUTHORIZATION_SERVER_ISSUER and MCP_RESOURCE_URL must be public URLs reachable by the client; the metadata endpoint must be reachable through the gateway |
401 Bearer token required on /mcp | Expected without credentials; complete OAuth, or send Authorization / client-credential headers |
401 Unauthorized: No credentials provided from a tool | The request reached the tool with no credentials; check that the gateway forwards Authorization |
No bearer token is available for publish-api | Reconnect the client (OAuth) or set PUBLISH_API_TOKEN |
publish-api returned an upload URL on a host that is not in UPLOAD_PAGE_ALLOWED_HOSTS | Add the signed-URL host to UPLOAD_PAGE_ALLOWED_HOSTS |
source_url must point to a public internet address | upload_file_from_url cannot fetch internal or private addresses |
Upload page returns 400 | The link is incomplete or expired; create a new one with create_upload_link |
| Upload page says the size doesn't match | Choose the original file; its size must equal the size given to create_upload_link |
File extension is not allowed | Adjust ALLOWED_EXTENSIONS |
404 behind a gateway | Check BASE_PATH: empty if the gateway strips the prefix, the prefix if it forwards it |
DEBUG=true python main.py
Check startup logs for the configured endpoints and the credential-mode message. With DEBUG=true, [Middleware] / [Auth] lines show which credential source was used (never the credential itself).
python -m pytest
main.py ASGI router: BASE_PATH, health, OAuth metadata, 401 challenge, /upload page
mcp_instance.py FastMCP instance and assistant instructions
config.py Settings (env / .env)
run.sh Startup script
health_endpoint.py /health, /ready, /live
core/
middleware.py Per-request credential checks for tool calls
request_context.py Per-request header storage (ContextVar)
lumenore_analytics.py Analytics API client and credential resolution
lumenore_client.py Client-credential login
file_upload_client.py publish-api client: sessions, signed PUTs, retries
tools/
dataset_tools.py get_dataset_metadata, get_metadata_info
nlq_tools.py nlq_to_data
advance_analytics_tools.py trend, prediction, outlier, correlation, change, pareto
file_upload_tools.py upload tools
health_check.py health_check tool
tests/ pytest tests
This project follows the Contributor Covenant.
git checkout -b feature/my-feature)Report bugs and request features through GitHub Issues with steps to reproduce, expected vs actual behaviour, and environment details (Python version, OS).
MIT. See LICENSE.
When reporting a problem, include the server and Python versions, error messages and logs, and steps to reproduce.
Version: 1.0.0 Last Updated: November 2026 Python: 3.13+ MCP Protocol: 2024-11-05+
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Lumenore Analytics MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/lumenore-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Runs a free Answer Engine Optimization and AI visibility report for a domain and returns a shareable report plus a structured summary.

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.