Skip to content
Vulnotes LogoVulnotes
MCP Server

MCP Server ​

Vulnotes exposes its operational API as Model Context Protocol (MCP) tools. The server is available at /mcp on the same instance and uses a Vulnotes API key. Tools are filtered by the key's effective permissions and every API request is authorized again by the backend.

Create and connect a key ​

Create an API key from the API & MCP settings

  1. Open Settings > API & MCP as an administrator.
  2. Create a key, give it a descriptive name, and select only the permissions needed by the integration.
  3. Copy the key when it is shown. It cannot be retrieved later.
  4. Connect your MCP client. For Claude Code:
bash
claude mcp add --transport http vulnotes https://your-instance.vulnotes.app/mcp \
  --header "Authorization: Bearer vuln_sk_your_api_key_here"

API requests outside MCP use the same key in X-API-Key:

bash
curl --fail-with-body \
  -H 'X-API-Key: vuln_sk_your_api_key_here' \
  https://your-instance.vulnotes.app/api/api-keys/me

Reconnect after changing a key's permissions. The advertised tool list is read when the MCP session starts, while the API enforces the current permissions on every call.

Permission model ​

PermissionOperational access
ro:reportsRead reports, dashboard data, findings, snapshots, review comments, report notes, report images, and report attachments
rw:reportsCreate/update/delete reports and findings, import/sync reports, retest findings, edit review comments, and manage report files. It also grants ro:reports.
ro:templatesRead/search/preview report templates, revisions, and template images
rw:templatesCreate, import, clone, translate, update, clear, and delete report templates; manage template images. It also grants ro:templates.
ro:vulnerability_templatesRead vulnerability templates and their report-template associations
rw:vulnerability_templatesManage vulnerability templates and their associations. It also grants the read scope.
ro:vulnerabilities / rw:vulnerabilitiesRead or manage the vulnerability library; the write scope also enables vulnerability AI drafting/translation
ro:clients / rw:clientsRead or manage companies, contacts, client-portal users, and client invitations
ro:planning / rw:planningRead or manage planning events, event attachments, and the key owner's availability
manage:planningDelete planning events and administer otherwise permitted planning records. It also grants rw:planning.

The key also inherits its owner's teams, excluded resources, report visibility, and active-account state. A key cannot grant itself permissions its owner does not hold.

Available tools ​

Reports and content ​

ToolPermissionPurpose
list_reports, get_reportro:reportsDiscover and read accessible reports
get_report_dashboard_stats, get_report_recent_activitiesro:reportsRead team-scoped dashboard statistics and activity
create_report, update_report, delete_reportrw:reportsManage report lifecycle and metadata
update_report_contentrw:reportsAtomically update a section's content and/or isComplete flag
list_content_sections, get_content_sectionro:reportsDiscover template-defined content sections
sync_reports_from_templaterw:reportsBulk-sync linked vulnerability templates into accessible reports using a report template
import_report_jsonrw:reportsImport a trusted Vulnotes report backup

update_report supports company/contact assignment, contributors, template and vulnerability-template associations, dates, language, status, and scope. Save section content with update_report_content, one section at a time. Sending a content map through update_report is rejected with REPORT_CONTENT_UPDATE_REQUIRES_SECTION_ENDPOINT.

Use export_report_json, export_report_pdf and export_report_xlsx with ro:reports to export a report. export_report_xlsx follows the template's Excel export layout; its optional columns, sections, includeSummary and timezone arguments select what to export, and it returns the file path with liquidErrors (cells showing #ERROR) and truncatedCells. duplicate_report creates a separate draft and copies its owned files while resetting review and client remediation state.

Findings and review ​

ToolPermissionPurpose
list_findings, get_finding, get_finding_fieldsro:reportsRead findings and their dynamic schema
add_finding, update_finding, delete_finding, reorder_findingsrw:reportsManage findings
add_finding_from_libraryrw:reportsCopy an accessible library vulnerability into a report with its library provenance
complete_finding_retestrw:reportsRecord a verdict, update client-visible status, append retest history, and notify the client
get_active_snapshot, list_report_snapshots, get_report_snapshot, get_snapshot_diff, get_snapshot_preview_dataro:reportsRead the review history
create_report_snapshot, revert_snapshot_changerw:reportsCreate a version or revert one diffed value
list_review_comments, get_review_comment_counts, list_pdf_annotationsro:reportsRead snapshot discussion and PDF annotations
create_review_comment, update_review_comment, delete_review_comment, toggle_review_comment_resolvedrw:reportsManage review discussion

update_finding requires revision. Read the finding with get_finding and pass its revision unchanged. If the finding changed since that read, the call fails and nothing is saved: read it again with get_finding, reconcile your edit with the current content, and send the new revision. Do not retry the stale call as is.

