Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
errors.ts600 B
export enum ErrorCodes { NotConnectedToMongoDB = 1_000_000, MisconfiguredConnectionString = 1_000_001, ForbiddenCollscan = 1_000_002, ForbiddenWriteOperation = 1_000_003, AtlasSearchNotSupported = 1_000_004, NoEmbeddingsProviderConfigured = 1_000_005, AtlasVectorSearchIndexNotFound = 1_000_006, AtlasVectorSearchInvalidQuery = 1_000_007, Unexpected = 1_000_008, } export class MongoDBError<ErrorCode extends ErrorCodes = ErrorCodes> extends Error { constructor( public code: ErrorCode, message: string ) { super(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/mongodb-js/mongodb-mcp-server'

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