Skip to main content
Glama
saurabhherwadkar

MCP Python Server & Client

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_SERVER_PORTNoOverride server port (default: from settings.yaml)
MCP_LOGGING_LEVELNoOverride log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
MCP_TOOLS_WEATHER_API_KEYNoOverride weather API key (secrets should use env vars)
MCP_SECURITY_RATE_LIMIT_PER_MINUTENoOverride rate limit per minute

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
calculateA

Perform a mathematical calculation.

Args: operation: The math operation (add, subtract, multiply, divide, power, sqrt, modulo) a: The first number b: The second number (not used for sqrt)

Returns: The calculation result as a string

string_operationA

Perform a string manipulation operation.

Args: operation: The string operation (reverse, count_words, uppercase, lowercase, title_case, count_chars, replace, truncate) text: The input text to operate on extra: Extra parameter (replacement text for 'replace', or max length for 'truncate')

Returns: The operation result as a string

get_weatherA

Get current weather or forecast for a city.

Args: city: The city name to get weather for forecast_days: Number of days for forecast (0 for current weather only, max 7)

Returns: Weather information as a formatted string

Prompts

Interactive templates invoked by user choice

NameDescription
code_reviewGenerate a code review prompt for AI-assisted review. Args: code: The source code to review language: Programming language (python, javascript, typescript, java, go, rust, etc.) focus_areas: Comma-separated focus areas (security, performance, readability, etc.) Returns: Structured prompt messages for code review
summarize_textGenerate a text summarization prompt. Args: text: The text content to summarize max_length: Maximum number of words in the summary (default 200) style: Summarization style (concise, detailed, executive, technical, casual) Returns: Structured prompt messages for summarization

Resources

Contextual data attached and managed by the client

NameDescription
list_filesList all available files that can be read. Returns: JSON array of available file paths
system_infoGet comprehensive system information. Returns: JSON object containing platform, Python, memory, disk, and CPU info
platform_infoGet platform and OS information only. Returns: JSON object containing platform details

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/saurabhherwadkar/ai-genai-mcp'

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