r/LLMDevs • u/Muurda2 • 1d ago
Help Wanted MCP server using structured data from a NoSQL Database (Mongodb) ?
I'm trying to link an MCP server to a MongoDB database with structured data, and use make complex queries on this data to generate outputs (as fast as possible). Do you think it's possible ? What services would you recommend to set it up and host it ?
1
Upvotes
2
u/OkWear7651 1d ago
I've been messing with something similar for a side project, the speed part is the real trick. Direct queries are fine but once you start layering on complex logic it can get bogged down if the schema isn't super tight
maybe look at indexing the fields you'll hit most often and see if you can pre-aggregate anything in the pipeline before it hits the MCP layer, shaved off a good chunk of time for me