Skip to main content
Glama

Context Optimizer MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CONTEXT_OPT_EXA_KEYNoYour Exa.ai API key for research tools
CONTEXT_OPT_CLAUDE_KEYNoYour Claude (Anthropic) API key
CONTEXT_OPT_GEMINI_KEYNoYour Google Gemini API key
CONTEXT_OPT_OPENAI_KEYNoYour OpenAI API key
CONTEXT_OPT_LLM_PROVIDERNoThe LLM provider to use (e.g., 'gemini', 'claude', 'openai')
CONTEXT_OPT_ALLOWED_PATHSNoAllowed file paths for security validation

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
askAboutFile

Extract specific information from files without reading their entire contents into chat context. Works with text files, code files, images, PDFs, and more.

runAndExtract

Execute terminal commands and intelligently extract specific information from their output. Supports cross-platform command execution with security controls.

askFollowUp

Ask follow-up questions about the previous terminal command execution without re-running the command. Only available after using runAndExtract tool.

researchTopic

Conduct quick, focused web research on software development topics using Exa.ai's powerful research capabilities for current information and practical implementation guidance.

deepResearch

Conduct comprehensive, in-depth research using Exa.ai's exhaustive analysis capabilities for critical decision-making and complex architectural planning.

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/malaksedarous/context-optimizer-mcp-server'

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