Skip to main content
Glama
MikelA92

Metabase MCP Server

by MikelA92

get_current_user

Retrieve details about the currently authenticated Metabase user, including identity and permissions, for secure access control and personalized data interaction.

Instructions

👤 [SAFE] Get information about the currently authenticated user (you). Risk: None - read-only operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that executes the get_current_user tool logic by fetching the current user from Metabase API and formatting the response.
      async getCurrentUser() {
        this.logger.debug('Getting current user');
        const user = await this.apiClient.makeRequest('/api/user/current');
        
        return {
          content: [
            {
              type: 'text',
              text: `Current User:
    ID: ${user.id}
    Name: ${user.common_name}
    Email: ${user.email}
    Is Admin: ${user.is_superuser}`,
            },
          ],
        };
      }
  • The tool schema definition specifying the name, description, and empty input schema (no parameters required). Used for tool listing and validation.
      name: 'get_current_user',
      description: '👤 [SAFE] Get information about the currently authenticated user (you). Risk: None - read-only operation.',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Registration/dispatch point in the main server switch statement that routes tool calls to the userHandlers.getCurrentUser method.
    case 'get_current_user':
      return await this.userHandlers.getCurrentUser();

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/MikelA92/metabase-mcp-mab'

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