ybrain
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ybrainwho owns the billing system?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ybrain
Company knowledge MCP server. One HTTP endpoint an ordinary user adds to their MCP client to ask "what prompts do we have?", "who owns billing?", "where are the Grafana docs?", and "what skills exist and how do I install them?". Anyone can also suggest a new prompt/owner/doc/skill — it's saved as a draft that a supervisor reviews and publishes. Every change is a real Git commit in a single data repo.
MCP client ──HTTP──▶ ybrain (this server) ──git clone/pull/push──▶ github.com/<acct>/ybrain-data
read + suggest = open (drafts/ → supervisor publishes → live)What it does
Ask (open, no token) | Read tools |
List / detail company prompts |
|
Who owns what |
|
Docs / links to systems |
|
Skills — internal + external, with install commands |
|
See pending suggestions |
|
Contribute (open, → drafts/) | Suggest tools |
Propose a prompt / owner / doc / skill |
|
Supervisor (named token) | Privileged tools |
Promote / discard a draft |
|
Register an external skill source |
|
Related MCP server: mulchd
Access model: read-only + suggest → draft → supervisor merges
Reads and
suggest_*are open — no token. A suggestion never goes live; it's committed underdrafts/for review.The real access control is Git itself. A supervisor promotes a draft with
publish_draft(agit mvfromdrafts/xto live), rejects it, or just merges/edits it directly in GitHub. "Write rights only for some" = whoever can merge/publish — ybrain implements no roles of its own.Supervisor tokens are named (
YBRAIN_SUPERVISOR_TOKENS=alice=…,bob=…): the name authors published commits, and one token can be revoked without rotating the rest. Suggestion commits use a fixedsuggestionauthor (thesuggested_byfield is client-supplied and unverified — metadata only).Because suggestions are open, the server caps request body size and rate-limits per IP.
This dissolves the shared-write-token blast radius: a leaked credential (or an anonymous caller) can only propose a draft — never overwrite live content or forge merged history.
Data repo layout
ybrain reads and writes one Git repo (YBRAIN_DATA_REPO_URL):
prompts/<slug>.md # title, tags, variables, usage (frontmatter) + body
owners/<area>.md # area, owner, backup, contact, systems
docs/<system>.md # system, category, links[] + description
skills/<slug>/SKILL.md # name, description + instructions
skill-sources.yaml # external skill repos to index
drafts/… # open suggestions awaiting publish (mirrors the above)See data-repo-template/ for a ready-to-fork seed.
Skills: index, don't copy
ybrain gives one searchable view over your internal skills and external
skill repos (e.g. mattpocock/skills,
Claude Code plugin marketplaces). It does not vendor anyone's skills — it
reads each repo's SKILL.md frontmatter (name + description) via the GitHub
API and, for each skill, returns the exact client-side install command for
that source. (An MCP server can't install into your ~/.claude/skills/ — so
ybrain discovers and advises; the client installs.)
Sources live in skill-sources.yaml in the data repo:
sources:
- id: internal
kind: internal # this data repo's skills/ dir
- id: mattpocock
repo: mattpocock/skills
kind: skills-cli # → npx skills@latest add mattpocock/skills
path: skills
- id: anthropic
repo: anthropics/skills
kind: marketplace # → /plugin marketplace add … ; /plugin install …@…kind drives the install advice get_skill prints: skills-cli,
marketplace, folder (git clone + copy into .claude/skills/), or
internal. Register more with add_skill_source (supervisor only — a source is
served to every user, so it's an injection surface). External descriptions are
labelled untrusted in get_skill output.
Phase 2 (planned): ship a
.claude-plugin/marketplace.jsonin the data repo so internal skills get one-command native/plugin install+ auto-update, alongside this MCP discovery layer.
How the Git backend works
Local clone, not the GitHub API. Reads hit the filesystem — instant, searchable, and they keep working if GitHub is briefly down. (The API would burn rate limits on every "list everything".) The only GitHub-API use is the read-only indexing of external skill repos.
Single in-process write queue. Each write commits first, then rebases onto the remote and pushes; on conflict/rejection it hard-resets to the remote so a failed write is a true no-op. Git ops have timeouts so a hung network op can't wedge the queue. Assumes exactly one server instance.
Freshness: a background
git fetch + reset --hard origineveryYBRAIN_PULL_INTERVALseconds picks up edits/merges made on GitHub. An optionalPOST /webhook(HMAC-verified) refreshes immediately on push.Swappable: tools talk to a
DataStoreinterface (src/store.ts), so a future GitHub-API or Cloudflare-KV backend is one file — no tool changes. Do not horizontally scale the local-clone backend (two clones pushing = races the queue can't fix).
Run
cp .env.example .env # set YBRAIN_DATA_REPO_URL, YBRAIN_GIT_TOKEN; optional YBRAIN_SUPERVISOR_TOKENS
bun install
bun run dev # or: docker compose up --build
curl localhost:8080/healthzAdd it to an MCP client
Streamable HTTP endpoint at POST /mcp. Read + suggest (no token):
{ "mcpServers": { "ybrain": { "url": "https://ybrain.example.com/mcp" } } }Supervisor (add a named token to unlock publish/reject/register-source):
{
"mcpServers": {
"ybrain": {
"url": "https://ybrain.example.com/mcp",
"headers": { "Authorization": "Bearer YOUR_SUPERVISOR_TOKEN" }
}
}
}Layout
src/
server.ts # HTTP + Streamable HTTP transport; /mcp /healthz /webhook; rate limit + body cap
auth.ts # Bearer token → { canPublish, author }; constant-time compare
config.ts # env resolution (named supervisor tokens, limits)
store.ts # DataStore interface (backend-agnostic): read/write/remove/move/refresh
git-store.ts # local-clone Git backend: commit-then-rebase queue, resilient refresh
content.ts # frontmatter parse/format + renderers; live/draft path helpers
skills.ts # skill source registry + unified index + install-hint generator
tools.ts # read + suggest (open) tools, supervisor tools (token-gated)
log.tsBuilt with Bun + TypeScript + @modelcontextprotocol/sdk,
matching the yreview toolchain.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceAn MCP server that enables AI agents to search, read, and contribute to a structured markdown knowledge base with citations, freshness tracking, and a safe write path, providing a shared, auditable company memory.6MIT
- Alicense-qualityBmaintenanceSelf-hosted MCP server for storing and serving structured team knowledge, enabling AI sessions to load relevant team context without re-prompting.Apache 2.0
- FlicenseAqualityDmaintenanceAn enhanced MCP server that fetches prompts from GitHub repositories with intelligent discovery, composition, and management features.71
- Alicense-qualityCmaintenanceMCP server that gives AI coding agents a git-backed markdown wiki to read and update, enabling search, read, write, verify, ingest, promote, and lint operations on versioned knowledge documents with schema validation, staleness tracking, and contradiction detection.MIT
Related MCP Connectors
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
MCP server for skill documentation, generated by doc2mcp.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ynfra/ybrain'
If you have feedback or need assistance with the MCP directory API, please join our Discord server