Providing tools to AI to explore github codebase like agent
Github Second Brain MCP server exists for a simple reason — assistants are far more useful when they can act on Github Second Brain directly instead of describing what you should do. Providing tools to AI to explore github codebase like agent.
A set of tools that let AI explore github repos on-demand so it can better assist you.
Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.
Once Github Second Brain is connected, these are the calls the assistant has available:
Solution — A self-hosted mcp server that gives an AI client a set of tools to explore and understand GitHub repos on its ownget_tree_directory — The get_tree_directory tool exposed by this serverget_repo_contents — The get_repo_contents tool exposed by this serverget_issue_context — The get_issue_context tool exposed by this serverget_code_diff — The get_code_diff tool exposed by this serverYou will need 2 environment variables: GITHUB_PERSONAL_ACCESS_TOKEN, YOUR_PERSONAL_GITHUB_ACCESS_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Github Second Brain's toolset — Solution, get_tree_directory, get_repo_contents and 2 more — is a fair guide to whether it matches your workflow. It is maintained by BaoNguyen09; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Github Second Brain's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Solution | A self-hosted mcp server that gives an AI client a set of tools to explore and understand GitHub repos on its own. |
| get_tree_directory | The get_tree_directory tool exposed by this server. |
| get_repo_contents | The get_repo_contents tool exposed by this server. |
| get_issue_context | The get_issue_context tool exposed by this server. |
| get_code_diff | The get_code_diff tool exposed by this server. |
{
"mcpServers": {
"github-second-brain": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/baonguyen09/github-second-brain:latest"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_PERSONAL_GITHUB_ACCESS_TOKEN"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| GITHUB_PERSONAL_ACCESS_TOKEN | Credential the server authenticates with. | Yes |
| YOUR_PERSONAL_GITHUB_ACCESS_TOKEN | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.