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
- Unzip the download. You get one folder,
php-mcp-server. - For Claude Code: put that folder in
.claude/skills/in your project, or in~/.claude/skills/to use it everywhere. - 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.
- Read
references/security-rules.mdyourself before anything goes live. Runscripts/security_smoke.shagainst 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.
