For a bug fix, your agent may need the files in a local checkout, the discussion in a GitHub issue, or both. Start with the part you’re missing.
Filesystem MCP exposes file operations inside allowed directories. GitHub MCP exposes repository and collaboration operations through GitHub. Their capabilities overlap around reading code, but they answer different questions. The official Filesystem documentation and GitHub server documentation describe those separate surfaces.
If the issue already explains the bug and the agent can read your checkout, you may have enough access already.
The short comparison
| Question | Filesystem MCP | GitHub MCP |
|---|---|---|
| What does it connect to? | Allowed directories on the server’s host | GitHub repositories and collaboration features |
| What is a useful starting point? | Inspecting and editing project files | Reading repository context, issues, and pull requests |
| What should you review first? | Effective directory access and available write tools | Credential permissions and enabled toolsets |
The operations available to your agent depend on the server and client configuration. Check the Filesystem README and GitHub’s server configuration reference during setup.
Choose Filesystem MCP for the working files
The reference Filesystem server supports reading, writing, moving, and searching files, with directory access controls. It provides a list_allowed_directories tool for inspecting the effective scope. See its documented interface before assuming that a configured path is the only path in reach.
A first request can be as small as: “Read the project README and the files involved in this bug. Propose a patch and wait for approval before editing.” Limit access to the project directory. Your home folder is far too broad for this job.
Then approve a small edit and review the diff. Tests need an execution environment; file access alone doesn’t provide one. Agree on the checks before the agent starts, and ask to see their output.
Check your existing tools first, though. A coding environment with suitable file access may already cover this work. Adding Filesystem MCP would give the agent another route to the same files.
Choose GitHub MCP for collaboration context
GitHub’s official server supports repository work, issues, and pull requests. Its configuration supports toolset selection and read-only mode, which excludes write tools. Review the official server README and configuration options.
Try a request tied to a specific issue: “Read this issue and the linked pull request. Summarize the accepted behavior and unresolved reviewer questions.” Ask for links with the answer so a developer can inspect the evidence.
Keep drafting and publishing separate. Preparing a PR description is one task. Creating a PR, submitting a review, or merging a change should have its own approval point. Make that distinction explicit even when the connection permits writes.
The AgentNDX GitHub listing currently records a legacy package path. For a new connection, use GitHub’s official setup instructions rather than assuming the directory’s installation string identifies the implementation you want.
Use both with an explicit handoff
For a bug fix, we suggest this sequence:
- Read the issue and relevant review discussion through GitHub. Write down the expected behavior and cite the evidence.
- Identify the local checkout and intended branch. Do not let the agent guess which folder corresponds to the remote issue.
- Inspect the relevant local files. Propose the smallest change that addresses the documented behavior.
- Approve the edit separately. Run the agreed checks through an appropriate execution environment and retain their actual output.
- Review the diff and draft the PR description. Approve publication as a distinct action.
The handoff record should name the repository, branch, local directory, issue, and checks performed. Require the agent to flag uncertainty instead of filling gaps with a plausible story.
Before setup, use our MCP server evaluation checklist. For a broader workflow, see chaining multiple MCP servers.
FAQ
Which should I connect first?
For an edit-focused task, start with access to the intended working files. For issue or review triage, start with GitHub context. We recommend proving one narrow workflow before enabling both.
Does GitHub’s lockdown mode replace credential permissions?
No. GitHub describes lockdown mode as a best-effort content filter. The underlying credential retains its read and write permissions, so review those separately from content filtering and read-only tool selection. See the lockdown mode documentation.
Should one agent have both connections?
Give it both when the work requires a local checkout and GitHub context. Start the investigation with read-only access. Once you’ve reviewed the proposed fix, approve the local edit and check its results before authorizing a push or PR.