
forpublicai/publicai-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
A FastMCP server that provides AI assistants with access to current, community-maintained information and real-time services.
概要
A FastMCP server that provides AI assistants with access to current, community-maintained information and real-time services. Public AI bridges the gap between AI assistants and real-world information. Instead of relying on outdated training data, AI assistants can query this MCP server to access: - from wiki.publicai.co - for transit, parking, and location services - like crisis hotlines, emergency services, and community information - Python code that AI assistants can call. These functions access two types of data: (access community-maintained data) - Read from wiki.publicai.
README
以下は原文 README の抜粋です。原文を見る。
Public AI MCP Server
A FastMCP server that provides AI assistants with access to current, community-maintained information and real-time services.
What is Public AI?
Public AI bridges the gap between AI assistants and real-world information. Instead of relying on outdated training data, AI assistants can query this MCP server to access:
- Community-maintained data from wiki.publicai.co
- Real-time APIs for transit, parking, and location services
- Localized resources like crisis hotlines, emergency services, and community information
How It Works
AI Assistant (Claude, etc.)
↓ queries
MCP Server (this repository)
↓ fetches from
├─→ Wiki (community data)
└─→ External APIs (real-time data)
Understanding Wiki Tools vs MCP Functions
This repository contains MCP functions - Python code that AI assistants can call. These functions access two types of data:
1. Wiki-Based Functions (access community-maintained data)
- Read from wiki.publicai.co where community members maintain Wiki Tools
- Wiki Tools = structured data stored using MediaWiki Cargo (database-like tables)
- Examples: Crisis hotlines, BTO launches, community events
- To contribute data: Edit Wiki Tools on the wiki (no coding required)
- To add new tool types: Create new Wiki Tool with Cargo schema on wiki + add MCP function here
2. API-Based Functions (real-time integrations)
- Call external APIs for live data (transit, parking, maps)
- Examples: Swiss transport, Singapore carpark availability
- To contribute: Add Python code to this repository
Example Flow
- User asks AI a question: “What’s the suicide hotline in Singapore?”
- AI calls MCP function:
use_tool(tool="SuicideHotline", country="Singapore") - MCP function queries wiki: Reads from SuicideHotline Wiki Tool’s Cargo database
- AI gets current info: Returns verified, community-maintained resources
Available MCP Functions
Wiki-Based Functions
Functions that read community-maintained Wiki Tools from wiki.publicai.co:
list_tools_by_community(community: str)
List all tools available for a specific community.
Example:
list_tools_by_community(community="Switzerland")
# Returns: List of tools tagged with "Switzerland"
use_tool(tool: str, country: Optional[str] = None, region: Optional[str] = None)
Use a Public AI tool. Automatically adapts based on whether the tool has location-specific resources.
For tools with resources (e.g., SuicideHotline):
use_tool(tool="SuicideHotline", country="Singapore")
# Returns: Crisis hotline numbers and resources for Singapore
For tools without resources (e.g., UpcomingBTO):
use_tool(tool="UpcomingBTO")
# Returns: Full page content about BTO launches
API-Based Functions: Swiss Transport
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"publicai": {
"command": "python",
"args": ["/path/to/pai-mcp-server/main.py"]
}
}
}