Scan your whole stack
From OX Research Newsroom
Are you using mcp-server-kit?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.2
mcp-server-kit was last scanned on 27 Nov 2026 at version 0.1.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.2 LATEST | 27 Nov 2026 | No rules fired |
| 0.1.1 | 25 Oct 2026 | No rules fired |
| 0.1.0 | 25 Oct 2026 | No rules fired |
Findings for v0.1.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Shared plumbing for Python MCP servers built on the official SDK's FastMCP
(mcp.server.fastmcp). It covers the parts every server ends up copying:
| Module | What it does |
|---|---|
offload_sync_tools |
Registers each sync tool as an async wrapper that runs the body in a worker thread, so one blocking upstream call can't freeze every other request. The SDK runs sync handlers inline on the event loop. Signatures, and so input schemas, are unchanged. Every call, sync or async, logs one tool=… outcome=… duration_ms=… rss_mib=… line. |
BearerAuthMiddleware |
Pure ASGI bearer-token gate (timing-safe compare, streaming-safe). Only /.well-known/ discovery paths are exempt, matched by prefix, never by substring. |
serve |
--stdio runs stdio. Otherwise it serves Streamable HTTP at /mcp behind the bearer gate, and refuses to start without a token. |
healthcheck.probe |
A liveness probe for containers: a full HTTP round-trip to /mcp, where the 401 counts as alive. Pair it with restart-on-unhealthy so a wedged loop heals itself. |
files |
Collision-safe staging for a directory several servers share: bare names only, never overwrite (-2, -3, … before the extension, O_CREAT\|O_EXCL), sha256 of every transfer. atomic_create writes bytes; exclusive_open hands a streaming writer the fd. list_files / purge_one / purge_older (0.1.1) are the bodies of the matching housekeeping tools: listing with sha256 and <scheme>:<name> references, delete by bare name, age-based purge with dry run. |
pdf (extra [pdf]) |
PDF text extraction (pdfplumber text / layout / tables), page rendering (pypdfium2), and OCR through an xberg server (tesseract, or a vision model for hard pages). Configured by XBERG_* env vars (XBERG_API_TOKEN is sent as a bearer token for xberg servers that require one); the PDF libraries load lazily. |
uv add mcp-server-kit # or: pip install mcp-server-kit
It pins mcp>=1,<2, so the SDK range lives in one place for every server built on the kit.
import logging
import os
from mcp.server.fastmcp import FastMCP
from mcp_server_kit import offload_sync_tools, serve
mcp = FastMCP("example", instructions="...", stateless_http=True, json_response=True)
offload_sync_tools(mcp, logger_name="example_mcp.requests") # before the first @mcp.tool()
@mcp.tool()
def lookup(query: str) -> str:
"""A blocking call is fine here: it runs in a worker thread."""
...
def main() -> None:
logging.basicConfig(level=logging.INFO)
serve(mcp, port=8000, bearer_token=os.environ.get("MCP_BEARER_TOKEN", ""))
lookup stays a plain function, so tests and other tools can call it directly.
To give every tool the same annotations unless it passes its own:
offload_sync_tools(mcp, logger_name=..., default_annotations=ToolAnnotations(readOnlyHint=True)).
Healthcheck module for a container (HealthCmd=python -m example_mcp.healthcheck):
from mcp_server_kit.healthcheck import probe
def main() -> None:
probe(8000)
if __name__ == "__main__":
main()
Shared non-thread-safe clients (e.g. cached httplib2 objects) need a lock in the
server. Thread-safe ones (httpx.Client, requests.Session) don't.
uv sync --extra test
uv run pytest -q
MIT licensed.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.