revert_snapshot_change reverts exactly one target (title, executiveSummary, scope, content, section, finding, or finding-field). Call get_snapshot_diff first. Deleting a review comment also deletes its replies. The resolved operation is a toggle, so read the current state before calling it.

Report templates ​

ToolPermissionPurpose
list_templates, search_templates, get_templatero:templatesDiscover accessible report templates
get_template_content, preview_templatero:templatesRead builder content or return a client preview payload with optional report/snapshot data
list_template_revisions, get_template_revisionro:templatesRead saved content history
import_template_docxrw:templatesConvert a .docx into a template draft (remote connections only accept small files, see Secure file handling); it does not save the draft
create_template, clone_template, translate_template, delete_templaterw:templatesManage template lifecycle and language siblings
get_template_authoring_schema, get_template_authoring_document, get_template_authoring_validationro:templatesRead the exact structured contract, canonical document/version, and validation state
validate_template_operations, apply_template_operationsrw:templatesDry-run or atomically apply any of the 26 authoring operations
Page, subpage, element, design-element, variable, theme, header/footer, metadata, category, findings-AI, and vulnerability-link convenience toolsrw:templatesApply one typed operation without manually constructing its discriminator envelope
get_template_xlsx_layout, preview_template_xlsx_layoutro:templatesRead the Excel export layout and its column catalog, or render a layout (saved or not) against a report's first 5 findings
update_template_xlsx_layoutrw:templatesReplace the complete Excel export layout, or reset it with null

Raw whole-document save/clear tools are not advertised by MCP. translate_template copies the source into a language sibling; it does not translate the prose automatically.

Changing vulnerability-template links also requires rw:reports, and linking non-empty IDs requires ro:vulnerability_templates. Previewing with a report or snapshot requires ro:reports and access to that report.

Excel layout cells are LiquidJS formulas with the report template variables. Read the layout, preview the edited version with preview_template_xlsx_layout until errors is 0, then save it with update_template_xlsx_layout. A column without expr uses the catalog default.

For new automation, prefer structured authoring over raw content replacement:

  1. Call get_template_authoring_schema to learn the supported elements, closed operation shapes, enums, limits, canonical Liquid context, and finding-page loop pattern.
  2. Call get_template_authoring_document and retain its contentVersion as expectedVersion.
  3. Build a batch of 1 to 100 operations. Unknown fields and arbitrary object paths are rejected.
  4. Call validate_template_operations for a dry run. Fix every returned issue.
  5. Send the identical version and batch to apply_template_operations.
  6. Inspect the stored validation result, then render the template in the Vulnotes client for visual checking. preview_template returns a payload, not a screenshot or PDF.

Applying operations is atomic and records a revision. If another editor saves first, Vulnotes returns TEMPLATE_VERSION_CONFLICT with the expected and current versions; read the latest document and reconcile the change instead of retrying the stale batch. Invalid operations return TEMPLATE_VALIDATION_FAILED with path-addressed issues and do not partially modify the template.

Use the supported context, including client.name, report.title, report.executiveSummary, dates.*, scope.*, and stats.totalVulnerabilities. A finding detail page must contain an explicit {% for vuln in vulnerabilities %} loop and place {% pagebreak %} between findings. Unknown roots, misspelled canonical fields, and undeclared variable keys fail projected/stored validation.

When recreating a PDF design, inspect every source page, upload and associate its actual raster assets, reproduce repeated furniture and typography, author in small validated batches, and compare the rendered Vulnotes pages side by side with the PDF. Schema validity alone is not proof of visual fidelity.

Vulnerability templates, library, and companies ​

AreaRead toolsWrite tools
Vulnerability templateslist_vulnerability_templates, search_vulnerability_templates, get_vulnerability_template, get_vulnerability_template_report_templatescreate_vulnerability_template, update_vulnerability_template, delete_vulnerability_template, set_vulnerability_template_report_templates
Vulnerability librarysearch_vulnerabilities, get_vulnerabilitycreate_vulnerability, update_vulnerability, delete_vulnerability
Companieslist_companies, get_companycreate_company, update_company, delete_company

These use ro: or rw: for the corresponding resource shown in the permission table.

Client portal access ​

ToolPermissionPurpose
get_company_portal_accessro:clientsRead a company's portal status, client users, access expiry dates, and pending invitations
list_pending_client_invitationsro:clientsList unexpired pending client invitations for the companies the key can access
update_company_client_userrw:clientsChange a client user's role, activate or deactivate the account, or set its access term in months (null for no expiry)
send_client_invitationrw:clientsInvite a client user to a company's portal
resend_client_invitation, cancel_client_invitationrw:clientsResend a pending invitation, or cancel it so its enrollment link stops working

send_client_invitation and resend_client_invitation email the recipient. Confirm the address, company, role, and access term before calling them. Enrollment tokens are never returned, and staff invitations are not reachable through these tools.

Notes, images, and attachments ​

