Skip to main content
Glama
mongodb-developer

MongoDB Atlas MCP Server

Official

list_atlas_projects

Retrieve all MongoDB Atlas projects accessible to your API key for project management and oversight.

Instructions

Lists all Atlas projects that the API key has access to.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that fetches and returns the list of Atlas projects from the MongoDB Atlas API endpoint '/groups'.
    private async listAtlasProjects() { try { const url = 'https://cloud.mongodb.com/api/atlas/v1.0/groups'; const result = await this.makeAtlasRequest(url, 'GET'); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error: any) { return { content: [{ type: 'text', text: error.message }], isError: true }; }
  • src/index.ts:478-485 (registration)
    Tool registration in the ListTools response, including name, description, and empty input schema (no parameters required).
    { name: 'list_atlas_projects', description: 'Lists all Atlas projects that the API key has access to.', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema definition: empty object since the tool takes no parameters.
    inputSchema: { type: 'object', properties: {}, },
  • Dispatch case in the central CallToolRequest handler that invokes the listAtlasProjects method.
    case 'list_atlas_projects': result = await this.listAtlasProjects(); break;

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/mongodb-developer/mcp-mongodb-atlas'

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