Skip to content

About

Projeto demonstrando um MCP server com PHP

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP MCP Demo

A demonstration project showcasing a Model Context Protocol (MCP) server implementation in PHP, featuring a calculator service with configurable settings and employee data management.

Requirements

  • PHP 8.0 or higher
  • Composer

Installation

  1. Clone this repository:
git clone <repository-url>
cd php-mcp-demo
  1. Install dependencies:
composer install

Usage

Starting the Server

Run the MCP server:

php index.php

It will be available at: http://127.0.0.1:8080;

Connect MCP to Claude (Anthropic)

Want to use this server with Claude or any AI that supports MCP? Follow these steps:

  1. Expose the local server using ngrok:
ngrok http 8080
  1. Copy the ngrok URL (e.g., https://abc123.ngrok.io)
  2. Create a connector in Claude pointing to:
https://abc123.ngrok.io/mcp

Done! You can now use the calculator and employee tools directly via Claude.

About

Projeto demonstrando um MCP server com PHP

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages