I’m trying to run an MCP server alongside an API on a single Render service. The MCP requires access to a specific directory relative to the app’s root, and I’d like the API to be able to interact with files in that same directory.
What I’m trying to do:
- Host an API to handle file upload and management.
- Run the MCP server in the same environment, so it can work with those files.
- Ensure both the API and the MCP process can run simultaneously and share access to the same local directory.
My Questions:
- What’s the best way to run both the API and the MCP server on a single Render service? (e.g., subprocess, threading, etc.)
- Is there anything I should be careful about when working with local directories on Render?