Constitutional-AI safety guardrails for any LLM — personas, constitutions, adjudication.
Universal MCP server for Creed Space - AI safety guardrails in 10 seconds.
The server is published to the canonical MCP catalogues, so registry-aware clients can discover and install it directly — or use any command in Quick Start below.
@creedspace/mcp-server, the package every install path resolves to.io.github.Creed-Space/creedspace-mcp-server.server.json manifest.nell/creedspace, a gateway-fronted Streamable HTTP endpoint.Also rolling out across the wider MCP ecosystem: mcp.directory, mcpservers.org, PulseMCP (via the registry ingest), and mcp.so.
# STDIO transport (Claude Desktop, OpenAI Codex)
npx @creedspace/mcp-server --persona ambassador
# HTTP transport (OpenAI Agents SDK)
npx @creedspace/mcp-server --transport http --port 3100
# Test API connection
npx @creedspace/mcp-server test
Creed Space provides personalized AI safety guardrails through Constitutional AI personas. Each persona enforces specific values and behaviors, ensuring AI assistants operate within defined ethical boundaries.
| Persona | Icon | Purpose |
|---|---|---|
| Ambassador | 🤝 | Professional communication |
| Nanny | 👶 | Child-safe interactions |
| Sentinel | 🛡️ | Privacy and security focus |
| Godparent | 🕊️ | Religious and ethical guidance |
| Muse | 🎨 | Creative exploration |
| Anchor | ⚓ | Reality grounding |
# No installation needed - just run!
npx @creedspace/mcp-server --persona ambassador
npm install -g @creedspace/mcp-server
creedspace-mcp --persona ambassador
npm install @creedspace/mcp-server
Add to your claude_desktop_config.json:
{
"mcpServers": {
"creedspace": {
"command": "npx",
"args": ["@creedspace/mcp-server", "--persona", "ambassador"]
}
}
}
Then restart Claude Desktop to load the Creed Space guardrails.
# .env file
CREEDSPACE_API_URL=https://api.creed.space
CREEDSPACE_API_KEY=your-api-key-here # Optional
CREEDSPACE_DEFAULT_PERSONA=ambassador
creedspace-mcp \
--persona ambassador \
--url https://api.creed.space \
--api-key YOUR_KEY \
--cache-ttl 300000 \
--offline
# HTTP Transport Options
creedspace-mcp \
--transport http \
--port 3100 \
--host localhost \
--api-key YOUR_KEY \
--cors \
--cors-origin http://localhost:3000 \
--stateless
| Transport | Use Case | Platforms |
|---|---|---|
stdio (default) | Local subprocess communication | Claude Desktop, OpenAI Codex |
http | HTTP server for remote/local connections | OpenAI Agents SDK, custom integrations |
# Generate example configs
creedspace-mcp --generate-config
# Use config file
creedspace-mcp --config creedspace.json
The server provides 16 tools to MCP clients:
Constitutions
get_constitution - Get the merged constitution for a personaget_constitution_by_id - Get a specific constitution by IDsearch_constitutions - Search the constitution libraryPersonas
list_personas - List all available personasset_persona - Switch the active personaget_active_persona - Get the currently active personaget_uvc_qualities - Get desired/disliked/never qualitiesget_system_prompt - Get a complete persona system promptpreview_export - Preview the export configurationRuntime guardrails
adjudicate - Get a policy decision kernel for a requestattest_response - Validate a response against the active creedget_anchor - Get a compact non-negotiable-rules anchorheartbeat - Periodic re-anchoring to prevent context driftclear_cache - Clear the local cacheMulti-scale value handshake
perform_multi_scale_handshake - N-party value handshake across micro/meso/macro scalesget_scale_attestation - Get an attestation record with hash chainimport { CreedSpaceMCPServer } from '@creedspace/mcp-server';
// Start server programmatically
const server = new CreedSpaceMCPServer({
persona: 'ambassador',
apiUrl: 'https://api.creed.space',
cacheEnabled: true
});
await server.start();
// Use the API client directly
import { CreedSpaceClient } from '@creedspace/mcp-server';
const client = new CreedSpaceClient();
const personas = await client.getPersonas();
const constitution = await client.getMergedConstitution('ambassador');
from agents import Agent
from agents.mcp import MCPServerStreamableHttp
# Start the server first:
# npx @creedspace/mcp-server --transport http --port 3100
server = MCPServerStreamableHttp(
url="http://localhost:3100/mcp",
name="creedspace"
)
agent = Agent(
name="safe-agent",
tools=[server.get_tools()]
)
# The agent now has access to Creed Space safety tools
Add to ~/.codex/config.toml:
[mcp_servers.creedspace]
command = "npx"
args = ["@creedspace/mcp-server", "--persona", "ambassador"]
[mcp_servers.creedspace.env]
CREEDSPACE_API_URL = "https://api.creed.space"
{
"mcp.servers": {
"creedspace": {
"command": "npx",
"args": ["@creedspace/mcp-server", "--persona", "ambassador"]
}
}
}
{
"models": [{
"provider": "openai",
"mcp_servers": [{
"command": "npx",
"args": ["@creedspace/mcp-server"]
}]
}]
}
from langchain.tools import MCPTool
creedspace = MCPTool(
command="npx",
args=["@creedspace/mcp-server", "--persona", "ambassador"]
)
# Test API connection
npx @creedspace/mcp-server test
# Test with specific URL
npx @creedspace/mcp-server test --url http://localhost:8000
The server includes intelligent caching for offline usage:
# Enable offline mode with cached data
creedspace-mcp --offline --persona ambassador
# Clone the repository
git clone https://github.com/Creed-Space/creedspace-mcp-server.git
cd creedspace-mcp-server
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run in development mode
npm run dev
# Run tests
npm test
Full API documentation available at https://api.creed.space/api-docs
MIT © Nell Watson
Building critical AI safety infrastructure that shapes autonomous AI-human value interaction.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y @creedspace/mcp-serverMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-creed-space-creedspace-mcp-server": {
"command": "npx",
"args": [
"-y",
"@creedspace/mcp-server"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup reference@creedspace/mcp-servernpmio.github.Creed-Space/creedspace-mcp-server works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.