Model Context Protocol (MCP) Integration ​
The Nostrify documentation is available through the Model Context Protocol (MCP), which allows AI agents to access and use our documentation directly. This integration enables developers to get assistance from AI tools like GitHub Copilot, VSCode Copilot, and Goose with accurate, up-to-date information about Nostrify.
What is MCP? ​
Model Context Protocol (MCP) is an open standard that allows AI agents to access external tools and data sources. By integrating Nostrify documentation with MCP, AI assistants can:
- Read and understand Nostrify documentation
- Provide accurate guidance on Nostrify usage
- Help troubleshoot issues with accurate context
Setting Up Nostrify Documentation MCP ​
Prerequisites ​
- Deno installed on your systembash
curl -fsSL https://deno.land/install.sh | sh
Server Command ​
This command should be entered into your MCP client:
deno run -A jsr:@soapbox/docs-mcp --name Nostrify --site nostrify.dev
Installation Options ​
VSCode Setup ​
To enable Nostrify documentation for GitHub Copilot in VSCode:
- Create or edit
.vscode/mcp.json
in your project:
{
"servers": {
"nostrify": {
"type": "stdio",
"command": "deno",
"args": [
"run",
"-A",
"jsr:@soapbox/docs-mcp",
"--name",
"Nostrify",
"--site",
"nostrify.dev"
]
}
}
}
- Restart VSCode or reload the window
- The Nostrify documentation will now be available to GitHub Copilot
For more information, see Use MCP servers in VS Code.
Goose Setup ​
To install as a Goose extension:
- Run
goose configure
- Choose "Add Extension"
- Choose "Command-line Extension"
- Enter the project name:
nostrify
- Enter the command:
deno run -A jsr:@soapbox/docs-mcp --name Nostrify --site nostrify.dev
- Save the configuration
After installation, Goose will have access to all Nostrify documentation through the read_doc
tool.
Using the MCP ​
Once installed, AI assistants will gain access to a read_doc
tool that can fetch and display documentation directly from the Nostrify website. For example:
- "Show me how to connect to a Nostr relay with Nostrify"
- "What storage options are available in Nostrify?"
- "Help me understand Nostrify's policy system"
For Developers ​
If you're developing tools that integrate with Nostrify, setting up the MCP can provide your AI assistants with accurate context about our API and functionality, leading to better code suggestions and troubleshooting.
Development and Testing ​
You can test the MCP server locally:
# Install dependencies
deno run -A jsr:@soapbox/docs-mcp --name Nostrify --site nostrify.dev
You can also run the MCP Inspector to debug and interact with the server:
deno task dev
Contributing ​
If you find issues with the MCP integration or want to improve it, please consider contributing to the docs-mcp project.