go-mcp-demo

Patrick7241/go-mcp-demo

3.3

If you are the rightful owner of go-mcp-demo 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 communication between an MCP Server and MCP Client using a local large language model with natural language tool invocation capabilities.

The go-mcp-demo project is a practical implementation of a Model Context Protocol (MCP) Server and Client communication framework. It leverages the capabilities of a local large language model, specifically using the Ollama platform, to enable natural language processing and tool invocation. The project is designed to facilitate the execution of tasks such as reading local SQL files and performing MySQL queries through natural language commands. By integrating the MCP Server and Client, the project showcases how advanced language models can be utilized to interact with databases and file systems in a seamless and intuitive manner. The use of Ollama's local model ensures that the processing is done efficiently and securely on the user's machine, providing a robust solution for developers looking to integrate natural language capabilities into their applications.

Features

  • Integration of MCP Server and Client communication framework.
  • Support for natural language execution of tasks.
  • Capability to read local .sql files and execute MySQL queries.
  • Utilization of Ollama's local large language model for inference.
  • Configurable settings for model and database connections.
0

Tools

  1. read_file

    Reads the content of a specified .sql file.

  2. query_db

    Executes any SQL query and returns the result.