This package provides mcp-servers by a simple mcp.json to the langchain-go ecosystem
{
"mcpServers": {
"mcp-server-adapter": {
"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.
This package provides mcp-servers by a simple mcp.json to the langchain-go ecosystem
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 51 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.
Dynamic problem-solving through sequential thought chains
A Model Context Protocol server for searching and analyzing arXiv papers
An open-source AI agent that brings the power of Gemini directly into your terminal.
The official Python SDK for Model Context Protocol servers and clients
MCP Security Weekly
Get CVE alerts and security updates for Mcp Server Adapter and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The mcp-server-adapter is a Go package designed to simplify the integration of Model Context Protocol (MCP) servers with LangChain Go applications. It acts as an intermediary, allowing LangChain agents to seamlessly discover, use, and manage tools exposed by various MCP servers. This adapter handles server lifecycle management, configuration watching, and the conversion of MCP tools into a format consumable by LangChain.
Note: This project is currently a work in progress. While functional, it may undergo significant changes, including breaking API changes, as it evolves.
tools.Tool objects.This project requires Go 1.21 or higher.
git clone https://github.com/denkhaus/mcp-server-adapter.git
cd mcp-server-adapter
go mod tidy
go build ./...
The examples can be built and run using the provided Makefile. Navigate to the project root and use make commands.
For instance, to build all examples:
make build-examples
To run a specific example, like the demo:
make run-demo
The mcp-server-adapter is typically used within a Go application to manage connections to MCP servers and integrate their tools into an LLM agent.
Define your MCP server configuration: Create a JSON file (e.g., config.json) specifying the MCP servers your application needs to connect to. See examples/mcp-spec-config.json for a practical example.
{
"mcpServers": {
"fetcher": {
"command": "npx",
"args": ["-y", "fetcher-mcp"],
"transport": "stdio"
},
"tavily-mcp": {
"command": "npx",
"args": ["-y", "tavily-mcp@0.1.3"],
"transport": "stdio"
}
}
}
Initialize the adapter:
package main
import (
"context"
"log"
"time"
"github.com/denkhaus/mcp-server-adapter"
)
func main() {
adapter, err := mcpadapter.New(
mcpadapter.WithConfigPath("./config.json"),
mcpadapter.WithLogLevel("info"),
mcpadapter.WithFileWatcher(true), // Enable hot-reloading of config
)
if err != nil {
log.Fatalf("Failed to create MCP adapter: %v", err)
}
defer adapter.Close()
ctx := context.Background()
// Start all configured MCP servers
if err := adapter.StartAllServers(ctx); err != nil {
log.Fatalf("Failed to start all MCP servers: %v", err)
}
// Wait for servers to be ready
if err := adapter.WaitForServersReady(ctx, 30*time.Second); err !=