Abhayprince/TalkToDb
If you are the rightful owner of TalkToDb and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project demonstrates how to create an MCP Server and consume it using an MCP Client, both built entirely in .NET 9.
Talk to DB - MCP Server and Client in .NET 9
This project demonstrates how to create an MCP Server and consume it using an MCP Client - both built entirely in .NET 9.
It also includes a small UI frontend layer built with .NET MAUI Blazor Hybrid, allowing you to chat with your database in natural language.
Live Coding Video
Watch me building this complete project on YouTube:
https://youtu.be/8z7tA6LpwQE
Local Development
- Add your OpenAI API key in appsettings.json (or User Secrets / Environment Variables) in the TalkToDb.Api project.
- Add your database connection string in appsettings.json in the TalkToDb.MCPServer project.
- Build the solution.
- Set the API and UI projects as startup projects and run the solution.
Support
If you find this project useful, please star this repository on GitHub to show your support.
You can also buy me a coffee if you'd like to support my work:
https://buymeacoffee.com/abhayprince