creedspace-mcp
AI safety guardrails for any LLM in ~10 seconds: constitutional-AI content evaluation over MCP, with six configurable personas.
README
creedspace-mcp-server
Universal MCP server for Creed Space - AI safety guardrails in 10 seconds.
Available in
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.
- npm —
@creedspace/mcp-server, the package every install path resolves to. - Official MCP Registry —
io.github.Creed-Space/creedspace-mcp-server. - GitHub — source, issues, and the
server.jsonmanifest. - Smithery —
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.
Quick Start
# 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
What is Creed Space?
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.
- 🛡️ Reduces harmful AI outputs via constitutional evaluation of every response
- 🎯 Refuses dangerous prompts according to the active persona's values
- 🚀 10-second setup with any MCP-compatible AI
Available Personas
| 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 |
Installation
Option 1: Use with npx (Recommended)
# No installation needed - just run!
npx @creedspace/mcp-server --persona ambassador
Option 2: Global Installation
npm install -g @creedspace/mcp-server
creedspace-mcp --persona ambassador
Option 3: Project Dependency
npm install @creedspace/mcp-server
Claude Desktop Integration
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.
Configuration
Environment Variables
# .env file
CREEDSPACE_API_URL=https://api.creed.space
CREEDSPACE_API_KEY=your-api-key-here # Optional
CREEDSPACE_DEFAULT_PERSONA=ambassador
Command Line Options
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 Types
| 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 |
Configuration File
# Generate example configs
creedspace-mcp --generate-config
# Use config file
creedspace-mcp --config creedspace.json
Available MCP Tools
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 library
Personas
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 configuration
Runtime 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 cache
Multi-scale value handshake
perform_multi_scale_handshake- N-party value handshake across micro/meso/macro scalesget_scale_attestation- Get an attestation record with hash chain
Programmatic Usage
import { 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');
Platform Integration Examples
OpenAI Agents SDK (HTTP Transport)
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
OpenAI Codex (STDIO Transport)
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"
VS Code / Cursor
{
"mcp.servers": {
"creedspace": {
"command": "npx",
"args": ["@creedspace/mcp-server", "--persona", "ambassador"]
}
}
}
Continue.dev
{
"models": [{
"provider": "openai",
"mcp_servers": [{
"command": "npx",
"args": ["@creedspace/mcp-server"]
}]
}]
}
LangChain
from langchain.tools import MCPTool
creedspace = MCPTool(
command="npx",
args=["@creedspace/mcp-server", "--persona", "ambassador"]
)
Testing
# Test API connection
npx @creedspace/mcp-server test
# Test with specific URL
npx @creedspace/mcp-server test --url http://localhost:8000
Offline Mode
The server includes intelligent caching for offline usage:
# Enable offline mode with cached data
creedspace-mcp --offline --persona ambassador
Development
# 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
API Documentation
Full API documentation available at https://api.creed.space/api-docs
Support
- 🌐 Website: https://www.creed.space
- 📧 Email: support@creed.space
- 🐛 Issues: GitHub Issues
- 💬 Discord: Join our community
License
MIT © Nell Watson
Building critical AI safety infrastructure that shapes autonomous AI-human value interaction.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。