Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
EMBED_DIMNoDimension of the embedding vectors. Must match the model (default: 1536).
CHUNK_SIZENoNumber of characters per chunk (default: 1000).
DATABASE_URLYesPostgreSQL connection string (e.g., postgresql://postgres:postgres@localhost:5432/rag). Required.
CHUNK_OVERLAPNoNumber of overlapping characters between chunks (default: 200).
MCP_TRANSPORTNoTransport protocol: 'stdio' or 'http' (default: stdio).
EMBEDDINGS_MODELNoEmbedding model name (default: text-embedding-3-small).
EMBEDDINGS_API_KEYYesAPI key for the embeddings endpoint (OpenAI-compatible). Required.
EMBEDDINGS_API_BASENoBase URL for the embeddings API (default: https://api.openai.com/v1).

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
ingest_textA

Chunk, embed, and store text in a collection for later semantic search.

collection: logical namespace (e.g. a project or document set). metadata: optional JSON attached to every chunk (source, title, url, ...).

searchA

Semantic search a collection. Returns the top-k chunks with a 0-1 cosine score.

list_collectionsA

List all collections and their chunk counts.

delete_collectionA

Delete a collection and all of its chunks. Irreversible.

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/NextLevelManagementAdvisors/rag-mcp'

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