What You Can Do
Connect Cursor, Claude Code, Codex, or another MCP client to MindFort and work with your organization’s security program from your agent. The MindFort MCP server exposes an explicit, organization-scoped tool catalog for:- Browsing, creating, updating, and deleting authorized targets
- Managing write-only test credentials for web applications and APIs
- Reviewing coverage scenarios, run states, and linked findings
- Discovering candidate targets when Discovery is enabled
- Starting, monitoring, and canceling assessments
- Browsing, triaging, commenting on, and retesting findings
- Reading security metrics, distributions, aging, remediation, and health scores
- Generating, polling, and downloading reports
MCP Use Cases
MCP vs. Platform Patching
Use Patching when you want MindFort to generate a pull request directly from the platform. Use MCP when you want your local AI agent to combine MindFort evidence with your repository checkout, build system, and engineering conventions.Install
Cursor
.cursor/mcp.json:
Claude Code
/mcp inside Claude Code to sign in.
Or add the server to .mcp.json:
Codex
~/.codex/config.toml:
Other MCP Clients
Use the Streamable HTTP endpoint:POST /mcp. The legacy HTTP+SSE transport and the old GET /mcp stream and DELETE /mcp session methods are not supported.
Sign In and Authorization
MindFort MCP uses browser-based OAuth with your existing MindFort account. You do not need an API key.- Add the MindFort MCP server.
- Complete the browser sign-in when your client prompts you.
- Select the intended MindFort organization.
- Ask the agent to call
get_current_contextand confirm the organization, role, and enabled capabilities.
get_current_context.
The catalog depends on the member’s role and organization features. Members whose only role is auditor have read-only access to permitted operations. Feature-gated tools and credential variants appear only when their organization has the corresponding feature enabled. MindFort does not expose billing administration, API-key administration, organization membership, or role administration over MCP.
Start with Context
To help your agent use the correct context and resource IDs, use this sequence:- Call
get_current_contextto confirm the selected organization and available capabilities. - Call
list_targets, thenget_targetbefore target-specific work. - Reuse target, credential, assessment, finding, coverage check, and report IDs returned by MindFort.
- Review tool warnings before starting active testing or performing destructive actions.
- Poll asynchronous operations with their corresponding read tool.
mindfort://guides/start-here. MCP clients that support resources can discover and read it for the compact operating sequence. For detailed semantics, use this documentation and the agent-readable documentation index.
Capabilities and Feature Gating
The tool catalog is explicit and may differ by organization.Complete tool catalog
The baseline and feature-gated catalog contains the following tools. Callget_current_context first because feature-gated tools may be absent for the selected organization.
Feature-gated capabilities include:
discovery: discovery status, context, schedules, runs, and suggestionsnetwork-targets: network target creation and assessment inputssms-credentials: SMS credential variants, provisioning metadata, and code checksfinding-severity-overrides: setting severity overrides; clearing an existing override remains available
Targets and Credentials
Web application and API targets require an HTTP(S)web_domain. Network targets require an ip_address and are available only when enabled for the organization. Targets created through REST or MCP start unverified; complete ownership or network verification in the MindFort dashboard before active testing.
Credential list and detail reads return metadata only; they do not return passwords, API-key values, or TOTP seeds. Dedicated authentication helpers can return a temporary code or login URL, and email provisioning returns a pending inbox ID for credential creation.
For API targets, api_key credentials require nonblank target-level api_auth_instructions that explain:
- The validation route and HTTP method
- The required request shape
- Where the key is placed, such as a bearer token, header, query parameter, or JSON field
- The expected successful response
Assessments and Stage Progress
Starting an assessment begins active security testing and may consume plan capacity. Use only a target the user intends to test. Usestage_progress in the get_assessment response to track assessment stages:
NOT_STARTEDmeans no state has been recorded.RUNNINGorACTIVEmeans work is in progress.- Other values are terminal stage outcomes.
- Active testing stages may include status, attempt, and timing fields.
created_at, updated_at, started_at, and completed_at describe the full run. Failed runs may include a failure_reason explaining the problem. cancel_assessment accepts only the assessment ID. Record any cancellation context in your own workflow.
Findings and Retests
Thelist_findings tool accepts the same filters as GET /v1/findings.
Use
total for the full matching count rather than the first page length. To match the dashboard Open tab, use status=ACTIVE and exclude_secured=true.
Retests are asynchronous and may be started for ACTIVE, RESOLVED, or ARCHIVED findings. Poll get_finding:
QUEUEDorRUNNING: execution is still active.FAILED:retest_failure_reasonexplains why execution could not complete.COMPLETED: validation finished and the result was applied. A result indicating the issue is fixed under the tested conditions sets the finding toRESOLVED; a result indicating it remains reproducible sets it toACTIVE.
Pagination
MCP list tools use opaque cursors rather than REST offsets. When a result includesnext_cursor, pass it back unchanged with the same filters. Cursors are bound to the operation and filter set, so changing filters requires starting a new pagination sequence.
tools/list returns the complete authorized catalog and is not paginated.
Errors and Sensitive Actions
Tool failures include a stable error code, safe message, retry guidance when applicable, and a request ID for support correlation. Validation errors may also include field-level details. If the connection returns HTTP429 Too Many Requests, wait for the Retry-After interval before retrying and reduce polling frequency.
Common actionable codes include:
target_not_verifiedapi_auth_instructions_requiredassessment_already_runningassessment_credits_insufficientassessment_queue_loadingretest_already_running
Troubleshooting
Agent can't connect
Agent can't connect
Confirm the URL is exactly
https://api.mindfort.app/mcp, your network allows HTTPS, and your client supports Streamable HTTP. Restart the client and try again.Sign-in doesn't complete
Sign-in doesn't complete
Clear the MCP connection and add it again. In Claude Code, run
/mcp, select MindFort, and re-authenticate. If the issue continues, contact support@mindfort.ai.Expected tools are missing
Expected tools are missing
Call
get_current_context to confirm the selected organization and its public feature flags. Then reconnect or start a new chat so the client refreshes tool discovery.Finding disappears after resolving
Finding disappears after resolving
This is expected when
list_findings uses the default status=ACTIVE. Pass status=RESOLVED or status=ARCHIVED to browse those lifecycle states.API or MCP count differs from the dashboard
API or MCP count differs from the dashboard
The dashboard Open tab hides informational secured probes by default. Pass
exclude_secured=true and status=ACTIVE to match it. Use assessment_id when comparing one assessment.A cursor is rejected
A cursor is rejected
Pass
next_cursor back unchanged with the same tool and filters. Start over without a cursor after changing filters.Coverage and discovery
Uselist_coverage_checks for individual scenarios and get_coverage_overview for aggregate counts. Keep covered, failing, incomplete, in_progress, and not_run separate when summarizing results. Coverage is read-only; there are no tools to create, edit, or rerun a check.
Discovery proposes candidate targets. Accepting a suggestion creates a target; inspect its verification state before starting testing. Discovery tools appear only when the feature is enabled.