Fourth Brain Demo
An MCP server that connects Claude.ai to a Notion-based marketing knowledge base, enabling search and retrieval across specialized domains like enterprise platforms and competitive positioning. It provides tools for RAG-style Q\&A and content browsing to assist with drafting RFPs and value propositions.
README
Fourth Brain Demo
Notion-backed MCP server for Fourth's marketing knowledge base. Connects Claude.ai to curated marketing content via the Model Context Protocol.
Quick Start
1. Set up Notion
- Create a Notion Internal Integration at https://www.notion.so/my-integrations
- Create a parent page and share it with the integration
- Copy
.env.exampleto.env, add your token and parent page ID - Populate the knowledge base:
pip install -r requirements.txt
python populate_notion.py --parent-page <page_id>
- Copy the database IDs from the output into
.env
2. Run locally
python server.py
Server starts at http://localhost:8000/mcp
3. Test with MCP Inspector
fastmcp dev server.py
4. Deploy to Railway
# Push to GitHub
git remote add origin https://github.com/Rev4nchist/fourth-brain-demo.git
git push -u origin main
# Railway auto-deploys from GitHub
# Set env vars in Railway dashboard
5. Connect Claude.ai
- Go to Claude.ai > Settings > Integrations
- Add Custom Connector:
https://your-app.up.railway.app/mcp - Create a Project, upload skills files from
skills/
Architecture
Claude.ai --> MCP (Streamable HTTP) --> Notion API
|
FastMCP Server
- 5 tools (search, browse, get, ask, list)
- 3 prompts (product_qa, rfp_draft, meeting_prep)
- TTL cache (300s)
Tools
| Tool | Description |
|---|---|
search_knowledge |
Search across all 6 knowledge databases |
browse_library |
Browse knowledge structure by area |
get_document |
Retrieve full page content |
ask_question |
RAG-style Q&A with confidence scoring |
list_content_areas |
List all knowledge domains |
Knowledge Domains
| Domain | Content |
|---|---|
| Enterprise Platform | Platform overview, 5 pillars, modules, architecture |
| Value Propositions | Per-persona value props (CFO/COO/CHRO/CTO/CEO) |
| Integration Guide | 200+ integrations by category |
| Competitive Positioning | Battle cards, win/loss analysis |
| RFP Responses | Pre-drafted RFP answers |
| FAQ & Product Q&A | Common product questions |
Environment Variables
See .env.example for all required variables.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.