Short answer: at the commit we checked, CodeGraphContext/CodeGraphContext scores 86/100 (grade B): 0 of 29 tools carry an MCP safety hint, 0 of 2 destructive-like tools say they change things, and its README has no npx/uvx-style launch line. This is a hygiene grade, not a security audit.
What we checked
| Repository | CodeGraphContext/CodeGraphContext · MIT · Python · about 4,420 GitHub stars |
|---|---|
| Commit checked | 6ed71a9, scanned 14–15 Nov 2026, hand-checked 27 Nov 2026. |
| Tools the server registers | 29 |
| Tools with any MCP safety hint | 0 of 29 |
| Destructive-like tools (delete, write, run, execute…) | 2, of which 0 carry a hint |
| README install line | has no npx/uvx-style launch line |
| Config findings | none |
How the score adds up
| Start | 100 |
|---|---|
| 2 destructive-like tools with no safety hint (2 each, at most 30) | −4 |
| fewer than half of all tools carry a safety hint (0 of 29) | −10 |
| Score | 86 / 100 → grade B |
Rules in full: methodology. A–F: A 90+, B 80–89, C 70–79, D 60–69, F below 60.
Evidence from the code
- How tools are registered: TOOLS dict literal in src/codegraphcontext/tool_definitions.py:9-560 (29 entries, each with literal name/description/inputSchema); the stdio server (src/codegraphcontext/server.py:253 self.tools from TOOLS minus user-disabled ones, served at :846-851 tools/list) and the HTTP transport (src/codegraphcontext/api/mcp_sse.py:17-27) both serve this same dict. extensions/vscode is an MCP client, not a server
- How safety hints are set: none (tool entries have only name/description/inputSchema; mcp_sse.py builds Tool(name, description, inputSchema) without annotations)
src/codegraphcontext/tool_definitions.py:9 TOOLS = { ... } with 29 tool entries (add_code_to_graph ... analyze_architectural_evolution)src/codegraphcontext/server.py:253-257 self.tools = TOOLS minus names listed in mcp.json disabledToolssrc/codegraphcontext/server.py:846-851 tools/list returns list(self.tools.values())src/codegraphcontext/api/mcp_sse.py:17-27 HTTP transport lists the same tools as Tool(name, description, inputSchema)src/codegraphcontext/tool_definitions.py:148 execute_cypher_query and :250 delete_repository: destructive-like, no annotations (delete_repository's description opens 'DESTRUCTIVE AND IRREVERSIBLE')
Using it more safely
- Turn on approval for its write and delete tools. 2 of its 2 destructive-like tools don't tell your AI client they change things, so many clients won't ask you first. Set them to "ask every time" in your client's tool settings.
- Give it the least access it needs: a scoped token or a test account, not your admin credentials, and only the folders or projects the task needs.
- Check your own config for unpinned servers, broad folders and hard-coded tokens with the free MCP config checker (runs in your browser).
Shipping an AI agent that uses MCP servers and facing a security review? See how to answer the MCP question, or get your agent reviewed.
For the maintainers
Add the badge to your README (it links back to this page, and updates when we re-check):
[](https://aireviewready.in/mcp/servers/codegraphcontext-codegraphcontext/)
Fixed something, or think we got it wrong? Ask for a re-check and name the commit. We reply within 7 days. Code-level security issues are never published here; they're reported privately first.