{
"mcpServers": {
"mcp-server-base-lib": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 313 days ago.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Base Lib and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Go library for implementing Machine Control Protocol (MCP) servers. This is a pure library package that can be imported into your Go applications to add MCP server capabilities.
go get github.com/serubanpetershan/mcp-server-base-library
package main
import (
"log"
"github.com/serubanpetershan/mcp-server/mcp"
"github.com/sirupsen/logrus"
"github.com/gorilla/websocket"
)
func main() {
// Create server configuration
config := &mcp.Config{
Port: "8080",
Logger: logrus.New(),
Handlers: map[string]mcp.MessageHandler{
"echo": func(s *mcp.Server, conn *websocket.Conn, msg mcp.Message) error {
return s.Send(conn, msg)
},
},
}
// Create and start the server
server := mcp.NewServer(config)
if err := server.Start(config.Port); err != nil {
log.Fatal(err)
}
}
{
"type": "message_type",
"payload": {}
}
// Create a new server
server := mcp.NewServer(config)
// Start the server
server.Start(port string) error
// Register a message handler
server.RegisterHandler(messageType string, handler MessageHandler)
// Broadcast a message to all clients
server.Broadcast(msg Message)
// Send a message to a specific client
server.Send(client *websocket.Conn, msg Message) error
// Get all connected clients
server.GetClients() []*websocket.Conn
type Config struct {
Port string
Logger *logrus.Logger
Handlers map[string]MessageHandler
}
type MessageHandler func(*Server, *websocket.Conn, Message) error
See the examples directory for complete examples of how to use this library in your applications.
This project uses automated security scanning:
This project follows Semantic Versioning. For the versions available, see the tags on this repository.
To create a new release:
git tag -a v1.0.0 -m "Release v1.0.0"git push origin v1.0.0The release workflow will automatically:
Copyright (c) 2024 Seruban Peter Shan. All rights reserved.
This project is licensed under the MIT License - see the LICENSE file for details.
The software is protected by copyright law and international treaties. Unauthorized reproduction or distribution of this software, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under law.