pharo-mcp-server
Pharo Smalltalk implementation of Anthropic's Model Context Protocol (MCP) server specification. Enables LLMs like Claude to interact with Pharo applications.
Documentation
Pharo MCP Server
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:
1. Discovery: How an LLM finds out if a service supports MCP and gets basic information.
2. Service Description: How a service describes its available tools (functions), including their names, purposes, input parameters, and output formats.
3. 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:
- 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.
1. Ensure Metacello is loaded in your Pharo image (it usually is).
2. 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.Frequently asked questions
What is pharo-mcp-server?
pharo-mcp-server is Pharo Smalltalk implementation of Anthropic's Model Context Protocol (MCP) server specification. Enables LLMs like Claude to interact with Pharo applications.
How do I install pharo-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is pharo-mcp-server open source?
Yes — it is hosted on GitHub at https://github.com/paulwilke/pharo-mcp-server and has 11 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
:robot: The free, Open Source alternative to OpenAI, Claude and others. Self-hosted and local-first. Drop-in replacement for OpenAI, running on consumer-gra...
🍒 Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP