Skip to main content
Glama
kshitiz305

analytics-mcp-server

by kshitiz305

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ANALYTICS_DB_PATHNoPath to a SQLite database file. If not set, the server may use a default sample.db.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
analytics_list_tablesA

List all user tables in the database together with their row counts.

Use this first to discover what data is available before describing or querying a specific table. It does not read row contents, only metadata.

analytics_describe_tableA

Show a table's column schema, total row count and a few sample rows.

Use this after analytics_list_tables to understand a table's columns (names, types, nullability, primary keys) before writing a query.

analytics_run_queryA

Run a guarded, read-only SQL SELECT query with pagination.

The query is executed over a read-only connection protected by a SQLite authorizer, and is validated to be a single SELECT/WITH statement, so it cannot modify data. Results are paginated via limit/offset.

analytics_aggregateA

Group a table by a column and compute an aggregate — no SQL required.

A convenience workflow tool over the most common analytics pattern. Column and table names are validated against the schema, so it is safe from injection. For anything more complex, use analytics_run_query.

analytics_import_csvA

Load a CSV file into a SQLite table (validated via pandas).

This is the only WRITE tool. Column types are inferred by pandas. The destination table name must be a valid SQL identifier.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kshitiz305/analytics-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server