Skip to main content
Glama

set-api-key

Configure the Climatiq API key to enable authenticated requests for carbon emissions calculations and climate impact insights via the Climatiq MCP Server.

Instructions

Set the Climatiq API key for authentication. This allows the server to make authorized requests to the Climatiq API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyYesYour Climatiq API key obtained from app.climatiq.io

Implementation Reference

  • Dispatches calls to the 'set-api-key' tool by invoking the set_api_key_tool function with config, arguments, server, and climatiq_request function.
    if name == "set-api-key": result_text = await set_api_key_tool(config, arguments, server, climatiq_request)
  • Registers the 'set-api-key' tool (among others) by returning tool definitions via get_tool_definitions() in the list_tools handler.
    @server.list_tools() async def handle_list_tools() -> list[types.Tool]: """ List available tools for interacting with the Climatiq API. """ return get_tool_definitions()
  • Checks for API key presence and directs users to use the set-api-key tool if missing.
    if not config["api_key"]: raise ValueError("Climatiq API key not set. Please configure it using the set-api-key tool.")

Other Tools

Related Tools

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/jagan-shanmugam/climatiq-mcp-server'

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