brainkb MCP Server
MCP server for querying BrainKB, a knowledge base for neuroscience knowledge graphs.
brainkb scores 56 (Fair), with no SPDX license recorded and written in Python. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Knowledge. GitHub shows 7 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
56 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 56 comes from
22 + 20 + 3 + 0 + 4 + 7 = 56. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: OAuth sign-in. Your client opens a browser window to sign in with the provider. No key goes in the config file. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "sensein-brainkb": { "url": "https://mcp.brainkb.org/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
BrainKB
BrainKB is a cutting-edge knowledge base platform designed to empower scientists worldwide by providing tools for searching, exploring, and visualizing Neuroscience knowledge through knowledge graphs (KGs). Additionally, BrainKB offers advanced tools that enable scientists to contribute new information to the platform, ensuring it remains the premier destination for neuroscience research.
BrainKB serves as a knowledge base platform that provides scientists worldwide with tools for searching, exploring, and visualizing Neuroscience knowledge represented by knowledge graphs (KGs). Moreover, BrainKB provides cutting-edge tools that enable scientists to contribute new information (or knowledge) to the platform, ensuring it remains the go-to destination for all neuroscience-related research needs.
Organization
- Ingest Service Provides the service related to data ingestion and consumption using RabbitMQ. Not used currently.
- GraphDB The docker compose configuration of GraphDB.
- JWT User & Scope Manager A toolkit to manage JWT users and their permissions for API endpoint access.
- Query Service Provides the functionalities for querying (and updating) the knowledge graphs from the graph database.
- SPARQL Queries List of SPARQL queries tested or used in BrainKB.
Running
Quick Start
1. Setup Environment variables
Important: Change default passwords in .env for security.
# Copy the environment template
cp env.template .env
# Edit .env with your configuration (make sure to change passwords!)
nano .env # or use your preferred editor
2. Start Services
Recommended: Use the wrapper script (includes Ollama setup + pgAdmin config):
chmod +x start_services.sh
./start_services.sh
3. Access Services
Once started, services are accessible at:
- API Token Manager (Django):
http://localhost:8000/- Once you register JWT user you need to activate it using token manager. You can also assign permission.
- Query Service (FastAPI):
http://localhost:8010/- Supports querying and ingestion of the knowledge graphs.
- Native W3C PROV-O provenance in the graph database, with triple-level delta tracking (per-job delta graphs + query/compare endpoints).
- Spaces: team-owned, private/public containers of named graphs — keep data
private to members or publish it publicly (anonymous read). Per-endpoint JWT
scopes (
read/write/admin); role-based authorization (seequery_service/RBAC_MODEL.md). Accepts both SSO (RS256/JWKS) and legacy HS256 tokens. - Search: hybrid full-text search — Postgres locator index (aware of workspace + visibility) finds subjects, data is fetched from Oxigraph. Results are access-filtered (anonymous sees public only).
- SynthScholar review ingest (
/api/synthscholar/reviews): upload the output directory of a SynthScholar run (the synthscholar skill) into a space. Its graph,https://brainkb.org/synthscholar/reviews/<protocol.review_id>/, is registered in the space;review.ttlplus an import record (PROV-O: who, when, every kept file with media type, size and sha256, what was left out) are ingested as an ordinary job. The files — all but intermediatework/— are kept in Postgres (synthscholar_files) and served under the space's read rules.review.jsonis read as plain JSON, not through the synthscholar package. Once per review. - See
query_service/README.md,query_service/PROVENANCE_MODEL.md, andquery_service/SPACES_MODEL.mdfor details.
- ML Service (FastAPI):
http://localhost:8007/- Integrates StructSense (multi-agent NER + structured-resource extraction).
- Hosts SynthScholar at
/api/synth-scholar/*— PRISMA-guided literature review pipeline (search → screening → critical appraisal → synthesis, with SSE progress streaming and markdown / JSON / RDF exports). Reuses the unifiedbrainkbPostgres database. Seeenv.templatefor the optional API keys (OpenRouter, NCBI, Semantic Scholar, CORE). format=pdfexport renders a review's Markdown to PDF (pandoc + Typst).
- Oxigraph SPARQL:
http://localhost:7878/(password protected) graph database - pgAdmin:
http://localhost:5051/ - User management service (FastAPI):
http://localhost:8004- Canonical identity service: user profiles, roles/RBAC, and OAuth sign-in (Globus / ORCID / GitHub). One canonical user; the credential row is linked to the profile (identity unification).
- Single sign-on issuer (RS256 + JWKS): one login mints a refresh token,
exchanged for narrow per-service access tokens (
aud=<service>) that each service verifies via/.well-known/jwks.json. A token for one service can't be replayed against another. Legacy per-service HS256 tokens still work. - Admins can activate users and assign roles/groups. See
query_service/AUTH_UNIFICATION.mdandusermanagement_service/README.md.
Authentication
BrainKB is moving to a single sign-on model — usermanagement is the sole token
issuer and each service verifies audience-scoped RS256 tokens against its JWKS,
while legacy per-service HS256 tokens remain accepted during migration. Web
sign-in returns both an access and a refresh token so the UI renews silently
(USERMANAGEMENT_WEB_SESSION_TTL_MIN / USERMANAGEMENT_WEB_REFRESH_TTL_MIN).
The full design, phases, and deployment env are in
query_service/AUTH_UNIFICATION.md.
Please note: for the Query Service and ML Service, you won’t see anything at their base URLs. To verify they are running, open their API docs at http://localhost:8010/docs and http://localhost:8007/docs respectively.
Troubleshooting
If you encounter Docker mount errors or issues with file sharing, please refer to the Troubleshooting section in LOCAL_DEPLOYMENT.md.
Documentation
Please refer to the BrainKB documentation below for additional information regarding BrainKB, its rationale, deployment instructions, and lessons learned.
Contact
- Tek Raj Chhetri tekraj@mit.edu
License
This project is licensed under the Apache License 2.0.
Copyright © 2024–Present Senseable Intelligence Group
You may obtain a copy of the license at: Apache License, Version 2.0
Frequently asked questions
What is brainkb MCP Server?
MCP server for querying BrainKB, a knowledge base for neuroscience knowledge graphs.
How do I install brainkb MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. brainkb MCP Server connects to the remote endpoint https://mcp.brainkb.org/mcp, so there is nothing to install locally.
Does brainkb MCP Server support remote (HTTP) connections?
Yes. brainkb MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
How is brainkb MCP Server's trust score calculated?
brainkb MCP Server scores 56 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.