Pharo MCP Server
Pharo Smalltalk implementation of Anthropic's Model Context Protocol (MCP) server specification. Enables LLMs like Claude to interact with Pharo applications.
paulwilke
README
Pharo MCP Server
<!-- Add other badges later, e.g., build status, version -->
Pharo Smalltalk implementation of Anthropic's Model Context Protocol (MCP) server specification. Enables LLMs like Claude to interact with Pharo applications.
Table of Contents
- What is MCP?
- Goal of this Project
- Features
- Installation
- Basic Usage
- Defining Tools
- Configuration
- Development & Contributing
- License
What is MCP?
The Model Context Protocol (MCP), developed by Anthropic, is a specification designed to standardize how Large Language Models (LLMs) interact with external tools and services. It defines mechanisms for:
- Discovery: How an LLM finds out if a service supports MCP and gets basic information.
- Service Description: How a service describes its available tools (functions), including their names, purposes, input parameters, and output formats.
- Invocation: How an LLM securely calls a specific tool with the required arguments and receives the result.
The goal is to make LLM tool usage more reliable, secure, and standardized.
For more details, see the official Model Context Protocol GitHub organization.
Goal of this Project
This project aims to provide a robust and easy-to-use server-side implementation of the MCP specification specifically for the Pharo Smalltalk environment.
It allows developers to expose functionalities within their Pharo applications (like querying data, creating objects, triggering actions) as "tools" that MCP-compliant LLMs (such as Claude 3) can discover and invoke through the standardized protocol.
This bridges the gap between the dynamic Pharo environment and the capabilities of modern LLMs.
Features
- MCP Specification Compliance: Implements the core server-side endpoints:
- Discovery (
/.well-known/model-context) - Service Description (
/mcp/description- or configurable path) - Invocation (
/mcp/invoke- or configurable path)
- Discovery (
- Dynamic Tool Registration: Provides a simple API to register Pharo methods or blocks as MCP tools.
- Automatic Service Description: Generates the MCP Service Description JSON based on the registered tools and their metadata (name, description, schemas).
- Web Server Integration: Built upon the Teapot micro web framework.
- JSON Handling: Uses NeoJSON for robust JSON parsing and generation.
- Extensible: Designed to be integrated into larger Pharo applications.
- (Planned): Input validation using JSON Schema definitions for tool parameters.
- (Planned): Integration helpers for common Pharo object models (e.g., using Voyage).
Installation
This project is intended to be loaded using Metacello.
- Ensure Metacello is loaded in your Pharo image (it usually is).
- Execute the following code in a Pharo Workspace (adjust the repository URL and branch/tag if necessary):
Metacello new
baseline: 'MCPFramework'; "<- Use the actual name of YOUR baseline class (without 'BaselineOf')"
repository: 'github://YOUR_USERNAME/pharo-mcp-server:main/'; "<- CHANGE THIS to your repo URL and branch/tag"
load.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor
Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.
Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.