# How can I connect LOCAL WP to CURSOR AI for AI encoding?

**URL:** <https://community.localwp.com/t/how-can-i-connect-local-wp-to-cursor-ai-for-ai-encoding/50749>\
**Category:** WordPress Questions\
**Created:** [July 3, 2025, 12:41pm UTC](https://community.localwp.com/t/how-can-i-connect-local-wp-to-cursor-ai-for-ai-encoding/50749 "2025-07-03T12:41:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rl026](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@rl026](https://community.localwp.com/u/rl026)\
**Post date:** [July 3, 2025, 12:41pm UTC](https://community.localwp.com/t/how-can-i-connect-local-wp-to-cursor-ai-for-ai-encoding/50749/1 "2025-07-03T12:41:34Z")

</div>

I installed LOCAL WP and it runs perfectly locally. I’m ready to develop a custom wordpress plugin. The problem I’m encountering now is that I can add WORDPRESS folders to Cursor, but I don’t know how to connect the MYSQL database to Cursor AI.

May I ask how to connect a Cursor to a MYSQL database?

And do you have any plans to develop a VSCODE PLUGIN to facilitate the addition of WORDPRESS and MYSQL to the CURSOR?

Thank you very much.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [July 3, 2025, 1:54pm UTC](https://community.localwp.com/t/how-can-i-connect-local-wp-to-cursor-ai-for-ai-encoding/50749/2 "2025-07-03T13:54:24Z")

</div>

Hi @rl026

No plans for something like this at the moment but we do have a feature request here if you want to vote, comment and share:

> [@Button to open site in Cursor](https://community.localwp.com/t/button-to-open-site-in-cursor/47010):
>
> I really appreciate the button feature that opens a site in VS code. But I have a question is there a way that I can open a site in Cursor using the same way or may be some setting is available so I can select on which app I want to open a site?