ToolPermissionPurpose
list_notes, get_notero:reportsRead report notes
create_note, update_note, delete_note, toggle_note_pinrw:reportsManage report notes
list_images, list_note_imagesro:reportsRead accessible report/note image metadata
upload_image, delete_imagerw:reportsManage report images
list_template_imagesro:templatesRead template images
upload_template_image, associate_template_images, delete_template_imagerw:templatesManage template images without granting report-write access
list_attachments, list_all_attachments, download_attachmentro:reportsList or securely download report attachments
upload_attachment, delete_attachmentrw:reportsManage report attachments

Planning ​

ToolPermissionPurpose
get_planning_calendar, list_planning_users, list_planning_events, get_planning_event, check_planning_conflictsro:planningRead the visible calendar and detect conflicts
list_planning_backlogro:planningList visible events that still miss a start date, an end date, or an assignee
create_planning_event, update_planning_eventrw:planningBook or reschedule events
delete_planning_eventmanage:planningPermanently delete an event
upload_planning_attachment, delete_planning_attachmentrw:planningManage event files when the caller may edit that event
download_planning_attachmentro:planningDownload a file from an event whose details are visible
list_availabilityro:planningRead visible availability
create_availability, update_availability, delete_availabilityrw:planningManage the key owner's availability

Planning visibility is enforced in addition to the permission. Hidden events return 404; redacted events do not expose attachments.

AI-assisted authoring ​

ToolPermissionPurpose
generate_vulnerability_with_ai, translate_vulnerability_with_airw:vulnerabilitiesDraft or translate vulnerability fields
generate_report_content_with_ai, improve_report_content_with_airw:reportsDraft report/finding-field HTML or improve existing content
generate_finding_with_airw:reportsDraft a finding from a description and/or up to five images

AI tools send prompt content to the configured provider. Vulnotes AI uses tenant credits; a custom provider uses that provider's billing. Report context is anonymized by the backend where applicable. Generated content is returned as a draft and is not saved automatically. AI/provider settings and credentials remain administrative and are not exposed.

Secure file handling ​

The remote HTTP connection at /mcp does not accept filePath. Send the file bytes as base64 in imageData or fileData, together with filename. Remote requests have a size limit, so only send small files this way. Upload larger files with a local MCP process, the Attachments API, or the Python SDK.

For a local MCP process, filePath reads a file on the machine running that process. Paths must be under an allowed upload root. For example, a local image upload can use:

json
{
  "filePath": "/Users/alice/Documents/evidence.png",
  "reportId": "64b7f36f8a57c34f9b812345"
}

upload_template_image requires templateId and rw:templates. This deliberately avoids forcing template automation to hold rw:reports.

Empty or oversized files are rejected, and image uploads do not accept SVG. A path on your computer is not a path on a remote Vulnotes server.

Downloads never accept an output path from tool arguments. download_attachment and download_planning_attachment write the response to a random, owner-only (0600) file in the operating system temporary directory and return that generated path. API downloads validate the exact asset association and stored path before sending bytes.

Typical report workflow ​

  1. Call list_templates and inspect the linked vulnerability templates.
  2. Call create_report with templateId, title, dates, and scope.
  3. Call get_finding_fields before adding findings.
  4. Add findings, upload evidence, and update content sections.
  5. Create a review snapshot and use comments/annotations during review.
  6. Inspect get_snapshot_diff before any targeted revert.
  7. When a client requests a retest, call complete_finding_retest with an explicit verdict and optional client-visible note.

Valid report statuses are draft, waiting-for-review, under-review, and completed. Scope entry types accepted by the report model are ip, url, and other.

Explicit exclusions ​

MCP is for operational work, not platform administration. It does not manage:

  • system, security, SMTP, SSO, webhook, AI-provider, license, theme, font, or global branding settings;
  • users, staff invitations, roles, permissions, or teams;
  • API keys, support/impersonation tokens, or audit-log administration;
  • client-portal settings, portal comments, pentest requests, or other client-portal workflows;
  • stored secret retrieval;
  • additional report export formats beyond the three existing MCP export tools.

Personal/global notes are also outside this surface; MCP notes are report-attached.

Troubleshooting ​

  • A tool is missing: reconnect after granting the required scope. A write scope grants its matching read scope.
  • A call returns 403: the scope may be missing, or the key owner/team cannot access the named resource.
  • A call returns 404 for a known ID: scoped endpoints deliberately hide resources outside the caller's team or calendar visibility.
  • A call returns 429: too many sessions or calls are open at once. Close MCP clients you no longer use, or wait for running calls (exports in particular) to finish before sending more.
  • A call returns 413: the request is too large. Send large files through a local MCP process or the Attachments API.
  • An upload path is rejected: HTTP connections require base64 file data. For a local MCP process, move the file under an allowed upload root or configure MCP_UPLOAD_ROOT.
  • AI returns 403: the feature or vision support may be disabled by an administrator even when the key has the correct resource scope.