Mcpfusion

Agent frameworks and SDKs

MCP Fusion - The TypeScript framework for secure MCP servers.

Your AI app calls the Mcpfusion MCP server, which does the agent frameworks and SDKs work and sends the result back to the chat.

About Mcpfusion

Mcpfusion is a community MCP server from vinkius-labs, filed in our directory under agent frameworks and sdks. MCP Fusion - The TypeScript framework for secure MCP servers.

Mcpfusion runs on your own machine: your AI app starts it with the command npx -y @mcpfusion/core and talks to it over standard input and output.

At a glance

Publisher
vinkius-labs (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @mcpfusion/core
Written in
TypeScript
License
Apache-2.0
GitHub stars
256

How to set up Mcpfusion

  1. Install Node.js on the machine that runs your AI app, because Mcpfusion starts with npx and downloads its package on first run.
  2. Check the Mcpfusion README for keys or settings; the registry lists none that Mcpfusion requires.
  3. Add Mcpfusion to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mcpfusion tools to confirm the connection.
  5. Run one read-only task with Mcpfusion first, and keep your app asking before each tool call until the results look right.

Mcpfusion compared with similar servers

  • IDA (Captain-AI-Hub) by Captain-AI-Hub has fewer GitHub stars than Mcpfusion (254 against 256); both are community servers, and both run locally.
  • QVeris by QVerisAI has more GitHub stars than Mcpfusion (264 against 256); both are community servers, and QVeris runs as a remote server and Mcpfusion runs on your own machine.
  • Android Proxy by zhizhuodemao has fewer GitHub stars than Mcpfusion (247 against 256); both are community servers, and both run locally.

Before you connect Mcpfusion

  • Give Mcpfusion its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mcpfusion tool call until you trust what it does with them.
  • Treat text that Mcpfusion fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mcpfusion on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mcpfusion

How marketing and sales teams put Mcpfusion to work, by company size. Pick the size closest to yours and start Mcpfusion on one use case.

Small business

  • A small business with a developer can use Mcpfusion to build one focused agent, such as lead follow-up, without a big platform.
  • Technical founders can prototype marketing agents with Mcpfusion and keep what works as a small, owned tool.
  • Mcpfusion runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineering teams can use Mcpfusion to build agents that combine CRM, analytics and content tools behind one workflow.
  • Marketing ops can standardize on Mcpfusion so every agent they ship has the same logging, approvals and error handling.
  • Start Mcpfusion on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can build on Mcpfusion with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Platform teams can use Mcpfusion to give business units a governed way to ship agents without each one starting from scratch.
  • Mcpfusion is a community server, so have security review the code and pin a version before Mcpfusion touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mcpfusion README

From vinkius-labs/mcpfusion on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

MCP FUSION

The TypeScript framework for secure, MCP 2.0-native servers.

MCP Fusion is a TypeScript framework that enforces security at the architectural level of every MCP server. Raw data never reaches the LLM without passing through a typed egress firewall. Tools are physically removed from the agent's namespace when the workflow state forbids them. Every behavioral surface is hashed, locked, and auditable in version control.

The framework ships with a SKILL.md, a machine-readable architectural contract. AI coding agents read the Skill and produce correct, governed servers on the first pass.

MCP 2.0 (2026-07-28), Full Compliance

MCP Fusion is 100% compatible with MCP 2.0 (protocol revision 2026-07-28). Every feature the spec defines is implemented or handled via the MCP SDK v2. Every feature the spec deprecates is deprecated in MCP Fusion.

Implemented MCP 2.0 Features
Feature Status How
Stateless protocol ✅ transport: 'stateless', per-request serving, no sessions, no initialize handshake, Mcp-Method/Mcp-Name header routing
Multi Round-Trip Requests (MRTR) ✅ requireInput() + readInput(), native InputRequiredResult / resultType: "input_required" model
Request State Sealing ✅ requestStateKey, HMAC-SHA256 sealed state for multi-round elicitation (SEP-2322)
Structured Content ✅ successStructured() + structuredContent field on ToolResponse
Output Schema ✅ outputSchema in compileToolDefinition() wire format
List Caching ✅ ttlMs / cacheScope directly on result root (SEP-2549), public / private scope
Pagination ✅ cursor / nextCursor on prompts/list (extensible to all list ops)
server/discover ✅ Handled by MCP SDK v2 Server
resultType ✅ Handled by MCP SDK v2 Server ("complete" / "input_required")
Per-request _meta ✅ io.modelcontextprotocol/* fields handled by MCP SDK v2
resources/templates/list ✅ URI template resources with pagination
subscriptions/listen ✅ MCP 2.0 stream-based subscription pattern with filter + acknowledgment
x-mcp-header ✅ .withHeaderParam() on FluentToolBuilder, parameter mirroring to HTTP headers
title & icons ✅ Tool.title, BaseModel.title, Icon domain model, createIcon()
resource_link ✅ Content type in tool results and prompt messages
JSON Schema 2020-12 ✅ Default dialect enforced by MCP SDK v2
Error codes (-32020–-32022) ✅ HeaderMismatch, MissingRequiredClientCapability, UnsupportedProtocolVersion
Protocol version ✅ Defaults to 2026-07-28 in all server metadata (Server Card, introspection)
Deprecated Features (mirrored from MCP 2.0)

All features deprecated by MCP 2.0 (SEP-2577 / SEP-2596) are deprecated in MCP Fusion with @deprecated markers and migration guidance. They remain functional during the deprecation window (earliest removal: 2027-07-28).

Deprecated Feature Migration Path
Roots Pass directories/files via tool parameters, resource URIs, or server configuration
Sampling Integrate directly with LLM provider APIs
Logging (notifications/message) Log to stderr for stdio; use OpenTelemetry (TelemetrySink / DebugObserver)
Dynamic Client Registration Client ID Metadata Documents
HTTP+SSE transport Streamable HTTP (transport: 'http') or stateless (transport: 'stateless')
includeContext values Omit the field or use "none"

📄 Deprecation Registry, full compliance statement and migration guide.

The Skill, AI Writes the Server

MCP Fusion includes a SKILL.md that encodes the entire MVA architecture, security patterns, and governance rules into a format AI coding agents consume directly.

Open your project in Cursor, Claude Code, GitHub Copilot, or Windsurf and describe what you need:

"Build an MCP server for patient records with Prisma. Redact SSN and diagnosis from LLM output. Gate discharge tools until attending physician signs off."

The agent reads the Skill. It produces defineModel() declarations with m.hidden() for sensitive fields, definePresenter() with .redactPII(['*.ssn', '*.diagnosis']) for DLP compliance, FSM state gating via .bindState() for workflow enforcement, and file-based routing under src/tools/. You review the PR.

The Skill is not documentation. It is the security contract. Every server the AI produces inherits the governance stack because the Skill encodes Presenters, state machines, and lockfile generation as mandatory structural patterns.

📄 SKILL.md · llms.txt (complete API reference for LLM consumption)

Security Architecture

Egress Firewall, Presenter

The Presenter validates every response through a Zod schema compiled from defineModel(). Undeclared fields are stripped in RAM before serialization. PII is redacted via V8-optimized fast-redact compiled functions. Rules travel with data, not in the system prompt. The Late Guillotine pattern applies redaction after UI blocks render, charts and suggestions always see full data, the wire never does.

const PatientPresenter = createPresenter('Patient')
    .schema(PatientModel)
    .redactPII(['*.ssn', '*.diagnosis'])
    .rules((p) => [
        p.status === 'critical' ? 'PRIORITY: Patient is critical.' : null,
    ])
    .suggest((p) => p.status === 'admitted'
        ? [suggest('ward.discharge', 'Begin discharge protocol')]
        : []);

The Presenter also runs a PromptFirewall, an LLM-as-Judge that evaluates dynamically generated system rules for prompt injection before they reach the agent. Fail-closed by default.

State Gate, FSM

Tools bound to FSM states are physically removed from tools/list when the current state does not match. The LLM cannot call what does not exist in its namespace. Powered by XState v5 with manual fallback when XState is not installed.

const gate = f.fsm({
    id: 'discharge', initial: 'admitted',
    states: {
        admitted:    { on: { PHYSICIAN_SIGNOFF: 'approved' } },
        approved:    { on: { DISCHARGE: 'discharged' } },
        discharged:  { type: 'final' },
    },
});

export default f.mutation('ward.discharge')
    .bindState('approved', 'DISCHARGE')
    .handle(async (input, ctx) => ctx.db.patients.discharge(input.id));
State Visible tools
admitted ward.view, ward.update_vitals
approved ward.discharge, ward.view
discharged ward.view

Serverless-compatible: FsmStateStore persists state to Redis/KV across request boundaries. Each request gets an isolated gate.clone().

Governance Stack

Eight introspection modules that make behavioral changes visible and auditable:

Module What it does
ToolContract Materializes the complete behavioral surface of each tool
BehaviorDigest SHA-256 hash of the behavioral surface
CapabilityLockfile mcpfusion.lock, git-diffable behavioral snapshot, CI gate via fusion lock --check
CryptoAttestation HMAC-SHA256 runtime verification, fail-fast if behavioral digest drifts
ContractDiff Per-field diff between lockfile versions
EntitlementScanner Static analysis of handler source for I/O capabilities (fs, network, subprocess, eval) with evasion heuristics
SemanticProbe LLM-as-Judge for detecting semantic drift in handler output
TokenEconomics Context window inflation risk profiling
Sandbox

SandboxEngine executes LLM-provided JavaScript in a sealed V8 isolate. No process, require, fs, or network access. One isolate per engine, fresh empty context per execution. Memory-limited, timeout-enforced, output-capped, abort-signal-compatible.

Three Pathways

1. YAML, Zero Code
version: "1.0"
server:
  name: "github-tools"

connections:
  github:
    type: rest
    base_url: "https://api.github.com"
    auth:
      type: bearer
      token: "${SECRETS.GITHUB_TOKEN}"

tools:
  - name: search_repos
    description: "Search GitHub repositories"
    instruction: "Use for finding projects by topic or keyword."
    rules:
      - "Max 10 results per query"
    parameters:
      query: { type: string, required: true }
    execute:
      connection: github
      method: GET
      path: "/search/repositories"
      query: { q: "{{query}}", per_page: "10" }
    response:
      extract: ["items[].{full_name, description, stargazers_count, html_url}"]
mcpfusion yaml dev
2. Typed MVA, Full Control
export const InvoiceModel = defineModel('Invoice', m => {
    m.casts({
        id:           m.string(),
        amount_cents: m.number('CRITICAL: in CENTS. Divide by 100 for display.'),
        status:       m.enum('Status', ['paid', 'pending', 'overdue']),
    });
    m.hidden(['password_hash', 'internal_margin']);
});

export const InvoicePresenter = definePresenter({
    name: 'Invoice',
    schema: InvoiceModel,
    suggestActions: (inv) => inv.status === 'pending'
        ? [{ tool: 'billing.pay', reason: 'Process payment', args: { id: inv.id } }]
        : [],
});

export default f.query('billing.get_invoice')
    .describe('Get an invoice by ID')
    .withString('id', 'Invoice ID')
    .returns(InvoicePresenter)
    .handle(async (input, ctx) => ctx.db.invoices.findUnique({ where: { id: input.id } }));
3. FSM, Deterministic Workflow Enforcement

State-gated tool discovery. Tools appear and disappear based on the current state.

Get Started

npx @mcpfusion/core create my-server
cd my-server && npm run dev

File-based routing, drop a file, restart, and it's a live MCP tool:

src/tools/
├── billing/
│   ├── get_invoice.ts  → billing.get_invoice
│   └── pay.ts          → billing.pay
└── users/
    └── list.ts         → users.list
Deploy
mcpfusion deploy                  # Vinkius Edge (V8 Isolate)
vercel deploy                # Vercel Functions
wrangler deploy              # Cloudflare Workers
Scaffold
mcpfusion create my-server                           # Vanilla
mcpfusion create my-api --vector prisma              # Prisma + field-level security
mcpfusion create ops-bridge --vector n8n             # n8n workflow bridge
mcpfusion create petstore --vector openapi           # OpenAPI → MCP
mcpfusion create my-server --target vercel --yes     # Vercel Functions
mcpfusion create my-server --target cloudflare --yes # Cloudflare Workers

Ecosystem

Core
Package Purpose
@mcpfusion/core Framework core, Presenters, Fluent API, middleware, routing, governance
@mcpfusion/yaml Declarative YAML engine
@mcpfusion/swarm Multi-agent orchestration, HMAC-SHA256 delegation, namespace isolation, W3C tracing
@mcpfusion/a2a A2A Protocol Bridge, Agent Cards, task delegation
@mcpfusion/skills Progressive SKILL.md disclosure for agents
@mcpfusion/testing In-memory MVA pipeline testing
@mcpfusion/inspector Real-time TUI dashboard
Adapters
Package Target
@mcpfusion/vercel Vercel Functions (Edge / Node.js)
@mcpfusion/cloudflare Cloudflare Workers
Generators & Connectors
Package Purpose
@mcpfusion/openapi-gen OpenAPI 3.x / Swagger 2.0 → MCP tools
@mcpfusion/prisma-gen Prisma schema → CRUD tools with field-level security
@mcpfusion/n8n n8n workflows → MCP tools
@mcpfusion/aws AWS Lambda & Step Functions → MCP tools
Security & Auth
Package Purpose
@mcpfusion/oauth RFC 8628 Device Flow
@mcpfusion/jwt JWT verification, HS256 / RS256 / ES256 + JWKS
@mcpfusion/api-key API key validation with timing-safe comparison

Ship Your MCP Server to the Same Infrastructure, Free

Your server runs alongside Salesforce, Stripe, OpenAI, and 4,000+ others. V8 sandbox isolation, DLP, audit trails, and kill switch, all included. No credit card required.

  1. Sign up at vinkius.com
  2. Create an App Connector in the dashboard
  3. Copy your deploy token from the connector settings
  4. Build your MCP server with MCP Fusion
  5. Deploy
mcpfusion deploy

Your MCP server is live.

Powering Vinkius, 4,000+ MCP Servers in Production

Every MCP server on vinkius.com is built with MCP Fusion.

Salesforce (12 tools), Slack (8 tools), Stripe, OpenAI, Gmail, WhatsApp Business, Instagram, PayPal, CrowdStrike Falcon, SAP S/4HANA, Workday, DocuSign, Zendesk, Okta, Twilio, Tableau, HubSpot, Shopify, WooCommerce, Airbnb, Tesla Fleet API, NVIDIA AI, Mistral AI, Anthropic, Box, Meta Ads, X Ads, Reddit, Notion, Supabase, Pinecone, Datadog, Sentry, and thousands more.

Four verticals. 36+ subcategories. All governed.

AI Stack, Cognition & RAG, Code Execution, Databases, Observability, DevOps, AI Models, Agent Coordination, Security, Payments & Infra.

Enterprise, CRM, ERP, HR, Legal & Compliance, Customer Support, Marketing, BI & Analytics, Identity & IAM, Communications, E-Commerce, Accounting, Project Management.

Industries, Hospitality, Healthcare, Energy & Commodities, Construction, Real Estate, Agriculture, Wine & Spirits, Education, Logistics, Insurance, Fitness, Travel.

World Data, Economy & Finance, Central Banks, Securities & Markets, Weather & Climate, Demographics, Space & Astronomy, Health & Medicine, Environment, Energy, Food & Nutrition, Government, Trade & Labor.

Every server runs inside V8 isolate sandboxes on AWS. Ed25519 signed audit chains. Sub-40ms cold starts. DLP redaction on every response. Kill switch for instant shutdown. Every tool call logged and auditable.

vinkius.com/discover, Browse the catalog. vinkius.com/developers, Build your own with MCP Fusion.

Documentation

mcpfusion.vinkius.com · llms.txt · SKILL.md

Contributing

See CONTRIBUTING.md for development setup and guidelines.

Security

See SECURITY.md for reporting vulnerabilities.

License

Apache 2.0

Questions about Mcpfusion

What is the Mcpfusion MCP server?

MCP Fusion - The TypeScript framework for secure MCP servers. Mcpfusion is maintained by vinkius-labs on GitHub at vinkius-labs/mcpfusion, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mcpfusion MCP server?

Add Mcpfusion to your AI app's MCP config with the command npx -y @mcpfusion/core. In Claude Code, run claude mcp add --transport stdio mcpfusion -- npx -y @mcpfusion/core. To run Mcpfusion this way you need Node.js installed.

Does Mcpfusion need an API key?

The registry lists no required keys for Mcpfusion. Check the Mcpfusion README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Mcpfusion an official MCP server?

No. Mcpfusion is a community server maintained by vinkius-labs. Community servers can be excellent; read the code and the open issues before you give Mcpfusion access to company data.

What license is Mcpfusion under?

Mcpfusion is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Mcpfusion; the service it connects to has its own terms.