
Onepassword Mcp Server
An MCP server that enables secure credential retrieval from 1Password to be used by Agentic AI
What is Onepassword Mcp Server?
Onepassword Mcp Server is a proof of concept MCP server that enables secure credential retrieval from 1Password for use by Agentic AI.
How to use Onepassword Mcp Server?
To use the Onepassword Mcp Server, set up a Python environment with the required dependencies, create a vault in 1Password, and configure your service account token. Then, connect your client (like Claude Desktop) to the server using the provided configuration.
Key features of Onepassword Mcp Server?
- Secure retrieval of credentials from 1Password.
- Integration with Agentic AI for automated operations.
- Easy setup with Python and configuration files.
Use cases of Onepassword Mcp Server?
- Automating login processes for web applications using stored credentials.
- Integrating secure credential management into AI-driven applications.
- Facilitating secure access to sensitive information in automated workflows.
FAQ from Onepassword Mcp Server?
- Is this project production-ready?
No, this is a proof of concept intended for educational purposes only.
- What are the prerequisites for using this server?
You need Python 3.11 or higher and the uv package installed.
- Can I use this with any 1Password account?
Yes, as long as you have the appropriate permissions set for your service account in 1Password.
Project Note: ⚠️ This MCP server is a proof of concept and is intended for educational purposes only. It utilizes the 1Password Python SDK to securely retrieve credentials from your 1Password account and provides them via the MCP Python SDK to Agentic AI for use in its operations. ⚠️
Quick Start
Prerequisites
- Python 3.11 or higher
uv
(fast Python package installer):pip install uv
- Install packages:
uv sync
- Create a vault within 1Password named
AI
, and add the items you want to use. - Create a service account and give it the appropriate permissions in the vaults where the items you want to use with the SDK are saved.
- Provision your service account token, and configure clients like Claude Desktop to connect to this server. Add the following structure to the client's configuration (e.g.,
claude_desktop_config.json
), adjusting the path and environment variables as needed:
// Example for Claude Desktop config
{
"mcpServers": {
"1Password": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"onepassword-sdk",
"mcp",
"run",
"/your/dir/here/onepassword-mcp-server/server.py" // Change this path
],
"env": {
"OP_SERVICE_ACCOUNT_TOKEN": "INSERT_KEY_HERE" // Insert 1Password Service Account Token
}
}
}
}
- Launch Claude and try a prompt such as "Get 1Password credentials for ticktick.com" (based on item name)
Automate Browser with 1Password and Browser-Use MCP
Install mcp-browser-use and configure both MCP servers as such:
// Example for Claude Desktop config
{
"mcpServers": {
"1Password": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"onepassword-sdk",
"mcp",
"run",
"/your/dir/here/onepassword-mcp-server/server.py"
],
"env": {
"OP_SERVICE_ACCOUNT_TOKEN": "INSERT_KEY_HERE"
}
},
"browser-use": {
"command": "uv",
"args": [
"--directory",
"/your/dir/here/mcp-browser-use",
"run",
"mcp-server-browser-use"
],
"env": {
"MCP_USE_OWN_BROWSER": "true",
"CHROME_CDP": "http://127.0.0.1:9222",
"ANTHROPIC_API_KEY": "INSERT_KEY_HERE",
"PYTHONIOENCODING": "utf-8",
"PYTHONUNBUFFERED": "1",
"PYTHONUTF8": "1"
}
}
}
}
- Launch Claude and try a prompt such as "get 1Password credentials for ticktick.com and log into https://ticktick.com/signin"