Cursor + MCP's | Docker | Strapi v5 | Next JS | Render
Source: Dev.to
Overview
š Today my mission was to deploy a Strapi CMS that would power the content for my portfolio website. I wanted to create the fastest and most efficient development workflow possible, so I looked for a cloud solution that could load and deploy Docker images straight out of the box.
Using Render
āļø I discovered Render, a cloud platform that builds Docker images directly from a GitHub repository. This allows you to run the exact same versions locally and in productionāin my case StrapiāÆv5 and PostgreSQLāÆ16.
š¬ After some backāandāforth with Grok from xAi (while sitting on the toilet), I figured out how to use Render with a Render configuration file. This file defines your server structure in a clean and organised way. It is similar to a Dockerfile but created specifically for Render, enabling reusable blueprints directly from GitHub.
Generating the Strapi Project with Cursor
āļø Once I understood the workflow, I created a new project and asked my good friend Cursor to generate a full StrapiāÆv5 project with a Docker image. With OpusāÆ4.5, Cursor created the entire scaffold in secondsāno manual searching required. I loaded the files and didnāt touch Google once.
Debugging and Deployment
š³ After Cursor generated the project, I started debugging. I checked the logs and verified that the Docker container was running properly. With a bit of prompting and tweaking, I had a fully working StrapiāÆv5 setup with a Dockerfile and a Render configuration file in under ten minutes.
š Pro tip: Import the documentation of your tech stack into Cursor to give it more context (Render docs, StrapiāÆv5 docs, etc.). Feed everything in.
š¦ After testing everything locally, I uploaded the blueprint to Render. When the deployment began, a few errors popped up. Normally you could copy the logs manually into Cursor, but Render provides an MCP server that you can connect directly to Cursor. Cursor fetched deployment logs automatically and identified the issues.
𤯠It worked beautifully, and with only a few prompts my production Dockerfile was fixed. MCP servers are absolutely brilliant. Yes, there are some risks, but Iām not working with sensitive data right now, so itās acceptable.
Integrating with Next.js
š§± With Render running my StrapiāÆv5 CMS, the real work began. I created entries and linked them to my existing NextāÆJS portfolio. I structured everything based on my current site: projects, jobs, tech stacks, plus single pages like About and Home.
š Then came a new challenge: building an API integration for my portfolio. Manually inspecting all endpoints was not an option. I discovered a StrapiāÆv5 MCP server that can be installed on a local Strapi instance and exposed to other projects. It works on localhost and gave Cursor full context for building the API integration.
š§ This allowed my portfolio to retrieve all data automatically. The MCP server knew all my entries and pages, enabling seamless data fetching.
Conclusion
š If you want to move fast today, use Cursor with MCP servers and choose a cloud platform that integrates with your development environment. You stay in full control as a developer while leveraging modern tools to reach your goals as quickly as possible.
This is my first post, but I will definitely write more in the coming months about this learning journey!