Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
portNoPort for HTTP transport (default: 3000)3000
transportNoTransport type: stdio (default), sse, streamable-httpstdio
csv-folderNoAlternative way to specify CSV folder path
folder_pathNoPath to folder containing CSV files (positional argument)
table-prefixNoOptional prefix for table names (e.g., 'sales_')

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_database_schemaA

Get the current database schema showing all loaded tables and their structure

list_loaded_tablesA

List all currently loaded tables with their source CSV files

load_csv_folderA

Load all CSV files from a folder into a temporary SQLite database.

Args: folder_path: Path to folder containing CSV files table_prefix: Optional prefix for table names

Returns: Status message with details of loaded files

execute_sql_queryA

Execute any SQL query on the loaded database.

Args: query: Any SQL query to execute (SELECT, INSERT, UPDATE, DELETE, CREATE, etc.) limit: Maximum number of rows to return for SELECT queries (default: 100)

Returns: Query results formatted as XML or execution status

get_table_infoB

Get detailed information about a specific table.

Args: table_name: Name of the table to inspect

Returns: Detailed table information including schema and sample data

create_indexA

Create an index on a table column for better query performance.

Args: table_name: Name of the table column_name: Name of the column to index index_name: Optional custom index name

Returns: Status message

backup_databaseB

Create a backup of the current database to a file.

Args: backup_path: Path where to save the backup file

Returns: Status message

export_table_to_csvB

Export a table to a CSV file.

Args: table_name: Name of the table to export output_path: Path for the output CSV file include_header: Whether to include column headers

Returns: Status message

get_query_planB

Get the execution plan for a query to understand performance.

Args: query: SQL query to analyze

Returns: Query execution plan

clear_databaseC

Clear the temporary database and remove all loaded tables.

Returns: Status message

get_column_statsB

Get statistical summary for a specific column.

Args: table_name: Name of the table column_name: Name of the column to analyze

Returns: Statistical summary including count, nulls, unique values, and distribution info

find_duplicatesA

Find duplicate rows in a table.

Args: table_name: Name of the table to check columns: Comma-separated column names to check for duplicates, or "all" for all columns

Returns: Information about duplicate rows found

analyze_missing_dataA

Analyze missing data patterns in a table.

Args: table_name: Name of the table to analyze

Returns: Summary of missing data patterns across all columns

get_data_summaryC

Get a comprehensive summary of the table data.

Args: table_name: Name of the table to summarize

Returns: Quick overview with key insights about the data

Prompts

Interactive templates invoked by user choice

NameDescription
analyze_data_prompt Generate a prompt for analyzing data in a specific table. Args: table_name: Name of the table to analyze analysis_type: Type of analysis (summary, trends, insights, etc.)

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/Lasitha-Jayawardana/mcp-csv-database'

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