solid-mcp

solid-mcp

MCP server for the Solid protocol enabling AI models to read, write, search, and manage resources in Solid pods.

Category
Visit Server

README

solid-mcp

GitHub license npm version build Dependabot semantic-release

⚠️ 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.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured