
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server built on Joern for code review and security analysis.
Joern MCP Server is cataloged as an MCP server attributed to sfncat. An MCP server built on Joern for code review and security analysis. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Joern MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It provides Joern-based MCP features for code review and security analysis.
The server exposes get_callee_chain_server and get_methods_by_name.
README.md · c30b9624a638 · 采集于 2026-11-13 07:08:02 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A simple MCP Server for Joern.
This project is an MCP Server based on Joern, providing a series of features to help developers with code review and security analysis.
Clone the project locally:
git clone https://github.com/sfncat/mcp-joern.git
cd mcp-joern
Install Python dependencies:
uv venv .venv
source .venv/bin/activate
uv sync
├── server.py # MCP Server main program
├── test_mcp_client.py # Test program for joern server and mcp tool
├── test_sc_tools.py # Direct test program for sc tools
├── common_tools.py # Common utility functions
├── server_tools.py # Server utility functions
├── server_tools.sc # Scala implementation of server utility functions
├── server_tools_source.sc # Scala implementation of server utility functions,use sourceCode to get the source code of method
├── requirements.txt # Python dependency file
├── sample_cline_mcp_settings.json # Sample cline mcp configuration file
└── env_example.txt # Environment variables example file
Start the Joern server:
joern -J-Xmx40G -J-XX:CompressedClassSpaceSize=1g -J-XX:MaxMetaspaceSize=2g \
--server --server-host 127.0.0.1 --server-port 16162 \
--server-auth-username user --server-auth-password password --import server_tools.sc
Or
joern -J-Xmx40G -J-XX:CompressedClassSpaceSize=1g -J-XX:MaxMetaspaceSize=2g \
--server --server-host 127.0.0.1 --server-port 16162 \
--server-auth-username user --server-auth-password password --import server_tools_source.sc
Why the extra JVM flags. Both defaults are too small and only fail after prolonged use, so the breakage looks like a dead server rather than a JVM sizing problem:
-XX:CompressedClassSpaceSize=1g — the Joern REPL compiles one class per query
(rs$line$N). The default class space (128m) is exhausted after a few thousand
queries, after which every query fails with
NoClassDefFoundError: Could not initialize class rs$line$NNNN.-XX:MaxMetaspaceSize=2g — keeps metaspace headroom in step with the class space.-J-Xmx… — size the heap for your CPG. An undersized heap shows up as queries
timing out (not as an OOM). We run -Xmx60G for a ~400 MB CPG.
If you are using it under Windows, you may need to set the JVM system variables through the command line or in the system environment variables.set _JAVA_OPTIONS=-Dfile.encoding=UTF-8
set joern logging level to ERROR
set SL_LOGGING_LEVEL=ERROR //windows
export SL_LOGGING_LEVEL=ERROR //linux
if you have the following warning
Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
you can disable it by setting the environment variable
set TERM=dumb
export TERM=dumb
to restore the default behavior
set TERM=xterm-256color
export TERM=xterm-256color
Copy env_example.txt to .env Modify the configuration information to match the joern server startup configuration
Run the test connection:
Modify the information in test_mcp_client.py to confirm the joern server is working properly
uv run test_mcp_client.py
Starting MCP server test...
==================================================
Testing server connection...
[04/16/25 20:38:54] INFO Processing request of type CallToolRequest server.py:534
Connection test result: Successfully connected to Joern MCP, joern server version is XXX
Configure MCP server
Configure the mcp server in cline, refer to sample_cline_mcp_settings.json.
Use MCP server
Ask questions to the large language model, refer to prompts_en.md
.env file is used to store environment variables.gitignore file defines files to be ignored by Git version controlpyproject.toml defines the Python configuration for the projectserver_tools.sc, add definitions in server_tools.py, and add tests in test_mcp_client.pyWelcome to submit Issues and Pull Requests to help improve the project.
Welcome to add more tools.
https://github.com/flankerhqd/jebmcp
https://docs.joern.io/interpreter/
Server-side call-graph tools (performance)
server_tools.sc: get_methods_by_name (indexed nameExact lookup,
replacing full-CPG .filter(_.fullName.contains(...)) scans which time out on large CPGs),
get_callee_chain (server-side BFS returning the whole call chain - method full name plus
code, JDK/framework callees skipped - in one HTTP round-trip) and get_callee_chain_names
(names only, no code).get_callee_chain_server, get_methods_by_name.HTTP client hardening (server.py)
joern_remote now uses a kept-alive requests.Session with a connection pool.ERROR: ... string on failure instead of None, so callers can tell a
failure apart from a legitimately empty result.Fixes
.env uses USER_NAME/PASSWORD while host
configs inject JOERN_AUTH_USERNAME/JOERN_AUTH_PASSWORD. Only the latter was read, so any
launch without host-injected env (including the bundled test_mcp_client.py) failed with a
silent 401. Both names are now accepted.log_level constructor argument was removed in fastmcp 2.x; it is
now passed inside a try/except with a FASTMCP_LOG_LEVEL fallback.Docs & housekeeping
-XX:CompressedClassSpaceSize=1g -XX:MaxMetaspaceSize=2g (see the
note under "Start the Joern server" for why the defaults fail only after prolonged use).README_cn.md and prompts_cn.md..gitignore: ignore local CPG artifacts (*.cpg), backups (*.bak-*) and the local
credential-injecting run_verify.sh wrapper.tests/fixture/: a self-contained Android fixture (crafted sources + build_fixture.sh)
that builds a ~12 KB APK against API 36 / SDK extension level 17 and the matching CPG.
Every construct that has broken the tooling before is present exactly once: a custom base
receiver whose business entry is handleBroadCastReceive() (not onReceive), a 4-hop
delegation chain across classes and an interface, a duplicated simple method name, an
anonymous inner class, a SharedPreferences write (hd_member) at the chain end,
framework calls the chain tool must skip, and a permission-gated receiver.test_mcp_client.py is now an assertion-based regression gate over that fixture: it
checks the chain/lookup tools, the legacy queries and the error path, and exits non-zero
on failure. The ad-hoc verify_mcp.py was merged into it.pyproject.toml), so
tests/fixture/fixture.apk and fixture.cpg are versioned together with the server.cd tests/fixture && ./build_fixture.sh --cpg # fixture.apk + fixture.cpg
cd ../.. && uv run test_mcp_client.py # protocol-level regression gate
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Joern MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-joern)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.