Freelance Developer – MCP + PostgreSQL Thread Persistence
Worldwide
Freelance Developer – MCP + PostgreSQL Thread Persistence Project: Fix the existing AI chat application’s thread persistence so conversations using Claude + MCP + PostgreSQL are automatically saved and updated correctly. Main Problem: The MCP/database tool call is not consistently triggered after Claude responds, causing conversations to not be reliably stored. Required Logic: * New thread → Create one new PostgreSQL record. * Existing thread → Update the same record with new conversation content. * Do not create duplicate records/files for every message. * Identify threads using an appropriate combination such as user_id + thread_id/thread_name. * Maintain the complete conversation history. * Automatically trigger persistence at the correct point in the chat workflow. * Handle retries, failures, race conditions, and data integrity. Developer Responsibilities: * Review the existing Claude/chat architecture. * Review the current MCP implementation and PostgreSQL schema. * Find why the persistence/tool call is failing. * Implement reliable insert/update (upsert) logic. * Prevent duplicate records. * Test multiple messages, threads, and users. * Document the implementation and database logic. Required Skills: * PostgreSQL * Claude/Anthropic API * MCP / Model Context Protocol * LLM tool/function calling * Node.js/TypeScript or Python * Backend/API development * Chat/thread persistence * Async workflow debugging * JSON and database upsert operations Expected Deliverables: 1. Working MCP + PostgreSQL persistence. 2. Automatic creation of new-thread records. 3. Automatic updating of existing threads. 4. No unnecessary duplicates. 5. Reliable tool triggering. 6. Correct user/thread identification. 7. Complete workflow testing. 8. Documentation. Ideal Developer: Someone who can debug and improve the existing codebase, understand the current Claude/MCP architecture, identify the exact failure point, and implement a clean persistence solution rather than building a completely new system. Applicants should provide: * MCP/LLM tool-calling experience * Claude/Anthropic API experience * PostgreSQL experience * Similar chat persistence project experience * Preferred backend stack * Proposed approach to solving the issue
- Less than 30 hrs/weekHourly
- < 1 monthDuration
- ExpertExperience Level
$30.00
-
$40.00
Hourly- Remote Job
- One-time projectProject Type
Skills and Expertise
Activity on this job
- Proposals:50+
- Last viewed by client:4 days ago
- Interviewing:0
- Invites sent:0
- Unanswered invites:0
About the client
- CanadaToronto2:26 PM
- $1.6K total spent4 hires, 1 active
- 70 hours
- Tech & ITMid-sized company (10-99 people)
Explore similar jobs on Upwork
How it works
Create your free profileHighlight your skills and experience, show your portfolio, and set your ideal pay rate.
Work the way you wantApply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
Get paid securelyFrom contract to payment, we help you work safely and get paid securely.
About Upwork
- 4.9/5(Average rating of clients by professionals)
- G2 2021#1 freelance platform
- 49,000+Signed contract every week
- $2.3BFreelancers earned on Upwork in 2020
Find the best freelance jobs
Growing your career is as easy as creating a free profile and finding work like this that fits your skills.
Trusted by