Assern
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Valksor Assern
A Go-based MCP (Model Context Protocol) aggregator with project-level configuration support. Assern combines multiple MCP servers into a unified interface while allowing different configurations per project.
Why Assern?
Assern solves the problem of managing multiple MCP servers across different projects and contexts.
Key benefits:
Unified Interface – Single MCP client connection to all your servers
Full MCP Protocol – Aggregates tools, resources, and prompts from all backends
Tool Prefixing – All tools are namespaced by server name (
github_search,jira_get_ticket) preventing conflictsResource Prefixing – Resources use custom URI scheme (
assern://server/original-uri)Prompt Prefixing – Prompts are namespaced like tools (
assistant_code_review)Project Contexts – Different configurations per project (tokens, env vars, enabled servers)
TOON Format – Token-optimized output format for LLM consumption (40-60% token reduction)
Directory Matching - Auto-detect projects based on directory patterns
Environment Merging - Configurable overlay or replace modes for env variables
Tool Filtering – Expose only allowed tools per server for security and simplicity
Instance Sharing – Prevents cascade spawning when LLMs call nested LLMs via shared Unix socket
Related MCP server: MetaMCP
Client Compatibility
Assern speaks standard stdio MCP protocol, so it works with any MCP-compatible client:
Client | Status |
Claude Code | ✅ Primary target |
Claude Desktop | ✅ Supported |
Cursor | ✅ Compatible |
Windsurf | ✅ Compatible |
Cline | ✅ Compatible |
Continue.dev | ✅ Compatible |
GitHub Copilot | ✅ Compatible |
Roo Code | ✅ Compatible |
Mintlify | ✅ Compatible |
Note: If your client speaks stdio MCP, it works with Assern – no special integration needed.
How It Works
┌─────────────────────────────────────────────────────────────┐
│ │
│ MCP Client (Claude, etc.) │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────┐ │
│ │ Assern Aggregator │ │
│ │ • Tool/Resource/Prompt prefixing │ │
│ │ • Project detection │ │
│ │ • Config merging │ │
│ └─────────────────────────────────────────┘ │
│ │ │
│ ├─────────────────┬─────────────┬───────────────┐ │
│ ▼ ▼ ▼ ▼ │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ GitHub │ │ Jira │ │ Slack │ │ ... │ │
│ │ Server │ │ Server │ │ Server │ │ Server │ │
│ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘Configure – Define MCP servers and projects in
~/.valksor/assern/config.yamlDetect – Assern auto-detects your project from the current directory
Aggregate – All enabled servers are spawned; tools, resources, and prompts are prefixed
Route – Requests are routed to the appropriate backend server
Requirements
Go 1.25+ (only if building from source – not needed for pre-built binaries)
Note: Individual MCP servers have their own requirements (npx/Node.js, API tokens, etc.). These are your responsibility to configure – Assern simply spawns the commands you define.
Features
MCP Aggregation: Combine multiple MCP servers into one unified interface
Full MCP Protocol: Aggregates tools, resources, and prompts from backend servers
Multi-Transport: Support for stdio (local), HTTP, SSE, and OAuth-authenticated (remote) MCP servers
Authentication: HTTP headers (API keys, Bearer tokens) and OAuth 2.0 with PKCE support
Tool Prefixing: All tools are prefixed with server name (
github_search,jira_get_ticket)Resource Prefixing: Resources use custom URI scheme (
assern://github/file:///repo/README.md)Prompt Prefixing: Prompts are prefixed like tools (
assistant_code_review)Project Contexts: Different configurations per project (tokens, env vars, servers)
Directory Matching: Auto-detect projects based on directory patterns
Environment Merging: Configurable overlay or replace modes for env variables
Tool Filtering: Expose only allowed tools per server
Tool Discovery: Opt-in progressive disclosure — expose a small
assern_search/assern_loadsurface and load tools on demand per session to cut context (docs)Code Mode: Opt-in
assern_executeruns a sandboxed Starlark script that orchestrates multiple tools in one call (docs)Token Reporting:
assern listshows the estimated token cost of exposed tool definitions, per server and totalShared OAuth Profiles: Define OAuth once under
auth:and reference it from multiple servers (oauthRefin mcp.json,oauth_refin config.yaml); tokens are cached across runsInstance Sharing: Prevents cascade spawning when nested LLMs launch assern
Hot-Reload: Update configuration without restarting (
assern reloador SIGHUP). Note: Connected clients (e.g., Claude Code) need to reconnect to see updated tools.
Instance Sharing
When LLMs use MCP servers that themselves call LLMs (creating nested chains), each nested invocation would normally spawn a new assern instance with all its MCP servers. This creates a cascade of redundant instances.
Assern solves this with instance sharing:
Primary Instance (first invocation):
┌─────────────┐
│ LLM (Claude)│
└──────┬──────┘
│ stdio
┌──────▼──────┐
│assern │
│ - ServeStdio│
│ - SocketSrv │◄───┐
└──────┬──────┘ │
│ │ Unix Socket
┌──────▼──────┐ │
│ Aggregator │ │
│ (MCP Servers) │
└─────────────┘ │
│
Secondary Instance:│
┌─────────────┐ │
│ Nested LLM │ │
└──────┬──────┘ │
│ stdio │
┌──────▼──────┐ │
│assern │────┘
│ (proxy mode)│
└─────────────┘First invocation → becomes primary instance (starts aggregator + socket server)
Subsequent invocations → detect socket, run as proxy to primary instance
Socket location:
~/.valksor/assern/assern.sockDisable: Set
ASSERN_NO_INSTANCE_SHARING=1environment variable
Installation
Quick Install
curl -fsSL https://raw.githubusercontent.com/valksor/go-assern/master/install.sh | bashThe install script automatically:
Detects your OS and architecture (Linux/macOS, AMD64/ARM64)
Finds the best install location (
~/.local/bin,~/bin, or/usr/local/bin)Verifies checksums (and Minisign signatures if available)
Provides shell-specific PATH instructions
Install options:
# Install specific version
curl -fsSL ... | bash -s -- -v v1.0.0
# Install nightly build
curl -fsSL ... | bash -s -- --nightly
# Show help
bash install.sh --helpGo Install
go install github.com/valksor/go-assern/cmd/assern@latestDocker
Build and run with Docker Compose:
# Create config directory
mkdir -p ~/.valksor/assern
# Add your mcp.json configuration
cat > ~/.valksor/assern/mcp.json << 'EOF'
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}
EOF
# Start with docker-compose
docker-compose up -dOr build and run manually:
docker build -t assern .
docker run -d --name assern-mcp \
-v ~/.valksor/assern:/home/assern/.valksor/assern:ro \
assernSee docs/docker.md for complete Docker documentation.
Manual Download
Download the latest release for your platform:
Platform | Architecture | Binary Name |
Linux | AMD64 |
|
Linux | ARM64 |
|
macOS | AMD64 (Intel) |
|
macOS | ARM64 (Apple Silicon) |
|
Download from GitHub Releases:
# Download and install (example for macOS ARM64)
curl -L https://github.com/valksor/go-assern/releases/latest/download/assern-darwin-arm64 -o assern
chmod +x assern
sudo mv assern /usr/local/bin/
# Verify
assern versionQuick Start
Initialize configuration:
assern config initAdd MCP servers interactively OR edit config files manually:
Option A: Interactive CLI (Recommended)
# Add a server with guided prompts
assern mcp add
# List all configured servers
assern mcp list
# Edit an existing server
assern mcp edit github
# Delete servers
assern mcp deleteOption B: Manual Configuration
Add servers to ~/.valksor/assern/mcp.json (local or remote):
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem"]
},
"context7": {
"url": "https://mcp.context7.com/mcp"
},
"api-with-key": {
"url": "https://api.example.com/mcp",
"headers": {
"Authorization": "Bearer ${API_TOKEN}"
}
}
}
}Configure projects in
~/.valksor/assern/config.yaml:
projects:
work:
directories:
- ~/work/*
env:
GITHUB_TOKEN: "${WORK_GITHUB_TOKEN}"
servers:
filesystem:
allowed:
- read_file
- list_directory
settings:
log_level: info
timeout: 60sStart the aggregator:
cd ~/work/myproject
assern serveDocumentation
Full documentation available at valksor.com/docs/assern
Docker Setup - Run Assern in containers
Integration - Claude Desktop, Claude Code, IDEs
CLI Commands
Command | Description |
| Start MCP aggregator on stdio (default command) |
| List available servers and tools (uses running instance if available) |
| List tools with fresh discovery (ignores running instance) |
| Hot-reload configuration on running instance |
| Interactively add a new MCP server configuration |
| Interactively edit an existing MCP server |
| Interactively delete MCP server(s) |
| List all configured MCP servers |
| Create ~/.valksor/assern/ with mcp.json and config.yaml |
| Reinitialize configuration (overwrites existing files) |
| Validate configuration syntax |
| Show version information |
Note: All commands support colon notation for faster typing (e.g.,
mcp:add,config:init,list:servers).
Global Flags
Flag | Description |
| Output format for tool results: |
| Explicit project name (overrides auto-detection) |
| Path to config.yaml (default: ~/.valksor/assern/config.yaml) |
| Enable debug logging |
| Suppress progress and info messages |
Configuration
Global MCP Servers (~/.valksor/assern/mcp.json)
Standard MCP format - copy-paste from Claude Desktop or any MCP example.
Global Config (~/.valksor/assern/config.yaml)
Defines project registry with directory patterns, settings, and server overrides.
Local MCP Servers (.assern/mcp.json)
Optional project-specific MCP servers.
Local Config (.assern/config.yaml)
Optional project-level overrides in any directory.
Environment Variables
Global:
~/.valksor/assern/.envProject:
.assern/.env
Variables can use ${VAR} syntax for expansion.
Project Detection
Check for
.assern/config.yamlin current or parent directoriesMatch against
projects[*].directoriespatterns in global configAuto-detect from directory name (e.g.,
my-repofrom/path/to/my-repo)Use explicit
--projectflag to override
Works in any directory without configuration - the directory name becomes the project name.
Development
make build # Build binary to ./build/assern
make install # Install to $GOPATH/bin
make test # Run tests with coverage
make coverage # Generate coverage report
make quality # Run golangci-lint + govulncheck
make fmt # Format code (gofmt, goimports, gofumpt)
make tidy # Tidy dependencies
make hooks # Enable versioned git hooks
make lefthook # Install pre-commit hooks (auto-format + lint)CI/CD: PRs trigger lint/test/build via GitHub Actions. Releases use GoReleaser.
See CONTRIBUTING.md for development guidelines.
License
BSD 3-Clause License – see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The MCP server that finds MCP servers. Aggregates Official Registry, Glama, and Smithery.
MCP federation gateway: route, govern and observe agent tools across clouds and MCP servers.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAggregates multiple MCP servers into a single endpoint, enabling LLM clients to access tools, resources, and prompts from various backends through one connection.MIT

MetaMCPofficial
AlicenseAqualityBmaintenanceAggregates multiple MCP servers into a single interface, reducing token overhead and simplifying tool management for LLMs.619Apache 2.0- AlicenseNot gradedqualityBmaintenanceAggregates multiple MCP servers behind a single endpoint, letting MCP clients access all their tools through one URL and token while namespacing tools to avoid collisions.MIT
- AlicenseNot gradedqualityBmaintenanceAggregates multiple MCP servers behind a single endpoint so that clients can reach every one of their tools through one connection instead of configuring each server separately. It simplifies setup and keeps tool access in one place when many servers are in play.2MIT