Bibliomantic MCP Server

Bibliomantic MCP Server

Integrates I Ching divination with AI responses, allowing users to receive guidance through traditional Chinese philosophy using the bibliomantic approach described in Philip K. Dick's work.

Category
访问服务器

README

Bibliomantic MCP Server

A Model Context Protocol server that integrates I Ching divination with AI responses, exploring the bibliomantic approach described in Philip K. Dick's The Man in the High Castle.

Purpose

This server demonstrates how traditional wisdom systems can be thoughtfully integrated with modern AI through MCP. It provides:

  • Educational exploration of ancient Chinese philosophy and the I Ching
  • Literary context from Philip K. Dick's influential science fiction work
  • Philosophical reflection tools for creative thinking and perspective-taking
  • Technical demonstration of FastMCP capabilities with tools, resources, and prompts

Features

  • Traditional I Ching System: All 64 hexagrams with authentic three-coin method simulation
  • Bibliomantic Consultation: Following Philip K. Dick's approach from "The Man in the High Castle"
  • FastMCP Implementation: Professional MCP compliance with tools, resources, and prompts
  • Ethical Safeguards: Clear disclaimers about entertainment/reflection purpose
  • Educational Context: Historical and philosophical background for each consultation
  • Resource Access: Direct hexagram database access for AI context loading

Prerequisites

  • Python 3.10+ (required by MCP SDK)
  • MCP-compatible host (Claude Desktop, etc.)

Installation

Using uvx (recommended)

uvx bibliomantic-mcp-server

Using pip

pip install bibliomantic-mcp-server

From source

git clone https://github.com/dshields/bibliomantic-mcp-server.git
cd bibliomantic-mcp-server
pip install -e .

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "bibliomantic": {
      "command": "uvx",
      "args": ["bibliomantic-mcp-server"]
    }
  }
}

Alternative configurations:

{
  "mcpServers": {
    "bibliomantic": {
      "command": "python",
      "args": ["-m", "bibliomantic_server"]
    }
  }
}

Available Tools

  • i_ching_divination - Generate random hexagrams with traditional interpretations
  • bibliomantic_consultation - Full bibliomantic process with query augmentation
  • get_hexagram_details - Look up specific hexagrams by number (1-64)
  • server_statistics - View system information and capabilities

Resources

  • hexagram://{number} - Load individual hexagram data for AI context
  • iching://database - Access complete 64-hexagram database overview

Prompt Templates

  • career_guidance_prompt - Structured prompts for career decisions
  • creative_guidance_prompt - Prompts for artistic and creative projects
  • general_guidance_prompt - Universal life guidance templates

Usage Examples

Basic Divination

Ask Claude:

"Can you perform an I Ching divination for philosophical guidance on my creative projects?"

Bibliomantic Consultation

"I'm facing a difficult decision about my career path. Can you consult the I Ching using the bibliomantic approach?"

Resource Access

"Load the hexagram://1 resource to understand The Creative."

Specific Hexagram Lookup

"Can you tell me about I Ching hexagram number 42?"

The Bibliomantic Approach

This implementation follows the divination method described in Philip K. Dick's The Man in the High Castle, where characters consult the I Ching for guidance on important decisions. The system:

  • Uses traditional I Ching methodology with three-coin tosses
  • Generates cryptographically secure randomness for authentic divination
  • Integrates ancient wisdom with modern AI capabilities
  • Maintains the philosophical and reflective aspects of bibliomancy
  • Provides transparency in the divination process

Ethical Framework

All responses include clear disclaimers that this is for philosophical reflection and entertainment only, not supernatural guidance or life advice. Users are directed to consult qualified professionals for important decisions.

The server emphasizes:

  • Educational exploration of wisdom traditions
  • Creative thinking and perspective-taking
  • Philosophical reflection rather than prediction
  • Respect for both ancient traditions and modern ethical standards

Development

Testing with MCP Inspector

mcp dev bibliomantic_server.py

Running locally

python bibliomantic_server.py

Technical Implementation

Built with:

  • FastMCP - Official MCP Python SDK for professional compliance
  • Traditional I Ching - Complete 64-hexagram database with authentic interpretations
  • Cryptographic randomness - Secure three-coin simulation using Python's secrets module
  • Type safety - Full type hints with automatic JSON schema generation
  • Ethical safeguards - User-facing disclaimers in all responses

Use Cases

  • Educational tool for learning about I Ching philosophy and Chinese wisdom traditions
  • Creative writing aid for generating new perspectives and inspiration
  • Philosophical reflection tool for contemplating life decisions and changes
  • Cultural bridge between ancient wisdom and modern AI capabilities
  • Technical demonstration of MCP server development with cultural content
  • Literary analysis of Philip K. Dick's themes and bibliomantic concepts

Security Considerations

  • Input validation for all user queries and parameters
  • No external network requests or API dependencies
  • Cryptographically secure randomness generation
  • Clear ethical boundaries and user education
  • No persistent data storage or user tracking

Contributing

Contributions are welcome! Please:

  1. Follow the existing code style and patterns
  2. Add tests for new functionality using MCP Inspector
  3. Update documentation for any changes
  4. Ensure compatibility with the official MCP SDK
  5. Maintain the ethical framework and educational focus

License

MIT License - see LICENSE file for details.

Acknowledgments

  • Philip K. Dick for the literary inspiration and bibliomantic approach
  • Ancient Chinese philosophers for the I Ching wisdom tradition
  • Anthropic for the Model Context Protocol and FastMCP framework
  • The MCP community for fostering innovative AI integrations

"The oracle was right. The future remains ahead." - Philip K. Dick, The Man in the High Castle

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选