PfMartin/golang-mcp-server
3.2
If you are the rightful owner of golang-mcp-server 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.
MCP Server for testing the MCP Protocol in Golang.
golang-mcp-server
MCP Server for testing the MCP Protocol in Golang
Setup MCP Server Host
Ollama
- Download Ollama - ollama.com/download
- Pull desired model and start ollama
ollama pull mistral
ollama serve
Download and install MCP Host Tool
go install github.com/mark3labs/mcphost@latest
Setup path to your mcp server executable
- Build binary
go build
- Create
.mcphost.json
in home folder
touch ~/.mcphost.json
{
"mcpServers": {
"python-repl": {
"command": "/home/martin/Projects/golang-mcp-server/golang-mcp-server"
}
}
}
Run server and MCP host
mcphost -m ollama:mistral # or any other model (provider:model) e.g. ollama:llama3.2
More info
- Video about MCP Servers in Golang triggering a Python execution environment Write MCP Servers in Golang. Python execution environment example
- More information about the used SDK github.com/mark3labs/mcp-go