Package Exports
- @anecdotes.ai/mcp
- @anecdotes.ai/mcp/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@anecdotes.ai/mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@anecdotes/mcp
MCP bridge for Anecdotes HTTP servers. Connects Claude Desktop and other MCP clients to Anecdotes MCP HTTP endpoints.
Installation
npm install -g @anecdotes/mcpOr use with npx (recommended):
npx @anecdotes/mcp <url> [domain]Usage
Environment Variable
Set your Anecdotes API key:
export ANECDOTES_API_KEY="your-api-key-here"Command Line
# Main MCP endpoint
anecdotes-mcp https://mcp.anecdotes.ai
# Domain-specific endpoint (e.g., risk domain)
anecdotes-mcp https://mcp.anecdotes.ai riskThis will connect to:
- Main:
https://mcp.anecdotes.ai/mcp/ - Domain:
https://mcp.anecdotes.ai/risk/mcp/
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"anecdotes-main": {
"command": "npx",
"args": ["-y", "@anecdotes/mcp", "https://mcp.anecdotes.ai"],
"env": {
"ANECDOTES_API_KEY": "your-api-key-here"
}
},
"anecdotes-risk": {
"command": "npx",
"args": ["-y", "@anecdotes/mcp", "https://mcp.anecdotes.ai", "risk"],
"env": {
"ANECDOTES_API_KEY": "your-api-key-here"
}
}
}
}Features
- ✅ Dynamic URL building (
/mcp/or/{domain}/mcp/) - ✅ Proper JSON-RPC message handling
- ✅ Error handling with standard JSON-RPC error responses
- ✅ Support for both HTTP and HTTPS endpoints
- ✅ Newline-delimited JSON-RPC message processing
- ✅ Automatic API key authentication
Requirements
- Node.js 14 or higher
- Valid Anecdotes API key with admin privileges
License
MIT