Model or dataset
tbxark/mcp-proxy avatar
tbxark/mcp-proxy

mcp-proxy's build target pushes an image called map-proxy

An MCP proxy server that aggregates and serves multiple MCP resource servers through a single HTTP server.

747 stars119 forksGoMIT

At a glance

What is it?
A Go MCP proxy that aggregates tools, prompts and resources behind one HTTP entrypoint, with OAuth tokens held and refreshed on the proxy's behalf. The build recipe and the three documentation links disagree with the image name and with each other.
Who is it for?
This is a sensible tool for the case where several MCP servers have to look like one to a client, and the OAuth behaviour is the reason to look twice. Because the proxy holds and refreshes one token per downstream server, every caller shares that identity, so decide before deploying whether a shared Notion token is acceptable for your setup and where the token store lives.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 2 days ago.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • tbxark/mcp-proxy747 ★ · +28
Star history
Repository2026-09-122026-11-22
tbxark/mcp-proxy719747

28 Stars in the last 71 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

make buildImage pushes ghcr.io/tbxark/map-proxy

The Makefile has four phony targets, and one of them names a different image than the project does:

make
.PHONY: buildImage
buildImage:
	docker buildx build --platform=linux/amd64,linux/arm64 -t ghcr.io/tbxark/map-proxy:latest . --push --provenance=false

The tag reads map-proxy where the module, the repository and the run command all read mcp-proxy. Anyone who runs this target and trusts the output has pushed an image under a name nobody documents, and anyone who trusts the published tag has to take it on faith that it came from somewhere else.

Two other details in that line matter for a gateway. The build covers linux/amd64 and linux/arm64 only, so the binary inside the image is one architecture even though the target builds two. And --provenance=false is passed explicitly, which turns off the build attestation that would otherwise record where the image came from.

The plain build target writes to ./build with CGO disabled, and the version string is injected at link time as a short commit hash followed by a unix timestamp.

Three doc links are labelled lower case and point at upper case

The documentation block points at three files, and the link text does not match the path in any of them:

text
Configuration: [docs/configuration.md](docs/CONFIGURATION.md)
Usage: [docs/usage.md](docs/USAGE.md)
Deployment: [docs/deployment.md](docs/DEPLOYMENT.md)

Read that as a filesystem fact rather than a style choice. On a case-sensitive host, a repository cloned to Linux and opened as docs/configuration.md does not exist when the file on disk is docs/CONFIGURATION.md. The upper case paths do resolve, so the links work for anyone reading the page on a host that ignores case, and for anyone who corrects the address by hand.

It matters more than a cosmetic issue because of where the content lives. Command-line flags, endpoints and auth examples are not in the overview at all; they are in docs/USAGE.md. Full configuration reference and examples sit in docs/CONFIGURATION.md. Deployment options including docker-compose are in docs/DEPLOYMENT.md. So the three facts a gateway operator needs first are all in files whose names you have to get exactly right.

One OAuth token per downstream server, shared by every caller

The feature that distinguishes this proxy from a plain multiplexer is OAuth. The stated design is that you authorize once against a downstream server that requires interactive OAuth, Notion being the named example, and the proxy then holds and refreshes the token on behalf of every caller.

That is the whole point and also the whole risk. A client that would otherwise have to run an interactive browser flow gets the proxy's token instead, which is what makes headless and containerised setups work. The flip side is that the token is a shared credential: anyone who reaches the proxy reaches the downstream resource under one identity, not their own.

The source tree shows where that state lives. Alongside main.go, client.go, config.go, http.go and doctor.go sit oauth.go, oauth_store.go and their two test files, oauth_test.go and oauth_store_test.go, which means token handling has dedicated storage logic and its own coverage. The overview does not say how the store is protected at rest, whether it can be pointed at an external secret, or how tokens are separated per downstream server, so those answers live outside this file. There is also security_fixes_test.go at the root, named after fixes rather than after a subsystem.

The image carries node, uv and git so stdio servers can start

The Dockerfile explains why the image is larger than a single Go binary would suggest. It is built in three stages. A golang:1.25.5 builder copies go.mod and go.sum, downloads the modules, copies the tree, and runs make build, which is the same version line the module file declares. A node:lts-bookworm-slim stage supplies node. The final stage is built from ghcr.io/astral-sh/uv:python3.13-bookworm-slim, into which the node binary and its global modules are copied and npm and npx are symlinked into place, with git and ca-certificates installed by apt.

The payoff is the sentence in the quick start: the image includes support for launching MCP servers via npx and uvx. That is what lets a stdio child process start at all, since a config that names an npx command needs node and npm present inside the container.

The compiled binary is copied to /main, the entrypoint is that binary, and the default command is --config /config/config.json, which is the path the compose file mounts. Note what the image does not set: no default port, no environment defaults, and no configuration baked in.

The compose alternative hands the config out over plain HTTP

The compose file ships one live service and one commented alternative. The live one pulls ghcr.io/tbxark/mcp-proxy:latest with pull_policy always, mounts ./config.json to /config/config.json, publishes 9090 to 9090, and restarts always.

The alternative swaps the bind mount for a small file server. A caddy service exposes port 80, serves the same mounted directory as static files, and the app is then started with:

