php-sdk logo
php-sdk
★ 1.6k
vs
fastapi_mcp logo
fastapi_mcp
★ 12.0k

php-sdk vs fastapi_mcp

php-sdk: The MCP PHP SDK is the official toolkit for implementing Model Context Protocol servers and clients in PHP. It offers a framework-agnostic API, allowing developers to expose PHP application functionality to AI agents or integrate with MCP servers.; fastapi_mcp: FastAPI-MCP allows you to expose your existing FastAPI endpoints as Model Context Protocol (MCP) tools. It offers native integration with FastAPI, including built-in authentication using existing dependencies, and preserves schemas and documentation.

01

TL;DR

php-sdk logo
php-sdkDev Tooling · ★ 1.6k

Exposing existing PHP application functionalities (e.g., database access, custom logic) as callable tools or readable resources for AI agents.

fastapi_mcp logo
fastapi_mcpDev Tooling · ★ 12.0k
When to choose:
  • You already have a FastAPI application and want to expose its endpoints as MCP tools while reusing your existing FastAPI authentication dependencies and Swagger schemas.
  • You want to mount the MCP server directly onto your ASGI app or deploy it separately under an MIT license.
When to skip:
  • You are building a standalone MCP server from scratch rather than wrapping a FastAPI app; use FastMCP or the official MCP Python SDK.
  • You need an actively updated repository (last push was November 2025).
02

Side-by-Side Comparison

Field
php-sdk logophp-sdk
fastapi_mcp logofastapi_mcp
Category
Dev Tooling
Dev Tooling
Stars
★ 1.6k
★ 12.0k
License
NOASSERTION
MIT
Install Command
composer require mcp/sdk
uv add fastapi-mcp
Updated
1d ago
11mo ago
Open Source
Yes
Yes
Tags
PHP, SDK, AI Agents
FastAPI, MCP, Python
03

Features

php-sdk logophp-sdk
01Implement MCP Servers to expose PHP capabilities (tools, resources, prompts) to AI agents.
02Build MCP Clients to connect to and interact with any MCP server from PHP applications.
03Support for attribute-based and manual registration of server capabilities.
04Multiple transport options including STDIO and HTTP for flexible deployment.
05Advanced client features like progress tracking, sampling, elicitation, and logging support.
fastapi_mcp logofastapi_mcp
01Authentication built in, using your existing FastAPI dependencies!
02FastAPI-native: Not just another OpenAPI -> MCP converter
03Zero/Minimal configuration required
04Preserving schemas of your request models and response models
05Flexible deployment - Mount your MCP server to the same app, or deploy separately
04

Use Cases

php-sdk logophp-sdk
↳Exposing existing PHP application functionalities (e.g., database access, custom logic) as callable tools or readable resources for AI agents.
↳Integrating PHP applications with external AI systems or other MCP-compliant services by acting as an MCP client.
↳Developing AI-powered assistants or copilots within Symfony, Drupal, or CakePHP ecosystems by building custom MCP servers.
↳Creating custom PHP-based 'tools' that large language models (LLMs) can discover and execute via the Model Context Protocol.
fastapi_mcp logofastapi_mcp
↳Integrating FastAPI services as tools for large language models (LLMs) that support MCP.
↳Enabling LLMs to interact with and utilize existing business logic and data exposed via FastAPI.
↳Quickly exposing authenticated FastAPI APIs as discoverable and usable tools within an MCP ecosystem.
05

Best For

php-sdk logophp-sdk
EssentialTrending
fastapi_mcp logofastapi_mcp
Most PopularEssential
FAQ

FAQ

What is the difference between php-sdk and fastapi_mcp?
Both php-sdk and fastapi_mcp are in the Dev Tooling category. php-sdk has 1.6k stars, while fastapi_mcp has 12.0k stars.
Which is better, php-sdk or fastapi_mcp?
The best choice depends on your use case. Choose php-sdk if Exposing existing PHP application functionalities (e.g., database access, custom logic) as callable tools or readable resources for AI agents., and fastapi_mcp if Integrating FastAPI services as tools for large language models (LLMs) that support MCP..
Is php-sdk free or open source?
Yes, php-sdk is open source on GitHub (NOASSERTION).
Is fastapi_mcp free or open source?
Yes, fastapi_mcp is open source on GitHub (MIT).
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
→

Related