Attachpad
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Attachpadsearch my attached files for budget proposal"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Attachpad
Attachpad is a browser-scoped context control center for MCP clients. Upload files, import public web pages, arrange sources by importance, and let an MCP-compatible client retrieve focused context instead of sending an entire file library every time.
Built with GPT-5.6 and Codex
Attachpad was fully built with GPT-5.6 and Codex: from the React Router interface and MCP server to SQLite/Drizzle persistence, document normalization, retrieval, and deployment configuration. Codex was used as the implementation partner throughout the project.
Related MCP server: Contextual MCP Server
What it does
Stores files in a local SQLite database using Drizzle ORM.
Associates every source with a browser-local session ID.
Accepts drag-and-drop uploads and public URL imports.
Converts uploaded PDFs and imported HTML pages into agent-readable Markdown.
Preserves manual source order and a 1–5 priority weight.
Indexes normalized content locally with SQLite FTS5.
Exposes focused retrieval tools through a React Router MCP endpoint.
Makes no external embedding or search API calls.
Architecture
flowchart LR
browser["Browser workspace<br/>local session ID"]
client["MCP client<br/>VS Code, ChatGPT, or another client"]
subgraph app["Attachpad React Router server"]
ui["Context control center"]
filesApi["Files API<br/>uploads, imports, ordering"]
mcp["MCP endpoint<br/>JSON-RPC over HTTP"]
importer["Document normalizer<br/>PDF and HTML to Markdown"]
indexer["Chunking and ranking<br/>priority and manual order"]
end
subgraph data["SQLite database"]
files[("files")]
chunks[("attachment chunks")]
fts[("FTS5 search index")]
end
browser --> ui
browser -->|"session-scoped changes"| filesApi
filesApi --> importer
filesApi --> files
filesApi --> indexer
importer --> files
indexer --> chunks
indexer --> fts
client -->|"MCP URL with session ID"| mcp
mcp --> fts
mcp --> filesRequest flow
The browser creates a UUID and stores it in
localStorageunderattachpad-session.Uploads and URL imports send that ID as
x-session-id.The server stores raw content and normalized Markdown in SQLite.
Content is split into chunks and indexed in SQLite FTS5.
The MCP client calls a retrieval tool with the same session ID in the MCP URL.
Search results combine text relevance, manual order, and priority weight.
MCP endpoint
The workspace displays a session-specific URL such as:
http://localhost:5173/mcp?session_id=YOUR_SESSION_IDUse that URL as an HTTP MCP server. Keep it private: the URL grants access to that browser session's context.
Exposed tools
Tool | Purpose |
| Returns metadata only, in manual context order. |
| Searches local SQLite FTS5 chunks using keyword and prefix matching. |
| Reads one file by ID with a character limit. |
| Searches and assembles ranked chunks within a character budget. |
| Compatibility tool that returns all attached context, or one file by ID. |
Priority semantics are communicated to the MCP client: earlier manual position means higher user preference, and priority 1–5 provides an additional retrieval boost. Relevance still matters.
Local development
Requirements
Node.js 20+
npm
Install and run
npm install
npm run devOpen http://localhost:5173 in a browser.
SQLite and Drizzle
The default database is file:./data/attachpad.db. The application bootstraps missing tables and indexes when the server first receives a request, including the FTS5 search table.
Optional Drizzle commands:
npm run db:generate
npm run db:migrate
npm run db:pushFor the current local bootstrap flow, no database command is required before npm run dev.
To use another supported libSQL-compatible URL, set SQLITE_DATABASE_URL. PostgreSQL URLs are intentionally ignored because Attachpad uses SQLite/libSQL.
VS Code setup
Create .vscode/mcp.json in the workspace:
{
"servers": {
"attachpad": {
"type": "http",
"url": "http://localhost:5173/mcp?session_id=YOUR_SESSION_ID"
}
}
}Replace YOUR_SESSION_ID with the URL copied from the Attachpad MCP settings drawer. Restart the server with npm run dev, then use MCP: List Servers in VS Code to start or refresh Attachpad.
Project structure
app/
├── db/
│ ├── db.server.ts # SQLite connection, bootstrap, indexing, retrieval
│ └── schema.ts # Drizzle tables
├── lib/
│ ├── document.server.ts # PDF-to-Markdown normalization
│ └── web-import.server.ts # Safe URL fetching and HTML-to-Markdown
├── routes/
│ ├── home.tsx # Context control center UI
│ ├── api.files.ts # Upload, import, delete, priority, reorder
│ └── mcp.ts # MCP JSON-RPC endpoint and tools
└── routes.ts # React Router route configuration
data/ # Local SQLite database directory
drizzle/ # Drizzle SQL migrationsSecurity notes
There is no account system or authentication in this setup.
The session-specific MCP URL functions as a bearer secret.
URL imports allow public HTTP(S) targets only and block local/private network addresses.
Imported pages are limited to 5 MB and a small redirect budget.
Uploaded scanned PDFs are stored, but text extraction may require OCR in a future step.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables MCP-capable agents to retrieve live, task-scoped context from a curated ontology, providing relevant direction, decisions, and constraints for a given task.6Apache 2.0
- FlicenseCqualityDmaintenanceProvides RAG (Retrieval-Augmented Generation) capabilities via Contextual AI, enabling query processing and context-aware responses with citations. Integrates with MCP clients like Cursor IDE and Claude Desktop.1
- AlicenseNot gradedqualityBmaintenanceLocal MCP server for persistent, searchable agent memory using SQLite FTS5, replacing flat MEMORY.md files with efficient full-text search and workspace context caching.GPL 3.0
- AlicenseNot gradedqualityCmaintenanceLocal context management, search engine, and memory for agentic AI via MCP, enabling efficient context retrieval and storage.541MIT
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Agentic search over your Dewey document collections from any MCP-compatible client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/akshatbatra/attachpad'
If you have feedback or need assistance with the MCP directory API, please join our Discord server