
solid mcp
Access data in a Solid Pod using the Model Context Protocol
Repository Info
About This Server
Access data in a Solid Pod using the Model Context Protocol
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
solid-mcp
⚠️ WARNING: This entire project was created by generative AI and has not been reviewed or tested by a human yet. Use with caution in production environments.
Anthropic Model Context Protocol (MCP) integration for the Solid protocol.
This library enables AI models like Claude to access and manipulate data stored in Solid pods through the Model Context Protocol. It allows AI systems to read, write, search, and manage resources in Solid pods while respecting user privacy and control over their data.
Features
- 🔄 Seamless integration between Anthropic's MCP and Solid pods
- 📁 Read and write resources in Solid pods
- 🔍 Search for resources and contents
- 📂 Create and manage containers
- 🔐 Authentication support for secure pod access
- 🧰 Tool-based API for integration with AI models
- 📊 Structured data handling
Installation
npm install @jeswr/solid-mcp
Usage
Basic Setup
import { createSolidMCPServer, SolidPodConfig } from '@jeswr/solid-mcp';
// Configure access to a Solid Pod
const config: SolidPodConfig = {
podUrl: 'https://example.solidcommunity.net/',
auth: {
type: 'bearer',
token: 'your-solid-access-token',
}
};
// Create the MCP server
const server = createSolidMCPServer(config);
Reading a Resource
// Example MCP request to read a resource
const request = {
action: 'read_resource',
parameters: {
uri: '/profile/card',
include_content: true,
},
};
// Handle the request
const response = await server.handleRequest(request);
console.log('Response:', response);
Writing a Resource
// Example MCP request to write a resource
const request = {
action: 'write_resource',
parameters: {
uri: '/examples/hello.txt',
content: 'Hello, Solid World!',
content_type: 'text/plain',
},
};
// Handle the request
const response = await server.handleRequest(request);
console.log('Response:', response);
Listing Container Contents
// Example MCP request to list a container
const request = {
action: 'list_container',
parameters: {
uri: '/examples/',
},
};
// Handle the request
const response = await server.handleRequest(request);
console.log('Response:', response);
Searching for Resources
// Example MCP request to search for resources
const request = {
action: 'search',
parameters: {
container_uri: '/',
search_term: 'profile',
recursive: true,
},
};
// Handle the request
const response = await server.handleRequest(request);
console.log('Response:', response);
API Reference
createSolidMCPServer(config: SolidPodConfig): SolidMCPServer
Creates a new MCP server for a Solid Pod.
SolidClient
Client for interacting with a Solid Pod.
readResource(uri: string, includeContent?: boolean): Promise<SolidResourceResponse>writeResource(uri: string, content: any, contentType: string): Promise<SolidResourceResponse>deleteResource(uri: string): Promise<boolean>createContainer(uri: string): Promise<SolidResourceResponse>
SolidMCPServer
MCP server for Solid Pod integration.
handleRequest(request: any): Promise<any>getService(): SolidMCPService
Integration with Anthropic Claude
This library makes it easy to integrate Solid pods with Anthropic's Claude AI through the Model Context Protocol. Claude can access and manipulate data in Solid pods while respecting user privacy and control.
Example Claude Integration
// In your Claude MCP client implementation
const solidMCPServer = createSolidMCPServer({
podUrl: 'https://example.solidcommunity.net/',
auth: { type: 'bearer', token: 'your-solid-access-token' }
});
// When Claude needs to access data
const claudeRequest = {
action: 'read_resource',
parameters: { uri: '/notes/important.txt' }
};
const response = await solidMCPServer.handleRequest(claudeRequest);
// Provide the response to Claude for context
Running Examples
The library includes example code showing how to use the various features:
npm run example
License
©2025–present Jesse Wright, MIT License.
Quick Start
Clone the repository
git clone https://github.com/jeswr/solid-mcpInstall dependencies
cd solid-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.