Repolode
apioo

apioo/fusio

Self-hosted PHP API gateway and management platform that turns databases and business logic into REST APIs, with MCP support for AI agents.

Open-source alternative to:KongApigee

Stars
2,127
Forks
246
Open issues
171
Last commit
14 days ago

What is it?

Fusio is a self-hosted backend platform and API gateway written in PHP. It sits between internal services or databases and external consumers, exposing them as managed REST APIs with a backend admin app, a developer portal for third-party users, and tools for issuing keys and handling subscription plans and quotas.

Business logic is written as actions, either as PHP classes or as worker actions built in the backend with JavaScript or Python. Actions are bound to HTTP operations and can expose a configurable form to non-developers. An AI agent feature can generate worker action logic from a natural-language prompt, with support for Ollama, ChatGPT and Gemini, and Fusio provides native Model Context Protocol support so these operations can be used as tools by AI agents.

The project supports MySQL, PostgreSQL and SQLite as its own storage, and can be installed with Docker, from a release archive, or through a web installer. Official client SDKs are available for C#, Go, Java, JavaScript, PHP and Python, along with an OpenAPI specification generated from the API definitions.

Key features

  • 01Exposes SQL and NoSQL databases as REST APIs without writing a backend.
  • 02Routes and load-balances traffic across microservices.
  • 03Lets you write actions in PHP, JavaScript or Python, configurable from the backend.
  • 04Includes a developer portal with docs, testing tools and API keys.
  • 05Generates client SDKs for several languages and OpenAPI specs.
  • 06Supports subscription plans, quotas and usage analytics.

Use cases

  • Putting a legacy database behind a documented, secured REST API.
  • Offering a public or partner API with self-service key management and billing.
  • Exposing internal backend functions as MCP tools for AI agents.
  • Building small backend logic in the admin UI without a separate service.

Quick start

  1. 1

    Create a docker-compose.yml file with the Fusio and MySQL services from the README

  2. 2

    Start the services with Docker Compose

    docker compose up -d

Things to know

  • Requires a database such as MySQL, PostgreSQL or SQLite for the manual installation.
  • The built-in PHP dev server is for testing only; production needs an Nginx or Apache setup or Docker.
  • The AI agent features need an external provider such as Ollama, ChatGPT or Gemini.

Topics

FAQ

What is fusio?
Self-hosted PHP API gateway and management platform that turns databases and business logic into REST APIs, with MCP support for AI agents. Fusio is a self-hosted backend platform and API gateway written in PHP. It sits between internal services or databases and external consumers, exposing them as managed REST APIs with a backend admin app, a developer portal for third-party users, and tools for issuing keys and handling subscription plans and quotas.
Is fusio free to use? What license does it have?
fusio is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is fusio still maintained?
Actively maintained. The last commit to fusio was on Oct 7, 2026.
What can I use fusio for?
Putting a legacy database behind a documented, secured REST API. Offering a public or partner API with self-service key management and billing. Exposing internal backend functions as MCP tools for AI agents. Building small backend logic in the admin UI without a separate service.
How do I install fusio?
Create a docker-compose.yml file with the Fusio and MySQL services from the README Start the services with Docker Compose: docker compose up -d
Where can I get fusio?
The source code and installation instructions are on GitHub: https://github.com/apioo/fusio

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects