mcp-mongodb
A Model Context Protocol server that provides read access to MongoDB databases. This server enables LLMs to interact with MongoDB collections and execute reqd queries.
GitHubスター
0
ユーザー評価
未評価
お気に入り
0
閲覧数
20
フォーク
0
イシュー
0
README
MongoDB
A Model Context Protocol server that provides read access to MongoDB databases. This server enables LLMs to interact with MongoDB collections and execute read queries.
Components
Tools
find
- Query documents in a MongoDB collection
- Input:
collection(string): The collection namequery(object): MongoDB query objectoptions(object, optional): Query options like limit, sort, projection
findOne
- Find a single document in a collection
- Input:
collection(string): The collection namequery(object): MongoDB query objectoptions(object, optional): Query options
aggregate
- Execute an aggregation pipeline
- Input:
collection(string): The collection namepipeline(array): Array of aggregation stages
listCollections
- List all collections in the database
- Input: None
getCollectionInfo
- Get information about a specific collection
- Input:
collection(string): The collection name
Usage with custom client
I have added a custom client. I'll add claud desktop integration example later.
pnpm install
pnpm run build
pnpm run dev
Replace mydb with your database name.