AI-powered, psychology-aware career guidance for engineering college students
PsyPathAI is an AI-powered career guidance platform for engineering students that goes beyond generic advice — it combines psychological profiling (MBTI + Holland Code) with personalized career path roadmaps to help students figure out what actually fits them. Students take a short quiz, get a personality and career-fit analysis, receive a step-by-step roadmap to reach their target role, and can chat with an AI advisor that understands their profile and adapts to how they think.
- 🧠 Psychology-Aware Quiz — MBTI personality type, Holland code (RIASEC), interests & hobbies, career goals, and learning style
- 🤖 CareerBot — AI chat powered by GPT-5 Mini (via Pollinations), with context injected from a custom MCP server containing 6 psychology tools
- 🔐 Google & GitHub OAuth — Sign in with one click, no passwords
- 💾 Persistent Profiles & Chat History — All data stored in Supabase PostgreSQL with Row Level Security
- 🗺️ Career Roadmaps — Curated roadmap data for 50+ career paths across engineering, design, and non-engineering domains
- 📡 MCP Server — A local Model Context Protocol server that provides real-time personality profiling, Holland code analysis, career alignment scoring, and learning curve advice to the AI
psypathai/
├── src/
│ ├── app/
│ │ ├── page.tsx # Landing page
│ │ ├── onboarding/ # Multi-step quiz (MBTI, Holland, interests, goals)
│ │ ├── bot/ # CareerBot chat interface
│ │ ├── roadmaps/ # Career roadmaps explorer
│ │ └── api/
│ │ ├── chat/ # POST /api/chat (streaming), GET /api/chat/sessions, GET /api/chat/messages
│ │ └── profile/ # GET & PUT /api/profile
│ ├── lib/
│ │ ├── supabase/ # Supabase client (browser, server, middleware)
│ │ ├── mcp-client.ts # Spawns MCP server as child process, sends JSON-RPC tool calls
│ │ └── llm.ts # Pollinations API integration (streaming + non-streaming)
│ └── components/
│ ├── Navbar.tsx # Navigation with Auth button
│ └── AuthButton.tsx # Google / GitHub OAuth button
├── mcp-server/
│ └── src/
│ ├── index.ts # MCP server entry (stdio transport)
│ ├── tools/ # 4 tool modules: personality, career, learning, progress
│ └── data/ # Static data: mbti-profiles, career-matrix, holland-map, roadmaps
├── supabase/
│ └── schema.sql # Full DB schema with RLS policies
└── middleware.ts # Next.js middleware (Supabase session refresh)
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router, Turbopack) |
| Language | TypeScript |
| Auth | Supabase Auth (Google & GitHub OAuth) |
| Database | Supabase PostgreSQL (with RLS) |
| AI / LLM | Pollinations AI (OpenAI GPT-5 Mini — free, no key required) |
| AI Context | Custom MCP (Model Context Protocol) server over stdio |
| Styling | Vanilla CSS with custom design system |
git clone https://github.com/YOUR_USERNAME/psypathai.git
cd psypathai# Install Next.js app dependencies
npm install
# Install MCP server dependencies
cd mcp-server && npm install && npm run build && cd ..- Create a new project at database.new
- Go to SQL Editor and run the contents of
supabase/schema.sql - Go to Authentication → Providers and enable Google and/or GitHub OAuth
- Set your OAuth callback URL to:
https://<YOUR_PROJECT_REF>.supabase.co/auth/v1/callback
Create a .env.local file in the root of the project:
# Supabase
NEXT_PUBLIC_SUPABASE_URL=https://your-project-ref.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
# Pollinations AI (get your key at enter.pollinations.ai)
POLLINATIONS_API_KEY=your_pollinations_keyNote:
.env.localis already in.gitignoreand will never be committed to version control.
npm run devOpen http://localhost:3000 to see the app.
The Supabase database includes the following tables:
| Table | Description |
|---|---|
profiles |
User profile: MBTI type, Holland code, goal, year, interests, learning style |
chat_sessions |
Chat session metadata (title, timestamps) |
chat_messages |
Individual messages (role: user/bot, content, session link) |
All tables have Row Level Security (RLS) enabled — users can only read and write their own data. A database trigger automatically creates a profile row when a new user signs up.
When you send a message to CareerBot:
- Auth Check — Verifies you're logged in via Supabase
- Profile Fetch — Loads your MBTI type, Holland code, and interests
- MCP Tools — Spawns the local MCP server and calls 3 tools:
get_personality_profile→ Deep MBTI analysis & cognitive stackget_nudge_advice→ How to frame advice for your personality typeget_career_alignment→ Top career paths ranked for your profile
- System Prompt — Injects all the above context into the AI's instructions
- Stream Response — Sends the chat to Pollinations AI and streams the reply token-by-token
- Save to DB — Saves the bot's response to your chat history in Supabase
- Visit enter.pollinations.ai
- Sign in and generate a secret key (for server/backend use)
- Add it to your
.env.localasPOLLINATIONS_API_KEY
The free tier model used is openai (GPT-5 Mini), which is fast, capable, and available on the free plan.
This project is licensed under the MIT License. See LICENSE for details.