ics-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ics-mcp
Connect your AI assistant to ICS, with your own permissions
An MCP server that lets Claude, Cursor and any other MCP client read, write, version and share documents in ICS (Internal Content Sharing), a self-hosted platform for sharing team documents.
User guide · Quick start · Configuration · Tools · HTTP mode · ChatGPT · Security · Development
You: List my pinned notes in the Architecture project, show the latest diff of adr-007 and share it with an SSO link that expires on Friday.
Assistant: calls
ics_assets_list,ics_asset_diffandics_share_create_link, then answers with the diff and the new link.
Related MCP server: DocsMint MCP Server
Highlights
Acts as you, never more. Every tool call is a request to the ICS user-level API with the signed-in user's OAuth token. No shared service account and no administration tools; an administrator's token still carries that administrator's access.
73 tools with full MCP annotations for discovery, reading, Markdown and HTML writes, PDF and Word documents, versions, sharing, the relation graph and task context.
Safe destructive operations. Deletes and overwrites go through a confirmation gate: interactive elicitation, scripted
yolo(only when the operator allows it) ordry_run.Two transports.
stdiofor a local assistant with sign-in through your browser, and Streamable HTTP for remote clients such as claude.ai connectors.Token efficient. Compact responses cut to a size budget, outlines before full reads, section reads by heading, and a single call that gathers the documents of a task.
Standards first. OAuth 2.1 with PKCE S256, RFC 8707 resource indicators, RFC 9728 protected resource metadata and RS256 JWTs verified against the ICS JWKS.
Documentation
The user guide explains, for people who use ICS through an assistant, how to connect a client and sign in, what to ask for everyday tasks, how confirmations work and how to fix common errors. This README is the reference for tools and configuration.
For ChatGPT, follow Connect ChatGPT to ICS: it covers remote HTTP, OAuth discovery, Google Workspace sign-in, permission checks and the current file-upload limits.
Quick start
You need a running ICS with ICS_MCP_RESOURCE_URI set (ICS
then registers the public clients ics-mcp-stdio and ics-mcp-http) and
uv.
1. Add the server to your MCP client
Claude Desktop (claude_desktop_config.json), Claude Code (.mcp.json or claude mcp add)
and Cursor (~/.cursor/mcp.json) all accept this shape:
{
"mcpServers": {
"ics": {
"command": "uvx",
"args": ["--from", "git+https://github.com/inprojectspl/ics-mcp", "ics-mcp"],
"env": {
"ICS_BASE_URL": "https://ics.example.com",
"ICS_MCP_RESOURCE_URI": "https://ics.example.com/mcp"
}
}
}
}Pin a tag or a commit for reproducible setups, for example
git+https://github.com/inprojectspl/ics-mcp@<tag>. Restart the client after editing its
configuration.
2. Ask your assistant about ICS
The first tool call opens your browser at the ICS sign-in and consent screen. After you approve, the tokens are stored in the OS keyring and the call continues. That's it.
From a local checkout
git clone https://github.com/inprojectspl/ics-mcp && cd ics-mcp
uv sync
uv run ics-mcpIn a client configuration use "command": "uv" with
"args": ["--directory", "/path/to/ics-mcp", "run", "ics-mcp"].
PyPI is planned but not published yet.
Configuration
Every setting is an environment variable, see ics_mcp/config.py and
.env.example.
Variable | Default | Meaning |
|
| Address the server uses to reach ICS. Can be an internal address in HTTP deployments; JWKS is fetched from here. |
|
| Canonical URI of this MCP server. Must match |
|
| Public PKCE client registered in ICS. |
| same as | Public ICS URL, the |
|
|
|
|
| HTTP bind address. |
|
| HTTP port. |
|
| Stateless HTTP for several replicas, see HTTP mode. |
| empty | Comma-separated browser origins allowed besides the server's own. |
|
| Keyring service name. Use different names to keep several token profiles. |
| platform data dir, | Token file used when no OS keyring is available. |
|
| Initial confirm mode: |
|
| Whether the model may switch its own session to |
|
|
|
|
| Upload size cap, checked before files are read into memory. |
|
| Maximum number of files in one upload. |
|
| Response size budget for text payloads. |
|
| Read timeout for ICS requests, in seconds. |
|
| Write timeout for ICS requests (uploads), in seconds. |
Signing in (stdio)
sequenceDiagram
participant A as Assistant
participant M as ics-mcp
participant B as Browser
participant I as ICS
A->>M: first tool call
M->>B: open /api/auth/oauth/authorize (PKCE, resource)
B->>I: sign in and approve
I->>M: redirect to 127.0.0.1 callback with a code
M->>I: exchange the code for tokens
M->>M: store tokens in the OS keyring
M->>I: the original request, as you
M-->>A: resultThe loopback callback binds to
127.0.0.1on a random port and checksHostandstate. The flow times out after 5 minutes.Access tokens are RS256 JWTs; refresh tokens rotate. On a
401the server refreshes once and retries without the assistant noticing. Reusing a rotated refresh token revokes the whole token family in ICS.Tokens are stored in the macOS Keychain, Windows Credential Manager or libsecret under service
ics-mcp, accountdefault.Headless environments (no
$DISPLAYor$BROWSER, andCIorICS_MCP_FORCE_HEADLESSset): no browser opens and no loopback callback runs, so the tool returnsauth_requiredwith theauthorization_urland the sign-in cannot finish there. Sign in on a machine with a browser, or run the server in HTTP mode.Signing out: delete the keyring entry (see Troubleshooting). The refresh token on the ICS side expires on its own (30 days by default).
HTTP mode
With ICS_MCP_TRANSPORT=http the server speaks Streamable HTTP on /mcp, for remote clients
such as claude.ai connectors:
ICS_MCP_TRANSPORT=http \
ICS_BASE_URL=http://backend:8000 \
ICS_MCP_OAUTH_ISSUER=https://ics.example.com \
ICS_MCP_RESOURCE_URI=https://mcp.ics.example.com/mcp \
ICS_MCP_HTTP_HOST=0.0.0.0 \
uvx --from git+https://github.com/inprojectspl/ics-mcp ics-mcpA request without a valid bearer token gets
401with aWWW-Authenticateheader pointing at the RFC 9728 metadata, which names ICS as the authorization server, so clients run the OAuth flow against ICS on their own.Tokens are verified against the ICS JWKS (signature, issuer, audience, expiry), and every call to ICS carries the caller's own token. The server keeps no shared token store.
content_patharguments are refused, and a request whoseOriginis neither the server's own nor inICS_MCP_EXTRA_ORIGINSgets403.GET /healthreturns{status, version, protocol_version}without calling ICS.Sessions and their confirm mode live in process memory. For several replicas set
ICS_MCP_STATELESS=true; the confirm mode then falls back toICS_MCP_DEFAULT_CONFIRM.
Run it behind a TLS-terminating reverse proxy that does not buffer text/event-stream.
deploy/ has a Dockerfile, a compose snippet, an example Caddyfile and a
deployment guide.
For a custom ChatGPT connection, see the ChatGPT guide. Before connecting, check the public discovery routes without signing in or calling any tools:
uv run python scripts/check_remote.py \
--mcp-url https://mcp.ics.example.com/mcp \
--issuer https://ics.example.comTools
73 tools. Every one declares all four MCP annotations (readOnlyHint, destructiveHint,
idempotentHint, openWorldHint) and returns structured content. Documents are addressed by
slug_or_id (a slug or a UUID), except ics_asset_undelete and ics_asset_purge, which work on
the trash and need the UUID from ics_trash_list.
ics_help returns longer guides to the assistant.
Group | Tools |
Session and help |
|
Discovery |
|
Projects |
|
Read |
|
Write Markdown |
|
Archive and trash |
|
HTML bundles |
|
PDF and Word |
|
Metadata |
|
Relation graph |
|
Tasks |
|
Versions |
|
Sharing |
|
Micro-applications |
|
Tools that take file content accept inline content or content_path, a local path the server
reads from disk (stdio only), which keeps large files out of the model's context.
Session and help
Tool | Purpose |
| Guides: |
| The signed-in user, scope and client. |
| Confirm mode for this session: |
| Current mode, server and protocol versions. |
Discovery
Tool | Purpose |
| Paginated list with filters, 20 per page by default and cut to the response limit. Compact items carry the summary preview, document type, freshness, maintainer, successor and estimated tokens. |
| Full-text search in Markdown, PDF text and converted Word/ODF documents. All words by default, accent-insensitive prefixes and quoted phrases; |
| Metadata only, with the full summary. |
| Files of a collection or bundle, optionally of an older version; a micro-application's package (publishers only). |
| Structure (headings with |
| Projects visible to the user. |
| New project owned by the user. Not idempotent. |
| People of a project: email, name, role, member or invited. |
| Share links and user grants of a document. |
Micro-applications (ICS ics.microapp/v1alpha1, needs ICS with micro-applications enabled)
Tool | Purpose |
| The build standard: manifest JSON Schema, handler SDK types, browser SDK, a working template, limits, errors, management API; large sections come in parts under one |
| Checks a complete package and binds it to a digest without changing the running app; diagnostics name file, pointer and code. |
| Publishes exactly the planned package and returns a durable |
| Operation progress, app state (desired state, runtime, release, data) or the list; never wakes an app. |
|
|
| Redacted application, publication and control logs. |
| The app's roles, every permission of the active release with its label and what it unlocks, who can open the app in which roles. Needs |
| Sets exactly these roles (and single permissions) for a person or project and lets the person open the app, in one idempotent call. |
| Reads a Google spreadsheet with your connected Google account: every tab with its id and headers, groups of tabs with the same headers, and per column of one tab a proposed field name and type, fill rate, uniqueness, formulas and samples, to build an app around the file as it is. |
| Links an app to a spreadsheet file: one mapping per collection, each with one tab or several tabs of one kind of record, every field to its header and owner side; rows are matched by |
| Removes the whole link; records and sheet stay, agreed values and sync history go. |
| The app's Google Sheets link, account mode, your Google account and recent syncs; |
| What one sync of the linked file would change, each change with its collection, tab and row: imports, exports, new rows, conflicts with their decision keys, skipped rows. |
| Applies a preview of yours to the app and the sheet; after a 503 the same call resumes it. Needs |
Read
Tool | Purpose |
| File content: a line range, one section by heading |
| OCR state of a scanned PDF (queued, running, done, failed); |
| Rendered HTML. Expensive; prefer |
| Version history with authors. |
| Read a committed publication receipt by its original caller-persisted identity and project scope. A missing receipt leaves the outcome unknown. |
| Diff between two versions. |
| Read a document from a share link or token. |
Write: Markdown
Tool | Purpose |
| New single Markdown document. |
| New Markdown collection. Reports progress. |
| Change the title; the slug stays. |
| Replace a file's content as a new version. Destructive. |
| Add a file to a collection. |
| Add an empty file to a collection. |
| Move or rename a file in a collection. Destructive. |
| Delete a file from a collection. Destructive. |
| Pin, or with |
| Replace the tag list. |
Archive and trash (ICS ADR-0029; owner or project owner)
Tool | Purpose |
| Into the archive: left out of lists and search ( |
| Move a document to the trash. Destructive. |
| The trash: |
| Back from the trash (UUID only). Links and per-person shares are not restored. |
| Delete from the trash for good. Destructive. |
Write: HTML bundles
Tool | Purpose |
| Upload a bundle; each file has |
| Replace the whole bundle as a new version. Destructive. |
| Security scan status and findings. |
Write: PDF and Word/ODF documents
Tool | Purpose |
| Upload a local |
| Upload a new file as the next version of a |
Document metadata
Tool | Purpose |
| Document types for |
| Change metadata without a new version, or move the asset to a project; |
Relation graph
Tool | Purpose |
| Relations as compact |
| Record a typed relation: |
| Change the note, or mark a changed target as checked. |
| Delete a relation. Destructive. |
| Nodes and |
| Extract links to ICS documents from the current content again and record them as |
Tasks
Tool | Purpose |
| The documents of one task in one call: required, linked, inherited from ancestors, project key documents and graph neighbours, ordered and cut to |
| Link a document to an OpenProject work package or a Project Standard node as |
| Delete a task link. Destructive. |
| Tasks a document is linked to. |
| External projects mapped to an ICS project, and its key documents. |
| Replace them (owner). Destructive; |
Versions
Tool | Purpose |
| New version replacing the whole file set. Destructive. |
| Make an older version current again. Destructive; history is kept. |
Sharing
Tool | Purpose |
| Create a link: |
| Grant a user |
| Disable a share link or revoke a user grant permanently. Destructive. |
Confirmations and destructive operations
Operations that delete or replace content, add or remove relations, unlink tasks, replace
project links, create a public share link or create a document with share_mode="public" go
through a confirmation gate. The session mode
decides what happens:
Mode | Behaviour |
| The client asks the user through MCP elicitation. A client without elicitation gets |
| No questions, for scripted or scheduled agents. The model can switch to |
| Destructive tools return a preview of what they would do and send nothing to ICS. |
The per-call confirm argument always wins: confirm=true runs without asking,
confirm=false refuses in every mode, and an omitted confirm follows the session mode.
Resources and prompts
Resource | Content |
| The first page of the user's documents. |
| Metadata plus content (single Markdown) or outline (collection, bundle). |
| The outline only. |
| One file of a collection as text. |
| An earlier version: its content or its file list. |
| One file of an earlier version as text. |
| Project metadata and its documents. |
Prompt | Workflow |
| Create a share link and suggest how to send it. |
| Outline, pick files, read them, summarize. |
| Turn a single Markdown document into a collection. |
Rate limits and retries
Publication receipts
ics_asset_create_html accepts payload.publication; the whole-version tools
ics_asset_new_version, ics_asset_html_replace_bundle and
ics_asset_replace_document accept publication alongside a required
expected_version. The identity is supplied and persisted by the caller:
{"id":"publication-42","order_id":"delivery-17","role":"acceptance-report"}These fields match the ICS backend's publication contract. The MCP server never generates a key. Initial Markdown/collection/document creation, per-file writes and restore do not support publication identities.
A keyed mutation is confirmed only after reading its matching durable backend
receipt. The tool adds publication_receipt and returns the receipt's version,
including for HTML creation whose original backend response has no version.
That version may be older than the asset's current version. Calls without
publication keep their existing request and response shape.
After a timeout or gateway error the error retains its code and includes
data.outcome: "unknown", the original publication and project_id.
Read ics_publication_get with exactly those values and the same principal.
Missing receipts are inconclusive; do not mint a new key or blindly repeat the
write. An explicit replay of the same semantic payload is a caller decision,
never an automatic POST retry after a transport/gateway failure. The existing
429 policy below remains unchanged. Changed payloads under the same identity return
publication_conflict; stale new writes return version_conflict.
This needs an ICS backend implementing publication receipts. An older backend that ignores
publication may still apply a write: a 201 without a matching receipt returns
publication_unconfirmed with outcome unknown and the known POST result.
Deleting an asset consumes its publication key; read/replay refusal does not
authorize recreating it with a fresh key.
Run the real HTTP contract smoke with an existing backend checkout and its installed test environment:
bash scripts/test-publication-backend.sh /path/to/icsIt creates its own PostgreSQL/Redis containers, loopback backend, synthetic OAuth
principal and temporary storage. It exercises HTML creation/replay, historical
HTML replacement, Markdown/PDF replacement and receipt lookup after a discarded
real POST acknowledgement. Only its own containers and anonymous volumes are
removed. Ordinary scripts/test.sh tests remain hermetic; office multipart
forwarding is also covered there.
HTTP retry policy
ics-mcp assumes no limits of its own and reacts to what ICS answers:
429is retried up to 3 times, waiting as long asRetry-Aftersays (at most 30 s per wait, 1 s without the header), for every method, since ICS did not process the request. When the retries run out the tool returnsrate_limited.502,503and504are retried with growing delays only forGET,HEADandOPTIONS. Writes that fail this way go back to the assistant at once, because ICS may have applied them.
For bulk work, page through ics_assets_list with cursor and filter there, and replace many
files in one ics_asset_new_version call instead of many ics_asset_update_content calls.
Security model
Scope of access: exactly what the signed-in user can do in ICS (own documents, documents shared with them, their projects), and nothing more. Tokens are never returned to the assistant;
ics_whoamishows only the client, scope and audience.Audience binding (RFC 8707): tokens are issued for this server's resource URI; in HTTP mode tokens with another
audare rejected.No token passthrough: tokens go only to ICS, which is both the authorization and the resource server.
Token storage: the OS keyring first. The fallback file is created with mode
0600and obfuscated with Fernet using a key derived from the host and user ID, which protects against accidental reading, not against code running as the same user.HTTP transport:
Originvalidation as the MCP spec requires, andcontent_pathdisabled.Logs: always on stderr (stdout carries the stdio protocol) and never with tokens; a test enforces it.
Please report vulnerabilities privately as described in SECURITY.md.
Troubleshooting
The refresh failed or the tokens were revoked. Delete the keyring entry and call a tool again:
# macOS
security delete-generic-password -s ics-mcp -a default
# Linux (libsecret)
secret-tool clear service ics-mcp username default
# Windows
cmdkey /delete:ics-mcpCheck that ICS_MCP_RESOURCE_URI is identical on the ICS and the MCP side, that
ICS_MCP_OAUTH_ISSUER matches the iss of ICS tokens, and that the client supports dynamic
client registration (or use a client pre-registered in ICS).
A 403 means the request did not come from 127.0.0.1 or had a wrong state, usually because
a proxy or VPN intercepts loopback traffic; exclude 127.0.0.1 from it. If ICS is unreachable,
check ICS_BASE_URL (with the scheme), that ICS is up, and firewalls or DNS.
Run with ICS_MCP_LOG_LEVEL=DEBUG and read the server's stderr (in Claude Desktop: Settings,
Developer, Open MCP Logs). The MCP Inspector lists the tools and lets you call them:
npx @modelcontextprotocol/inspector \
-e ICS_BASE_URL=https://ics.example.com \
-e ICS_MCP_RESOURCE_URI=https://ics.example.com/mcp \
uvx --from git+https://github.com/inprojectspl/ics-mcp ics-mcpDevelopment
git clone https://github.com/inprojectspl/ics-mcp && cd ics-mcp
uv sync --extra dev
uv run ruff check . && uv run ruff format --check .
uv run mypy --strict ics_mcp
uv run pytest --cov=ics_mcp --cov-fail-under=85The tests mock ICS with respx and use an in-memory keyring, so they need neither a running
ICS nor network access. See CONTRIBUTING.md for the workflow and
conventions, CHANGELOG.md for releases and AGENTS.md for notes
aimed at AI coding agents.
License
ics-mcp is released under the MIT License. The inProjects.ai name and logo are not covered by it, see NOTICE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Shared markdown docs for people and AI agents, kept as plain files in your team's GitHub repo.
Governed, auditable knowledge your team curates for its AI assistants, self-hostable
Self-hostable shared brain for you and your AI agents — docs, flows, meetings, decisions, rationale
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI clients like Claude, ChatGPT, and Cursor to search, read, and write back to one cross-model Markdown library of saved articles, videos, PDFs, notes, and conversations. Hosted remote server with OAuth 2.1 or Agent-key auth and read_only, edit, or full permission tiers.MIT
- FlicenseNot gradedqualityAmaintenanceGives AI agents access to a persistent document workspace so they can search, read, and update knowledge through 22 focused tools, 2 prompts, and 3 resources, with batch actions and direct workspace-item inspection. Runs either as a hosted Streamable HTTP endpoint with OAuth or API keys, or as a self-hosted stdio bridge pointed at your own instance.-
- AlicenseNot gradedqualityCmaintenanceConnects AI clients such as Google Gemini Web, Claude Desktop, and Cursor to a personal vault and cloud storage, letting them list, read, write, and append Markdown notes and search or read documents anywhere on a personal drive through secure OAuth 2.0 authentication over Streamable HTTP or SSE.MIT
- AlicenseNot gradedqualityAmaintenanceGives AI agents access to a persistent document workspace, letting them search, read, and update notes, guides, and project documentation across a full catalog of tools, prompts, and resources. It connects either to the hosted Cloud endpoint over Streamable HTTP with OAuth or API-key auth, or to a self-hosted instance through a stdio bridge.MIT