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.ai/mcp
MCP bridge for HTTP MCP servers. Connects Claude Desktop and other MCP clients to HTTP-based MCP endpoints.
Installation
npm install -g @anecdotes.ai/mcpOr use with npx (recommended):
npx @anecdotes.ai/mcp <server-url> [domain]Usage
Environment Variable
Set your API key:
export ANECDOTES_API_KEY="your-api-key-here"Command Line
# Main MCP endpoint
npx @anecdotes.ai/mcp https://your-server.example.com
# Domain-specific endpoint (e.g., specific domain)
npx @anecdotes.ai/mcp https://your-server.example.com domain-nameThis will connect to:
- Main:
https://your-server.example.com/mcp/ - Domain:
https://your-server.example.com/domain-name/mcp/
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-server-main": {
"command": "npx",
"args": ["-y", "@anecdotes.ai/mcp", "https://your-server.example.com"],
"env": {
"ANECDOTES_API_KEY": "your-api-key-here"
}
},
"mcp-server-domain": {
"command": "npx",
"args": ["-y", "@anecdotes.ai/mcp", "https://your-server.example.com", "domain-name"],
"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 API key with appropriate privileges
License
MIT