Type to search. Use the arrow keys, then Enter.

PHP MCP server kit

Templates, a build method and nine security rules for adding an AI connector to an existing PHP and MySQL system, so Claude or ChatGPT can work inside it as the signed-in user.

  • Free
  • MCP connector kit
  • v1.0.0
  • MIT licence

Overview

What it is

A kit for giving an existing PHP system an AI connector (an MCP server). With it, an assistant such as Claude or ChatGPT can look things up, prepare reports and carry out tasks inside your system, with exactly the permissions of the person who is signed in. Your data stays in your system.

It is the method I use myself. The security rules are the point: nine defects that an ordinary code review does not catch, each with the check that finds it.

What is inside

  • SKILL.md: the method, step by step, written for an AI coding assistant to follow.
  • templates/: a working server skeleton (entry point, sign-in by token, tool registry, tool handlers) and the table for access tokens.
  • references/: the architecture, how to design tools, and the nine security rules.
  • scripts/: a census of your tool registry, a smoke test for the security rules, an audit of role checks, and a template for tests that undo what they do.

How to use it

  1. Unzip the download. You get one folder, php-mcp-server.
  2. For Claude Code: put that folder in .claude/skills/ in your project, or in ~/.claude/skills/ to use it everywhere.
  3. Start a session in your project and say what you want, for example: "Add an MCP server to this system so staff can ask about fee balances." The skill loads on its own.
  4. Read references/security-rules.md yourself before anything goes live. Run scripts/security_smoke.sh against your test copy, never against live data first.

Good to know

  • It assumes your system already has sign-in and roles. It does not add them.
  • The templates are a starting point, not a finished product. Every tool you expose is a decision about who may do what.
  • Test on a copy of your data. A connector can change records.

Version history

  • 1.0.0 (14 November 2026): first public release.

Files in the download

  • LICENSE.txt
  • SKILL.md
  • references/architecture.md
  • references/security-rules.md
  • references/tool-design.md
  • scripts/registry_census.php
  • scripts/reversible_test_template.php
  • scripts/role_gate_audit.php
  • scripts/security_smoke.sh
  • templates/api_tokens.sql
  • templates/mcp_auth.php
  • templates/mcp_index.php
  • templates/mcp_server.php
  • templates/mcp_tools.php

Shared under the MIT licence, as it is, without warranty. Read it before you run it, and test on a copy of your data first.

Want this fitted to your system?

Tell me what you run. I will say honestly whether the kit is enough or you need a hand.