yaml
command: [ "--config", "http://caddy/config.json" ]

Two things follow. The config is fetched over plain HTTP rather than from a mounted file, so anything that can reach that container on port 80 can read the configuration, and the port is only exposed to the compose network rather than published. And the fetch is remote, which is the same mechanism the run command offers with a URL, so the proxy accepts a config fetched over the network at startup rather than only from disk.

The same remote path is in the run command:

bash
docker run -d -p 9090:9090 ghcr.io/tbxark/mcp-proxy:latest --config https://example.com/config.json

A doctor command exists that the overview never names

The root of the repository is a flat set of Go files, and one of them is a diagnostic command with no mention anywhere in the overview. The list runs main.go, client.go, config.go, http.go, doctor.go, oauth.go and oauth_store.go, and almost every one of them has a matching test file: client_test.go, config_test.go, http_test.go, doctor_test.go, oauth_test.go, oauth_store_test.go, plus security_fixes_test.go and testenv_test.go. Alongside them sit a test/ directory, a testdata/ directory and a committed config.json.

So the binary carries a doctor surface, and nothing in the visible documentation says what it checks, what it prints, or what a non-zero exit means. The overview sends you to docs/USAGE.md for flags and endpoints, and that file is not part of what is visible here, which makes doctor the clearest example of a feature you would only learn about by running the binary and reading the source.

The committed config.json at the repository root is the other loose end worth noting. It is not referenced by any command in the overview, and the container default points at /config/config.json rather than at anything in the repository.

Four direct dependencies, one of them written by the same author

The module is small and pinned exactly, which is pleasant to read in an age of floating ranges:

text
module github.com/tbxark/mcp-proxy

go 1.25.5

require (
	github.com/go-sphere/confstore v0.0.4
	github.com/mark3labs/mcp-go v1.1.0
	github.com/tbxark/optional-go v0.0.2
	golang.org/x/sync v0.22.0
)

The protocol implementation is mark3labs/mcp-go at v1.1.0. Configuration storage is go-sphere/confstore at v0.0.4. Concurrency helpers are golang.org/x/sync at v0.22.0. The fourth, tbxark/optional-go at v0.0.2, shares the repository owner, so a reader has to follow code into a second module to understand the option handling that the config layer rests on.

Six indirect requirements come along, three of which are schema and template machinery rather than protocol work: google/jsonschema-go, santhosh-tekuri/jsonschema/v6, and yosida95/uritemplate/v3, alongside google/uuid, spf13/cast and golang.org/x/text. With CGO disabled and four direct dependencies, the build output is a static binary, and the Makefile injects its version at link time rather than reading it from a file at runtime.

Editorial conclusion

This is a sensible tool for the case where several MCP servers have to look like one to a client, and the OAuth behaviour is the reason to look twice. Because the proxy holds and refreshes one token per downstream server, every caller shares that identity, so decide before deploying whether a shared Notion token is acceptable for your setup and where the token store lives. Two practical checks first. The image the build target pushes is named map-proxy while every other reference, including the compose file and the run command, uses mcp-proxy, so build the image yourself rather than assuming the published tag came from that target. And the three documentation links are labelled in lower case but point at upper case filenames, which will not resolve on a case-sensitive host. Flags, endpoints and auth examples are in docs/USAGE.md rather than in the overview, so read that before scripting anything.

Frequently asked questions

What does tbxark mcp-proxy actually do?

It aggregates multiple MCP servers behind a single HTTP entrypoint. Tools, prompts and resources are collected from many servers, and the proxy can serve them over Server-Sent Events or over streamable HTTP. Its config accepts stdio, sse and streamable-http client types.

Does mcp-proxy handle MCP servers that require OAuth?

Yes. The stated design is to authorize once against a downstream server requiring interactive OAuth, Notion being the example given, and then have the proxy hold and refresh the token for every caller. The token and its storage are handled in oauth.go and oauth_store.go with their own tests.

How do I install and run mcp-proxy?

Three routes are given. Build from source with git clone, make build, then run ./build/mcp-proxy --config path/to/config.json. Or install the binary with go install github.com/tbxark/mcp-proxy@latest. Or run the published image with docker run, mounting a config file or passing a remote config URL with the --config flag.

What is inside the mcp-proxy container image?

The image supports launching MCP servers through npx and uvx. It is assembled from a golang builder, a node stage for the node binary and its global modules with npm and npx symlinked in, and a uv base image, with git and ca-certificates installed. The default command is --config /config/config.json.

Which image tag does the mcp-proxy build push?

The Makefile target buildImage tags its output ghcr.io/tbxark/map-proxy:latest, spelled map rather than mcp, and pushes it for linux/amd64 and linux/arm64 with provenance disabled. The compose file and the documented run command both refer to ghcr.io/tbxark/mcp-proxy:latest instead.

Official sources

  1. License: MIT
  2. Project website
  3. README
  4. Releases
  5. tbxark/mcp-proxy on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/tbxark-mcp-proxy.svg)](https://hysenlabs.com/projects/tbxark-mcp-proxy)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/tbxark-mcp-proxy.svg)](https://hysenlabs.com/projects/tbxark-mcp-proxy)

Was this useful?