Skip to main content
Glama

Example MCP Server

by nykznykz

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging levelINFO
PYTHONPATHNoPython path for module resolution

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
helpProvide help information about available tools and resources. Returns: Help text describing the server's capabilities

Resources

Contextual data attached and managed by the client

NameDescription
get_settingsGet server configuration settings. Returns: A dictionary containing server settings
get_server_infoGet general server information. Returns: A dictionary containing server information

Tools

Functions exposed to the LLM to take actions

NameDescription
calculate

Evaluate a mathematical expression safely.

Args: expression: A mathematical expression to evaluate (e.g., "2 + 2", "10 * 5")

Returns: The result of the calculation as a string

greet

Generate a friendly greeting message.

Args: name: The name of the person to greet

Returns: A personalized greeting message

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/nykznykz/mcp_example'

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